219 lines
5.8 KiB
JSON
219 lines
5.8 KiB
JSON
{
|
|
"repo_summary": {
|
|
"files_count": 5,
|
|
"languages": ["go"],
|
|
"frameworks": {
|
|
"value": ["k8s.io/client-go", "k8s.io/apimachinery"],
|
|
"confidence": "medium",
|
|
"source": "explicit_code"
|
|
}
|
|
},
|
|
"modules": [
|
|
{
|
|
"name": "console/internal/api/handlers.go",
|
|
"imports": {
|
|
"value": [
|
|
"bytes", "context", "encoding/json", "errors", "fmt", "io", "log", "net", "net/http", "regexp", "strconv", "strings", "time",
|
|
"fission-console/internal/fission",
|
|
"fission-console/internal/model",
|
|
"fission-console/internal/runtime",
|
|
"k8s.io/apimachinery/pkg/api/errors",
|
|
"k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
|
],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"exports": {
|
|
"value": [
|
|
"handleFunctionsRoot", "handleFunctionsAction", "handleCreateFunction",
|
|
"handleGetFunction", "handleUpdateFunctionCode",
|
|
"handleInvokeFunction", "handleFissionFunctionGateway",
|
|
"invokeInternalFunction", "handleInvokeRoute",
|
|
"handleDeleteFunction", "handleAuth", "parseTTL", "normalizeMethods"
|
|
],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
}
|
|
},
|
|
{
|
|
"name": "console/internal/api/server.go",
|
|
"imports": {
|
|
"value": [
|
|
"bytes", "context", "encoding/json", "fmt", "io", "net/http", "os", "strings", "sync", "time",
|
|
"fission-console/internal/cloud", "fission-console/internal/fission", "fission-console/ui",
|
|
"k8s.io/apimachinery/pkg/apis/meta/v1", "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
|
"k8s.io/apimachinery/pkg/runtime/schema", "k8s.io/client-go/dynamic"
|
|
],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"exports": {
|
|
"value": [
|
|
"Server", "Config", "NewServer", "RegisterRoutes", "Handler", "NSManager", "handleList"
|
|
],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
}
|
|
},
|
|
{
|
|
"name": "console/internal/model/types.go",
|
|
"imports": {
|
|
"value": [],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"exports": {
|
|
"value": [
|
|
"CreateFunctionRequest", "CreateTimeTriggerRequest", "UpdateCodeRequest", "LangEnvDef", "LangEnvMap"
|
|
],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
}
|
|
},
|
|
{
|
|
"name": "console/internal/runtime/entrypoint.go",
|
|
"imports": {
|
|
"value": [],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"exports": {
|
|
"value": ["DefaultEntrypoint"],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
}
|
|
},
|
|
{
|
|
"name": "console/cmd/server/main.go",
|
|
"imports": {
|
|
"value": [
|
|
"log", "net/http", "os", "strings", "time",
|
|
"fission-console/internal/api",
|
|
"k8s.io/client-go/dynamic", "k8s.io/client-go/rest", "k8s.io/client-go/tools/clientcmd"
|
|
],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"exports": {
|
|
"value": ["main", "buildConfig", "envDefault", "envDurationDefault"],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
}
|
|
}
|
|
],
|
|
"symbols": [
|
|
{
|
|
"name": "main",
|
|
"type": "function",
|
|
"file": "console/cmd/server/main.go",
|
|
"calls": {
|
|
"value": [
|
|
"buildConfig",
|
|
"k8s.io/client-go/dynamic.NewForConfig",
|
|
"fission-console/internal/api.NewServer",
|
|
"nsm.StartExpiryReaper",
|
|
"log.Printf",
|
|
"log.Fatal"
|
|
],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"called_by": {
|
|
"value": [],
|
|
"confidence": "unknown",
|
|
"source": "unknown"
|
|
},
|
|
"inputs": {
|
|
"value": [],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"returns": {
|
|
"value": "UNKNOWN",
|
|
"confidence": "unknown",
|
|
"source": "unknown"
|
|
},
|
|
"side_effects": [
|
|
{
|
|
"type": "http_server",
|
|
"confidence": "high",
|
|
"source": "explicit_code",
|
|
"evidence": "httpServer.ListenAndServe()"
|
|
},
|
|
{
|
|
"type": "log",
|
|
"confidence": "high",
|
|
"source": "explicit_code",
|
|
"evidence": "log.Printf, log.Fatal"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "DefaultEntrypoint",
|
|
"type": "function",
|
|
"file": "console/internal/runtime/entrypoint.go",
|
|
"calls": {
|
|
"value": [],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"called_by": {
|
|
"value": [],
|
|
"confidence": "unknown",
|
|
"source": "unknown"
|
|
},
|
|
"inputs": {
|
|
"value": ["lang"],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"returns": {
|
|
"value": "string",
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
"side_effects": []
|
|
}
|
|
],
|
|
"call_graph": [
|
|
{
|
|
"from": "main",
|
|
"to": [
|
|
"buildConfig",
|
|
"k8s.io/client-go/dynamic.NewForConfig",
|
|
"fission-console/internal/api.NewServer",
|
|
"nsm.StartExpiryReaper",
|
|
"log.Printf",
|
|
"log.Fatal"
|
|
],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
},
|
|
{
|
|
"from": "handleCreateFunction",
|
|
"to": ["DefaultEntrypoint"],
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
}
|
|
],
|
|
"entry_points": [
|
|
{
|
|
"name": "main",
|
|
"type": "cli",
|
|
"confidence": "high",
|
|
"source": "explicit_code"
|
|
}
|
|
],
|
|
"unknowns": [
|
|
{
|
|
"reason": "reverse call graph incomplete",
|
|
"location": "global"
|
|
}
|
|
],
|
|
"analysis_coverage": {
|
|
"symbols_detected": 2,
|
|
"modules_detected": 5
|
|
}
|
|
}
|