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
↓ 1 callers
Function
convertPorts
(ports []compose.ServicePortConfig)
pkg/supervisor.go:380
↓ 1 callers
Function
copyFile
(src, dst string)
cmd/provider.go:146
↓ 1 callers
Function
countFunctions
countFunctions returns the number of functions deployed along with a map with a count in each namespace
pkg/provider/handlers/deploy.go:188
↓ 1 callers
Function
createNamespace
(client *containerd.Client, w http.ResponseWriter, r *http.Request)
pkg/provider/handlers/mutate_namespaces.go:174
↓ 1 callers
Function
deleteNamespace
(client *containerd.Client, w http.ResponseWriter, r *http.Request)
pkg/provider/handlers/mutate_namespaces.go:96
↓ 1 callers
Function
deleteSecret
(w http.ResponseWriter, r *http.Request, mountPath string)
pkg/provider/handlers/secret.go:128
↓ 1 callers
Function
ensureSecretsDir
(folder string)
cmd/install.go:110
↓ 1 callers
Function
findNamespace
(target string, items []string)
pkg/provider/handlers/namespaces.go:55
↓ 1 callers
Method
get
(upstream string)
pkg/local_resolver.go:94
↓ 1 callers
Function
getNamespace
(client *containerd.Client, w http.ResponseWriter, r *http.Request)
pkg/provider/handlers/mutate_namespaces.go:133
↓ 1 callers
Function
getNamespaceOrDefault
(name, defaultNamespace string)
pkg/provider/handlers/invoke_resolver.go:50
↓ 1 callers
Function
getOSMounts
getOSMounts provides a mount for os-specific files such as the hosts file and resolv.conf
pkg/provider/handlers/deploy.go:289
↓ 1 callers
Function
getResolver
(configFile *configfile.ConfigFile)
pkg/service/service.go:138
↓ 1 callers
Function
getUpstream
(val string, defaultPort uint32)
pkg/proxy.go:102
↓ 1 callers
Function
isTraversal
(name string)
pkg/provider/handlers/secret.go:165
↓ 1 callers
Function
killTask
Adapted from Stellar - https://github.com/stellar
pkg/service/service.go:84
↓ 1 callers
Function
listSecrets
(store provider.Labeller, w http.ResponseWriter, r *http.Request, mountPath string)
pkg/provider/handlers/secret.go:49
↓ 1 callers
Function
loadServiceDefinition
load the docker compose file and then parse it as supervisor Services the logic for loading the compose file comes from the compose reference implemen
cmd/up.go:178
↓ 1 callers
Function
logErrOut
(out io.ReadCloser)
pkg/logs/requestor.go:178
↓ 1 callers
Function
makeProviderCmd
()
cmd/provider.go:26
↓ 1 callers
Function
makeServiceCmd
()
cmd/service.go:5
↓ 1 callers
Function
makeServiceLogsCmd
()
cmd/service_logs.go:14
↓ 1 callers
Function
moveSecretsToDefaultNamespaceSecrets
* * Mutiple namespace support was added after release 0.13.0 * Function will help users to migrate on multiple namespace support of faasd */
cmd/provider.go:111
↓ 1 callers
Function
parseUpFlags
ParseUpFlags will load the flag values into an upFlags object. Errors will be underlying Get errors from the pflag library.
cmd/up.go:196
↓ 1 callers
Function
pathExists
(path string)
pkg/cninetwork/cni_network.go:254
↓ 1 callers
Function
prepareEnv
(envProcess string, reqEnvVars map[string]string)
pkg/provider/handlers/deploy.go:265
↓ 1 callers
Method
rebuild
()
pkg/local_resolver.go:52
↓ 1 callers
Function
resolve
resolve mutates the resolved graph for a given starting node. The unresolved graph is used to detect a circular graph error and will throw a panic. Th
pkg/depgraph/depgraph.go:86
↓ 1 callers
Function
sortedEnvKeys
(env map[string]*string)
pkg/supervisor.go:429
↓ 1 callers
Function
streamLogs
streamLogs copies log entries from the journalctl `cmd`/`out` to `msgs` the loop is based on the Decoder example in the docs https://golang.org/pkg/en
pkg/logs/requestor.go:103
↓ 1 callers
Function
testArchGetter
(arch, os string)
pkg/supervisor_test.go:246
↓ 1 callers
Function
updateNamespace
(client *containerd.Client, w http.ResponseWriter, r *http.Request)
pkg/provider/handlers/mutate_namespaces.go:39
↓ 1 callers
Function
validateSecret
(secret types.Secret)
pkg/provider/handlers/secret.go:170
↓ 1 callers
Function
withMemory
(mem *specs.LinuxMemory)
pkg/provider/handlers/deploy.go:323
↓ 1 callers
Function
withOCIArgs
(args []string)
pkg/supervisor.go:319
↓ 1 callers
Function
withUserOrDefault
(userstr string)
pkg/supervisor.go:309
↓ 1 callers
Function
writeUnit
(name string, data []byte)
pkg/systemd/systemd.go:95
Function
CollectCommand
()
cmd/collect.go:15
Method
Get
Get resolves a hostname to an IP, or timesout after the duration has passed
pkg/local_resolver.go:77
Method
Get
(upstream string, got chan<- string, timeout time.Duration)
pkg/proxy_test.go:84
Method
Labels
(ctx context.Context, namespace string)
pkg/provider/labeller.go:23
Function
NSPathByPid
(pid int)
pkg/cninetwork/netns.go:60
Function
New
New returns a new journalctl log Requester
pkg/logs/requestor.go:22
Method
Resolve
(functionName string)
pkg/provider/handlers/invoke_resolver.go:23
Method
Start
()
pkg/proxy_test.go:80
Function
TestListSecrets
(t *testing.T)
pkg/provider/handlers/secret_test.go:170
Function
TestSecretCreation
(t *testing.T)
pkg/provider/handlers/secret_test.go:72
Function
Test_BuildLabelsAndAnnotationsFromServiceSpec_Annotations
(t *testing.T)
pkg/provider/handlers/function_test.go:11
Function
Test_BuildLabels_WithAnnotationCollision
(t *testing.T)
pkg/provider/handlers/deploy_test.go:62
Function
Test_BuildLabels_WithAnnotations
(t *testing.T)
pkg/provider/handlers/deploy_test.go:11
Function
Test_GetArchSuffix
(t *testing.T)
pkg/supervisor_test.go:188
Function
Test_InfoHandler
(t *testing.T)
pkg/provider/handlers/info_test.go:10
Function
Test_ParseCompose
(t *testing.T)
pkg/supervisor_test.go:9
Function
Test_ProcessEnvToEnvVars
(t *testing.T)
pkg/provider/handlers/function_test.go:59
Function
Test_Proxy_ToPrivateServer
(t *testing.T)
pkg/proxy_test.go:15
Function
Test_RemoveFinal
(t *testing.T)
pkg/depgraph/depgraph_test.go:24
Function
Test_RemoveMedial
(t *testing.T)
pkg/depgraph/depgraph_test.go:5
Function
Test_SetPort
(t *testing.T)
pkg/provider/config/read_test.go:79
Function
Test_SetServiceTimeout
(t *testing.T)
pkg/provider/config/read_test.go:48
Function
Test_SetSockByEnv
(t *testing.T)
pkg/provider/config/read_test.go:26
Function
Test_SplitMountToSecrets
(t *testing.T)
pkg/provider/handlers/function_test.go:34
Function
Test_buildCmd
(t *testing.T)
pkg/logs/requestor_test.go:48
Function
Test_buildDeploymentOrderCircularARequiresBRequiresA
(t *testing.T)
pkg/deployment_order_test.go:107
Function
Test_buildDeploymentOrderComposeFile
(t *testing.T)
pkg/deployment_order_test.go:126
Function
Test_buildDeploymentOrderOpenFaaS
(t *testing.T)
pkg/deployment_order_test.go:170
Function
Test_buildDeploymentOrder_ARequiresB
(t *testing.T)
pkg/deployment_order_test.go:8
Function
Test_buildDeploymentOrder_ARequiresBAndC
(t *testing.T)
pkg/deployment_order_test.go:33
Function
Test_buildDeploymentOrder_ARequiresBRequiresC
(t *testing.T)
pkg/deployment_order_test.go:68
Function
Test_findNamespace
(t *testing.T)
pkg/provider/handlers/function_test.go:89
Function
Test_getNamespaceSecretMountPath
(t *testing.T)
pkg/provider/handlers/utils_test.go:32
Function
Test_getRequestNamespace
(t *testing.T)
pkg/provider/handlers/utils_test.go:12
Function
Test_isCNIResultForPID_Found
(t *testing.T)
pkg/cninetwork/cni_network_test.go:9
Function
Test_isCNIResultForPID_NoMatch
(t *testing.T)
pkg/cninetwork/cni_network_test.go:36
Function
Test_parseEntry
(t *testing.T)
pkg/logs/requestor_test.go:14
Function
Test_parseSecret
(t *testing.T)
pkg/provider/handlers/secret_test.go:20
Function
Test_readMemoryLimitFromSpec
(t *testing.T)
pkg/provider/handlers/function_test.go:111
Function
Test_readNamespaceFromQuery
(t *testing.T)
pkg/provider/handlers/utils_test.go:53
Function
WithNetNSByPath
(path string, work func() error)
pkg/cninetwork/netns.go:52
Function
WithNetNSLink
(ns netns.NsHandle, ifName string, work func(link netlink.Link) error)
pkg/cninetwork/netns.go:39
Function
dirEmpty
(dirname string)
pkg/cninetwork/cni_network.go:227
Function
equalMountSlice
(t *testing.T, want, found []Mount)
pkg/supervisor_test.go:171
Function
init
()
cmd/up.go:36
Function
init
()
cmd/root.go:14
Function
logStdio
logStdio copied from https://github.com/containerd/containerd/pull/3085 https://github.com/stellarproject/orbit
cmd/collect.go:33
Function
main
()
main.go:10
Function
parseBaseCommand
(_ *cobra.Command, _ []string)
cmd/root.go:69
Function
preRunE
(cmd *cobra.Command, _ []string)
cmd/up.go:208
Function
preRunServiceLogsE
(cmd *cobra.Command, args []string)
cmd/service_logs.go:73
Function
runCollect
(_ *cobra.Command, _ []string)
cmd/collect.go:25
Function
runInstall
(_ *cobra.Command, _ []string)
cmd/install.go:27
Function
runProviderE
(cmd *cobra.Command, _ []string)
cmd/provider.go:38
Function
runRootCommand
(cmd *cobra.Command, args []string)
cmd/root.go:55
Function
runServiceE
(cmd *cobra.Command, args []string)
cmd/service.go:18
Function
runServiceLogsE
(cmd *cobra.Command, args []string)
cmd/service_logs.go:36
Function
runUp
(cmd *cobra.Command, _ []string)
cmd/up.go:47
← previous
101–195 of 195, ranked by callers