MCPcopy Index your code

hub / github.com/openfaas/faasd / functions

Functions195 in github.com/openfaas/faasd

↓ 140 callersMethodError
()
pkg/provider/handlers/mutate_namespaces.go:283
↓ 24 callersMethodClose
()
pkg/supervisor.go:287
↓ 13 callersFunctionhttpHeaderMiddleware
(next http.HandlerFunc)
cmd/provider.go:167
↓ 11 callersMethodContains
Contains returns true if the target Node is found in its list
pkg/depgraph/depgraph.go:30
↓ 11 callersFunctionindexStr
(st []string, t string)
pkg/deployment_order_test.go:216
↓ 10 callersMethodAdd
Add places a Node into the current Graph
pkg/depgraph/depgraph.go:41
↓ 8 callersMethodRemove
Remove deletes a target Node reference from the list of nodes in the graph
pkg/depgraph/depgraph.go:47
↓ 8 callersFunctiongetRequestNamespace
(namespace string)
pkg/provider/handlers/utils.go:13
↓ 8 callersFunctionvalidNamespace
validNamespace indicates whether the namespace is eligable to be used for OpenFaaS functions.
pkg/provider/handlers/utils.go:32
↓ 7 callersFunctionReadFromEnv
ReadFromEnv loads the FaaSConfig and the Containerd specific config form the env variables
pkg/provider/config/read.go:15
↓ 7 callersFunctionbuildDeploymentOrder
(svcs []Service)
pkg/deployment_order.go:9
↓ 6 callersFunctionGetFunction
GetFunction returns a function that matches name
pkg/provider/handlers/function_get.go:17
↓ 6 callersFunctiongetNamespaceSecretMountPath
(userSecretPath string, namespace string)
pkg/provider/handlers/utils.go:26
↓ 5 callersMethodGetenv
(key string)
pkg/provider/config/read_test.go:18
↓ 5 callersMethodLabels
(ctx context.Context, namespace string)
pkg/provider/labeller.go:7
↓ 5 callersFunctionreadNamespaceFromQuery
(r *http.Request)
pkg/provider/handlers/utils.go:21
↓ 4 callersFunctionRemove
Remove removes a container
pkg/service/service.go:26
↓ 4 callersMethodStart
Start any polling or connections required to resolve
pkg/resolver.go:8
↓ 4 callersFunctionparseNamespaceRequest
getNamespace returns a namespace object or an error
pkg/provider/handlers/mutate_namespaces.go:210
↓ 3 callersFunctionDeleteCNINetwork
DeleteCNINetwork deletes a CNI network based on task ID and Pid
pkg/cninetwork/cni_network.go:124
↓ 3 callersMethodGet
Get an IP address using an asynchronous operation
pkg/resolver.go:11
↓ 3 callersFunctionGetIPAddress
GetIPAddress returns the IP address from container based on container name and PID
pkg/cninetwork/cni_network.go:150
↓ 3 callersFunctionLoadComposeFileWithArch
LoadComposeFileWithArch is a helper method for loading a docker-compose file
pkg/supervisor.go:399
↓ 3 callersFunctionMakeSecretHandler
(store provider.Labeller, mountPath string)
pkg/provider/handlers/secret.go:20
↓ 3 callersFunctionNewEnvBucket
()
pkg/provider/config/read_test.go:12
↓ 3 callersFunctionParseCompose
ParseCompose converts a docker-compose Config into a service list that we can pass to the supervisor client Start. The only anticipated error is a fa
pkg/supervisor.go:333
↓ 3 callersMethodSetenv
(key string, value string)
pkg/provider/config/read_test.go:22
↓ 3 callersFunctionbuildLabels
(request *types.FunctionDeployment)
pkg/provider/handlers/deploy.go:206
↓ 3 callersFunctioncp
(source, destFolder string)
cmd/install.go:131
↓ 3 callersFunctionequalStringSlice
(t *testing.T, want, found []string)
pkg/supervisor_test.go:154
↓ 3 callersFunctionhasOpenFaaSLabel
(labels map[string]string)
pkg/provider/handlers/mutate_namespaces.go:270
↓ 3 callersFunctionisCNIResultForPID
isCNIResultForPID confirms if the CNI result file contains the process name, PID and interface name Example: var/run/cni/openfaas-cni-bridge/10.62.0
pkg/cninetwork/cni_network.go:185
↓ 3 callersFunctionparseSecret
(r *http.Request)
pkg/provider/handlers/secret.go:148
↓ 3 callersFunctionprintVersion
()
cmd/root.go:75
↓ 2 callersFunctionCreateCNINetwork
CreateCNINetwork creates a CNI network interface and attaches it to the context
pkg/cninetwork/cni_network.go:112
↓ 2 callersFunctionEnable
(unit string)
pkg/systemd/systemd.go:14
↓ 2 callersFunctionGetArchSuffix
GetArchSuffix provides client CPU architecture and client OS from ArchGetter
pkg/supervisor.go:443
↓ 2 callersFunctionInitNetwork
InitNetwork writes configlist file and initializes CNI network
pkg/cninetwork/cni_network.go:78
↓ 2 callersFunctionInstallUnit
(name string, tokens map[string]string)
pkg/systemd/systemd.go:71
↓ 2 callersFunctionListFunctions
ListFunctions returns a map of all functions with running tasks on namespace
pkg/provider/handlers/function_list.go:31
↓ 2 callersFunctionListNamespaces
(client *containerd.Client)
pkg/provider/handlers/namespaces.go:24
↓ 2 callersFunctionMakeInfoHandler
MakeInfoHandler creates handler for /system/info endpoint
pkg/provider/handlers/info.go:19
↓ 2 callersFunctionNewProxy
NewProxy creates a HTTP proxy to expose a host
pkg/proxy.go:16
↓ 2 callersFunctionPrepareImage
(ctx context.Context, client *containerd.Client, imageName, snapshotter string, pullAlways bool)
pkg/service/service.go:162
↓ 2 callersFunctionStart
(unit string)
pkg/systemd/systemd.go:33
↓ 2 callersFunctionWithNetNS
(ns netns.NsHandle, work func() error)
pkg/cninetwork/netns.go:20
↓ 2 callersFunctionbuildCmd
buildCmd reeturns the equivalent of journalctl -t <namespace>:<name> \ --output=json \ --since=<timestamp> \ <--follow> \
pkg/logs/requestor.go:65
↓ 2 callersFunctionbuildLabelsAndAnnotations
buildLabelsAndAnnotations returns a separated list with labels first, followed by annotations by checking each key of ctrLabels for a prefix.
pkg/provider/handlers/function_get.go:130
↓ 2 callersFunctioncopy
(wg *sync.WaitGroup, r io.Reader, pri journal.Priority, vars map[string]string)
cmd/collect.go:51
↓ 2 callersFunctioncreateSecret
(w http.ResponseWriter, r *http.Request, mountPath string)
pkg/provider/handlers/secret.go:88
↓ 2 callersFunctioncreateTask
(ctx context.Context, container containerd.Container, cni gocni.CNI)
pkg/provider/handlers/deploy.go:229
↓ 2 callersFunctiondeploy
(ctx context.Context, req types.FunctionDeployment, client *containerd.Client, cni gocni.CNI, secretMountPath
pkg/provider/handlers/deploy.go:120
↓ 2 callersFunctiondirExists
(dirname string)
pkg/cninetwork/cni_network.go:245
↓ 2 callersFunctionensureWorkingDir
(folder string)
cmd/install.go:120
↓ 2 callersFunctionmakeBasicAuthFiles
(wd string)
cmd/up.go:137
↓ 2 callersFunctionmakeFile
makeFile will create a file with the specified content if it does not exist yet. if the file already exists, the method is a noop.
cmd/up.go:162
↓ 2 callersFunctionnamespaceExists
(ctx context.Context, client *containerd.Client, name string)
pkg/provider/handlers/mutate_namespaces.go:116
↓ 2 callersFunctionnetID
netID generates the network IF based on task name and task PID
pkg/cninetwork/cni_network.go:218
↓ 2 callersFunctionnetNamespace
netNamespace generates the namespace path based on task PID.
pkg/cninetwork/cni_network.go:223
↓ 2 callersFunctionparseEntry
parseEntry reads the deserialized json from journalctl into a log.Message The following fields are parsed from the journal - MESSAGE - _PID - SYSLOG_
pkg/logs/requestor.go:150
↓ 2 callersFunctionpipe
(from net.Conn, to net.Conn)
pkg/proxy.go:97
↓ 2 callersFunctionpreDeploy
(client *containerd.Client, additional int64)
pkg/provider/handlers/deploy.go:341
↓ 2 callersFunctionprepull
prepull is an optimization which means an image can be pulled before a deployment request, since a deployment request first deletes the active functio
pkg/provider/handlers/deploy.go:95
↓ 2 callersFunctionprintLogo
()
cmd/root.go:79
↓ 2 callersFunctionpullImage
(ctx context.Context, client *containerd.Client, resolver remotes.Resolver, imageName string)
pkg/service/service.go:219
↓ 2 callersFunctionreadEnvFromProcessEnv
(env []string)
pkg/provider/handlers/function_get.go:92
↓ 2 callersFunctionreadMemoryLimitFromSpec
(spec *specs.Spec)
pkg/provider/handlers/function_get.go:145
↓ 2 callersFunctionreadSecretsFromMounts
(mounts []specs.Mount)
pkg/provider/handlers/function_get.go:116
↓ 2 callersFunctionvalidateSecrets
(secretMountPath string, secrets []string)
pkg/provider/handlers/deploy.go:314
↓ 1 callersFunctionCNIGateway
CNIGateway returns the gateway for default subnet
pkg/cninetwork/cni_network.go:207
↓ 1 callersFunctionConnectivityCheck
ConnectivityCheck checks if the controller can reach the public Internet via HTTPS. A license is required to use OpenFaaS CE for Commercial Use.
pkg/connectivity.go:13
↓ 1 callersFunctionDaemonReload
()
pkg/systemd/systemd.go:52
↓ 1 callersFunctionExecute
Execute faasd
cmd/root.go:28
↓ 1 callersFunctionGetVersion
GetVersion get latest version
pkg/version.go:12
↓ 1 callersFunctionLoadComposeFile
LoadComposeFile is a helper method for loading a docker-compose file
pkg/supervisor.go:394
↓ 1 callersFunctionMakeDeleteHandler
(client *containerd.Client, cni gocni.CNI)
pkg/provider/handlers/delete.go:21
↓ 1 callersFunctionMakeDeployHandler
MakeDeployHandler returns a handler to deploy a function
pkg/provider/handlers/deploy.go:32
↓ 1 callersFunctionMakeMutateNamespace
(client *containerd.Client)
pkg/provider/handlers/mutate_namespaces.go:17
↓ 1 callersFunctionMakeNamespacesLister
(client *containerd.Client)
pkg/provider/handlers/namespaces.go:14
↓ 1 callersFunctionMakeReadHandler
(client *containerd.Client)
pkg/provider/handlers/read.go:14
↓ 1 callersFunctionMakeReplicaReaderHandler
(client *containerd.Client)
pkg/provider/handlers/replicas.go:12
↓ 1 callersFunctionMakeReplicaUpdateHandler
(client *containerd.Client, cni gocni.CNI)
pkg/provider/handlers/scale.go:19
↓ 1 callersFunctionMakeUpdateHandler
(client *containerd.Client, cni gocni.CNI, secretMountPath string, alwaysPull bool)
pkg/provider/handlers/update.go:20
↓ 1 callersFunctionNSPathByPidWithRoot
(root string, pid int)
pkg/cninetwork/netns.go:64
↓ 1 callersFunctionNewDepgraph
()
pkg/depgraph/depgraph.go:17
↓ 1 callersFunctionNewFakeLabeller
(labels map[string]string)
pkg/provider/labeller.go:17
↓ 1 callersFunctionNewInvokeResolver
(client *containerd.Client)
pkg/provider/handlers/invoke_resolver.go:19
↓ 1 callersFunctionNewLocalResolver
NewLocalResolver creates a new resolver for reading from a hosts file
pkg/local_resolver.go:19
↓ 1 callersFunctionNewSupervisor
(sock string)
pkg/supervisor.go:74
↓ 1 callersMethodNodes
Nodes returns the nodes within the graph
pkg/depgraph/depgraph.go:24
↓ 1 callersMethodQuery
Query submits a log request to the actual logging system.
pkg/logs/requestor.go:27
↓ 1 callersMethodRemove
(svcs []Service)
pkg/supervisor.go:291
↓ 1 callersMethodResolve
Resolve retruns a list of node names in order of their dependencies. A use case may be for determining the correct order to install software packages,
pkg/depgraph/depgraph.go:66
↓ 1 callersFunctionRootCommand
()
cmd/root.go:23
↓ 1 callersMethodStart
Start polling the disk for the hosts file in Path
pkg/local_resolver.go:28
↓ 1 callersMethodStart
Start listening and forwarding HTTP to the host
pkg/proxy.go:44
↓ 1 callersMethodStart
(svcs []Service)
pkg/supervisor.go:91
↓ 1 callersFunctionbinExists
(folder, name string)
cmd/install.go:103
↓ 1 callersFunctionbuildServiceGraph
(svcs []Service)
pkg/deployment_order.go:23
↓ 1 callersFunctionconfigureUpFlags
ConfigureUpFlags will define the flags for the `faasd up` command. The flag struct, configure, and parse are split like this to simplify testability.
cmd/up.go:190
next →1–100 of 195, ranked by callers