Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/openfaas/faasd
/ functions
Functions
195 in github.com/openfaas/faasd
⨍
Functions
195
◇
Types & classes
21
↓ 140 callers
Method
Error
()
pkg/provider/handlers/mutate_namespaces.go:283
↓ 24 callers
Method
Close
()
pkg/supervisor.go:287
↓ 13 callers
Function
httpHeaderMiddleware
(next http.HandlerFunc)
cmd/provider.go:167
↓ 11 callers
Method
Contains
Contains returns true if the target Node is found in its list
pkg/depgraph/depgraph.go:30
↓ 11 callers
Function
indexStr
(st []string, t string)
pkg/deployment_order_test.go:216
↓ 10 callers
Method
Add
Add places a Node into the current Graph
pkg/depgraph/depgraph.go:41
↓ 8 callers
Method
Remove
Remove deletes a target Node reference from the list of nodes in the graph
pkg/depgraph/depgraph.go:47
↓ 8 callers
Function
getRequestNamespace
(namespace string)
pkg/provider/handlers/utils.go:13
↓ 8 callers
Function
validNamespace
validNamespace indicates whether the namespace is eligable to be used for OpenFaaS functions.
pkg/provider/handlers/utils.go:32
↓ 7 callers
Function
ReadFromEnv
ReadFromEnv loads the FaaSConfig and the Containerd specific config form the env variables
pkg/provider/config/read.go:15
↓ 7 callers
Function
buildDeploymentOrder
(svcs []Service)
pkg/deployment_order.go:9
↓ 6 callers
Function
GetFunction
GetFunction returns a function that matches name
pkg/provider/handlers/function_get.go:17
↓ 6 callers
Function
getNamespaceSecretMountPath
(userSecretPath string, namespace string)
pkg/provider/handlers/utils.go:26
↓ 5 callers
Method
Getenv
(key string)
pkg/provider/config/read_test.go:18
↓ 5 callers
Method
Labels
(ctx context.Context, namespace string)
pkg/provider/labeller.go:7
↓ 5 callers
Function
readNamespaceFromQuery
(r *http.Request)
pkg/provider/handlers/utils.go:21
↓ 4 callers
Function
Remove
Remove removes a container
pkg/service/service.go:26
↓ 4 callers
Method
Start
Start any polling or connections required to resolve
pkg/resolver.go:8
↓ 4 callers
Function
parseNamespaceRequest
getNamespace returns a namespace object or an error
pkg/provider/handlers/mutate_namespaces.go:210
↓ 3 callers
Function
DeleteCNINetwork
DeleteCNINetwork deletes a CNI network based on task ID and Pid
pkg/cninetwork/cni_network.go:124
↓ 3 callers
Method
Get
Get an IP address using an asynchronous operation
pkg/resolver.go:11
↓ 3 callers
Function
GetIPAddress
GetIPAddress returns the IP address from container based on container name and PID
pkg/cninetwork/cni_network.go:150
↓ 3 callers
Function
LoadComposeFileWithArch
LoadComposeFileWithArch is a helper method for loading a docker-compose file
pkg/supervisor.go:399
↓ 3 callers
Function
MakeSecretHandler
(store provider.Labeller, mountPath string)
pkg/provider/handlers/secret.go:20
↓ 3 callers
Function
NewEnvBucket
()
pkg/provider/config/read_test.go:12
↓ 3 callers
Function
ParseCompose
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 callers
Method
Setenv
(key string, value string)
pkg/provider/config/read_test.go:22
↓ 3 callers
Function
buildLabels
(request *types.FunctionDeployment)
pkg/provider/handlers/deploy.go:206
↓ 3 callers
Function
cp
(source, destFolder string)
cmd/install.go:131
↓ 3 callers
Function
equalStringSlice
(t *testing.T, want, found []string)
pkg/supervisor_test.go:154
↓ 3 callers
Function
hasOpenFaaSLabel
(labels map[string]string)
pkg/provider/handlers/mutate_namespaces.go:270
↓ 3 callers
Function
isCNIResultForPID
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 callers
Function
parseSecret
(r *http.Request)
pkg/provider/handlers/secret.go:148
↓ 3 callers
Function
printVersion
()
cmd/root.go:75
↓ 2 callers
Function
CreateCNINetwork
CreateCNINetwork creates a CNI network interface and attaches it to the context
pkg/cninetwork/cni_network.go:112
↓ 2 callers
Function
Enable
(unit string)
pkg/systemd/systemd.go:14
↓ 2 callers
Function
GetArchSuffix
GetArchSuffix provides client CPU architecture and client OS from ArchGetter
pkg/supervisor.go:443
↓ 2 callers
Function
InitNetwork
InitNetwork writes configlist file and initializes CNI network
pkg/cninetwork/cni_network.go:78
↓ 2 callers
Function
InstallUnit
(name string, tokens map[string]string)
pkg/systemd/systemd.go:71
↓ 2 callers
Function
ListFunctions
ListFunctions returns a map of all functions with running tasks on namespace
pkg/provider/handlers/function_list.go:31
↓ 2 callers
Function
ListNamespaces
(client *containerd.Client)
pkg/provider/handlers/namespaces.go:24
↓ 2 callers
Function
MakeInfoHandler
MakeInfoHandler creates handler for /system/info endpoint
pkg/provider/handlers/info.go:19
↓ 2 callers
Function
NewProxy
NewProxy creates a HTTP proxy to expose a host
pkg/proxy.go:16
↓ 2 callers
Function
PrepareImage
(ctx context.Context, client *containerd.Client, imageName, snapshotter string, pullAlways bool)
pkg/service/service.go:162
↓ 2 callers
Function
Start
(unit string)
pkg/systemd/systemd.go:33
↓ 2 callers
Function
WithNetNS
(ns netns.NsHandle, work func() error)
pkg/cninetwork/netns.go:20
↓ 2 callers
Function
buildCmd
buildCmd reeturns the equivalent of journalctl -t <namespace>:<name> \ --output=json \ --since=<timestamp> \ <--follow> \
pkg/logs/requestor.go:65
↓ 2 callers
Function
buildLabelsAndAnnotations
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 callers
Function
copy
(wg *sync.WaitGroup, r io.Reader, pri journal.Priority, vars map[string]string)
cmd/collect.go:51
↓ 2 callers
Function
createSecret
(w http.ResponseWriter, r *http.Request, mountPath string)
pkg/provider/handlers/secret.go:88
↓ 2 callers
Function
createTask
(ctx context.Context, container containerd.Container, cni gocni.CNI)
pkg/provider/handlers/deploy.go:229
↓ 2 callers
Function
deploy
(ctx context.Context, req types.FunctionDeployment, client *containerd.Client, cni gocni.CNI, secretMountPath
pkg/provider/handlers/deploy.go:120
↓ 2 callers
Function
dirExists
(dirname string)
pkg/cninetwork/cni_network.go:245
↓ 2 callers
Function
ensureWorkingDir
(folder string)
cmd/install.go:120
↓ 2 callers
Function
makeBasicAuthFiles
(wd string)
cmd/up.go:137
↓ 2 callers
Function
makeFile
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 callers
Function
namespaceExists
(ctx context.Context, client *containerd.Client, name string)
pkg/provider/handlers/mutate_namespaces.go:116
↓ 2 callers
Function
netID
netID generates the network IF based on task name and task PID
pkg/cninetwork/cni_network.go:218
↓ 2 callers
Function
netNamespace
netNamespace generates the namespace path based on task PID.
pkg/cninetwork/cni_network.go:223
↓ 2 callers
Function
parseEntry
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 callers
Function
pipe
(from net.Conn, to net.Conn)
pkg/proxy.go:97
↓ 2 callers
Function
preDeploy
(client *containerd.Client, additional int64)
pkg/provider/handlers/deploy.go:341
↓ 2 callers
Function
prepull
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 callers
Function
printLogo
()
cmd/root.go:79
↓ 2 callers
Function
pullImage
(ctx context.Context, client *containerd.Client, resolver remotes.Resolver, imageName string)
pkg/service/service.go:219
↓ 2 callers
Function
readEnvFromProcessEnv
(env []string)
pkg/provider/handlers/function_get.go:92
↓ 2 callers
Function
readMemoryLimitFromSpec
(spec *specs.Spec)
pkg/provider/handlers/function_get.go:145
↓ 2 callers
Function
readSecretsFromMounts
(mounts []specs.Mount)
pkg/provider/handlers/function_get.go:116
↓ 2 callers
Function
validateSecrets
(secretMountPath string, secrets []string)
pkg/provider/handlers/deploy.go:314
↓ 1 callers
Function
CNIGateway
CNIGateway returns the gateway for default subnet
pkg/cninetwork/cni_network.go:207
↓ 1 callers
Function
ConnectivityCheck
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 callers
Function
DaemonReload
()
pkg/systemd/systemd.go:52
↓ 1 callers
Function
Execute
Execute faasd
cmd/root.go:28
↓ 1 callers
Function
GetVersion
GetVersion get latest version
pkg/version.go:12
↓ 1 callers
Function
LoadComposeFile
LoadComposeFile is a helper method for loading a docker-compose file
pkg/supervisor.go:394
↓ 1 callers
Function
MakeDeleteHandler
(client *containerd.Client, cni gocni.CNI)
pkg/provider/handlers/delete.go:21
↓ 1 callers
Function
MakeDeployHandler
MakeDeployHandler returns a handler to deploy a function
pkg/provider/handlers/deploy.go:32
↓ 1 callers
Function
MakeMutateNamespace
(client *containerd.Client)
pkg/provider/handlers/mutate_namespaces.go:17
↓ 1 callers
Function
MakeNamespacesLister
(client *containerd.Client)
pkg/provider/handlers/namespaces.go:14
↓ 1 callers
Function
MakeReadHandler
(client *containerd.Client)
pkg/provider/handlers/read.go:14
↓ 1 callers
Function
MakeReplicaReaderHandler
(client *containerd.Client)
pkg/provider/handlers/replicas.go:12
↓ 1 callers
Function
MakeReplicaUpdateHandler
(client *containerd.Client, cni gocni.CNI)
pkg/provider/handlers/scale.go:19
↓ 1 callers
Function
MakeUpdateHandler
(client *containerd.Client, cni gocni.CNI, secretMountPath string, alwaysPull bool)
pkg/provider/handlers/update.go:20
↓ 1 callers
Function
NSPathByPidWithRoot
(root string, pid int)
pkg/cninetwork/netns.go:64
↓ 1 callers
Function
NewDepgraph
()
pkg/depgraph/depgraph.go:17
↓ 1 callers
Function
NewFakeLabeller
(labels map[string]string)
pkg/provider/labeller.go:17
↓ 1 callers
Function
NewInvokeResolver
(client *containerd.Client)
pkg/provider/handlers/invoke_resolver.go:19
↓ 1 callers
Function
NewLocalResolver
NewLocalResolver creates a new resolver for reading from a hosts file
pkg/local_resolver.go:19
↓ 1 callers
Function
NewSupervisor
(sock string)
pkg/supervisor.go:74
↓ 1 callers
Method
Nodes
Nodes returns the nodes within the graph
pkg/depgraph/depgraph.go:24
↓ 1 callers
Method
Query
Query submits a log request to the actual logging system.
pkg/logs/requestor.go:27
↓ 1 callers
Method
Remove
(svcs []Service)
pkg/supervisor.go:291
↓ 1 callers
Method
Resolve
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 callers
Function
RootCommand
()
cmd/root.go:23
↓ 1 callers
Method
Start
Start polling the disk for the hosts file in Path
pkg/local_resolver.go:28
↓ 1 callers
Method
Start
Start listening and forwarding HTTP to the host
pkg/proxy.go:44
↓ 1 callers
Method
Start
(svcs []Service)
pkg/supervisor.go:91
↓ 1 callers
Function
binExists
(folder, name string)
cmd/install.go:103
↓ 1 callers
Function
buildServiceGraph
(svcs []Service)
pkg/deployment_order.go:23
↓ 1 callers
Function
configureUpFlags
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