Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baidu/EasyFaaS
/ functions
Functions
1,662 in github.com/baidu/EasyFaaS
⨍
Functions
1,662
◇
Types & classes
371
↓ 1 callers
Method
RebootWait
()
pkg/controller/rtctrl/runtimeinfo.go:92
↓ 1 callers
Method
Reborn
(*api.FuncletClientRebornInput)
pkg/funclet/client/client.go:61
↓ 1 callers
Function
RecoverFromPanic
RecoverFromPanic replaces the specified error with an error containing the original error, and the call tree when a panic occurs. This enables error
pkg/util/runtime/runtime.go:152
↓ 1 callers
Method
Recv
(callbk func(*statInfo) error)
pkg/controller/rtctrl/stat_receiver.go:40
↓ 1 callers
Method
Recycle
()
pkg/funclet/storage/storage.go:28
↓ 1 callers
Method
RecycleTask
(stopCh <-chan struct{}, finishCh chan struct{})
pkg/funclet/task.go:33
↓ 1 callers
Method
ReleaseMarkedResource
ReleaseUsedResource
pkg/controller/rtctrl/runtime_dispatcher.go:414
↓ 1 callers
Method
RemoveByPathName
(name string)
pkg/funclet/file/container_path.go:120
↓ 1 callers
Method
RemoveTmpDevice
(ctx *funcletCtx.Context, pathName string)
pkg/funclet/reset.go:293
↓ 1 callers
Function
RequestController
(ctx *ProxyContext)
pkg/httptrigger/httptrigger.go:48
↓ 1 callers
Method
ResetContainers
(ctx *funcletCtx.Context, params *api.ResetRequest)
pkg/funclet/reset.go:59
↓ 1 callers
Method
Resume
(ID string)
pkg/funclet/runtime/runc/runc.go:45
↓ 1 callers
Function
Run
Run runs the specified Funclet Server with the given Dependencies. This should never exit.
cmd/funclet/app/server.go:33
↓ 1 callers
Function
Run
(runOptions *options.ControllerOptions)
cmd/controller/app/server.go:39
↓ 1 callers
Function
Run
(stubsOptions *options.StubsOptions)
cmd/stubs/app/server.go:28
↓ 1 callers
Function
Run
(runOptions *options.HTTPTriggerOptions)
cmd/httptrigger/app/server.go:29
↓ 1 callers
Method
Run
(c *cache)
pkg/util/cache/cache.go:1094
↓ 1 callers
Method
RunPostStartHooks
RunPostStartHooks runs the PostStartHooks for the server
pkg/server/hooks.go:131
↓ 1 callers
Method
RunPreShutdownHooks
RunPreShutdownHooks runs the PreShutdownHooks for the server
pkg/server/hooks.go:147
↓ 1 callers
Function
RunServer
RunServer listens on the given port if listener is not given, then spawns a go-routine continuously serving until the stopCh is closed. This function
pkg/server/serve.go:52
↓ 1 callers
Method
RunWithStdio
(c *CreateOpts, stdout io.WriteCloser, stderr io.WriteCloser)
pkg/funclet/runtime/runc/runc.go:39
↓ 1 callers
Method
SaveFile
Save the cache's items to the given filename, creating the file if it doesn't exist, and overwriting it if it does. NOTE: This method is deprecated i
pkg/util/cache/cache.go:1002
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
pkg/server/handler.go:86
↓ 1 callers
Method
Set
Add an item to the cache, replacing any existing item. If the duration is 0 (DefaultExpiration), the cache's default expiration time is used. If it is
pkg/util/cache/cache.go:69
↓ 1 callers
Method
Set
(k string, x interface{}, d time.Duration)
pkg/util/cache/watch_cache.go:67
↓ 1 callers
Method
Set
(value string)
pkg/util/flag/namedcertkey_flag.go:41
↓ 1 callers
Method
SetCommitID
(v string)
pkg/api/apiserver.go:135
↓ 1 callers
Function
SetGaugeWithLabels
(index string, value float64, labels *prometheus.Labels)
pkg/util/logs/metric/metric.go:164
↓ 1 callers
Method
SetHeaders
(hMap *map[string]string)
pkg/api/controller.go:92
↓ 1 callers
Method
SetLoadTime
(pre, post int64)
pkg/controller/rtctrl/runtimeinfo.go:68
↓ 1 callers
Method
SetLogStore
(store LogStatStore)
pkg/controller/rtctrl/request.go:96
↓ 1 callers
Function
SetupNATOut
SetupNATOut adds NAT rules for outbound traffic with iptables.
pkg/funclet/network/iptables_linux.go:49
↓ 1 callers
Function
SimpleAuthTokenVerify
SimpleAuthTokenVerify xxx
pkg/server/filters/simple_auth.go:37
↓ 1 callers
Method
Size
()
pkg/util/zip/streamSingleZip.go:41
↓ 1 callers
Method
SnapshotProjectPaths
()
pkg/funclet/quota/quota.go:23
↓ 1 callers
Method
SnapshotTmpPaths
()
pkg/funclet/tmp/tmp_manager.go:50
↓ 1 callers
Method
StartContainer
(ctx *funcletCtx.Context)
pkg/funclet/init.go:139
↓ 1 callers
Method
StartContainer
(*CreateContainerRequest)
pkg/funclet/runtime/api/container.go:29
↓ 1 callers
Method
State
(id string)
pkg/funclet/runtime/runc/runc.go:41
↓ 1 callers
Method
StepDone
(stage rtCtrlInvokeStage)
pkg/controller/rtctrl/metrics.go:175
↓ 1 callers
Method
StopContainer
(ctx *funcletCtx.Context, sync bool)
pkg/funclet/reset.go:253
↓ 1 callers
Method
String
String implements the Stringer interface for Device
pkg/funclet/device/loop/loop_linux.go:54
↓ 1 callers
Method
String
()
pkg/controller/rtctrl/logstore.go:188
↓ 1 callers
Method
String
String returns the canonical representation of the BRN
pkg/brn/brn.go:97
↓ 1 callers
Method
SummaryMetrics
(ctx *InvokeContext)
pkg/controller/invoke.go:526
↓ 1 callers
Method
SyncResource
(*api.FuncletResource)
pkg/controller/rtctrl/runtime_dispatcher.go:48
↓ 1 callers
Method
SyncRuntimeResource
(string, *api.Resource)
pkg/controller/rtctrl/runtime_dispatcher.go:49
↓ 1 callers
Function
TimeTrack
TimeTrack
pkg/util/logs/logs.go:495
↓ 1 callers
Function
TryConnectAddress
(addr string)
pkg/controller/rtctrl/listener.go:98
↓ 1 callers
Method
Unmount
(path []string, ignoreError bool)
pkg/funclet/file/mount_linux.go:61
↓ 1 callers
Method
UnmountAllByPathName
(name string)
pkg/funclet/file/mount_linux.go:80
↓ 1 callers
Method
Unregister
Unregister removes a path from the mux.
pkg/server/mux/pathrecorder.go:151
↓ 1 callers
Method
UnsetContainerNet
(containerPid int)
pkg/funclet/network/network.go:28
↓ 1 callers
Function
Unzip
(archive, target string)
pkg/util/zip/unzip.go:34
↓ 1 callers
Method
UnzipCode
(ctx *context.Context, filename, target string)
pkg/funclet/code/manager.go:42
↓ 1 callers
Method
UpdateResource
(u *UpdateResourceOpts)
pkg/funclet/runtime/runc/runc.go:36
↓ 1 callers
Method
Valid
()
pkg/controller/rtctrl/type.go:244
↓ 1 callers
Method
Validator
()
pkg/util/logs/metric/config.go:39
↓ 1 callers
Method
Verb
()
pkg/rest/request.go:185
↓ 1 callers
Method
Verb
(verb string)
pkg/rest/client.go:31
↓ 1 callers
Function
Version
(name string, value versionValue, usage string)
pkg/version/verflag/verflag.go:82
↓ 1 callers
Function
VersionVar
(p *versionValue, name string, value versionValue, usage string)
pkg/version/verflag/verflag.go:75
↓ 1 callers
Method
WaitForContainerExits
(ctx *funcletCtx.Context)
pkg/funclet/reset.go:221
↓ 1 callers
Method
WarmUp
(ctx *funcletCtx.Context, params api.WarmupRequest)
pkg/funclet/warmup.go:58
↓ 1 callers
Method
WarmUp
(*api.FuncletClientWarmUpInput)
pkg/funclet/client/client.go:59
↓ 1 callers
Method
WarmUpContainerEvent
(ctx *funcletCtx.Context, params api.WarmupRequest)
pkg/funclet/warmup.go:44
↓ 1 callers
Function
Warn
(msg string, fields ...zap.Field)
pkg/util/logs/logs.go:458
↓ 1 callers
Function
WithTimeout
WithTimeout returns an http.Handler that runs h with a timeout determined by timeoutFunc. The new http.Handler calls h.ServeHTTP to handle each reques
pkg/server/filters/timeout.go:66
↓ 1 callers
Method
WriteFunctionReportLog
(log string, params *reportParameters)
pkg/controller/rtctrl/logstore.go:40
↓ 1 callers
Function
adaptCheckToHandler
adaptCheckToHandler returns an http.HandlerFunc that serves the provided checks.
pkg/server/healthz/healthz.go:136
↓ 1 callers
Method
addProjectInfo
(path string)
pkg/funclet/quota/xfs_quota.go:239
↓ 1 callers
Method
allocateIP
AllocateIP returns an unused IP for a specific process ID and saves it in the database.
pkg/funclet/network/allocate_ip_linux.go:34
↓ 1 callers
Method
appendContainerHosts
(containerID string)
pkg/funclet/init.go:161
↓ 1 callers
Function
basefds
()
pkg/funclet/command/command_test.go:295
↓ 1 callers
Function
bigIntToIP
Converts 128 bit integer into a 4 bytes IP address
pkg/funclet/network/allocate_ip_linux.go:122
↓ 1 callers
Function
build
(ctx *InvokeContext, funcError, payload string, logMessage []string)
pkg/controller/invoke.go:479
↓ 1 callers
Function
buildErrorResponse
(ctx *InvokeContext, err error)
pkg/controller/invoke.go:82
↓ 1 callers
Function
buildRequest
(ctx *ProxyContext)
pkg/httptrigger/httptrigger.go:148
↓ 1 callers
Method
buildResponse
(ctx *InvokeContext, output *rtctrl.InvocationResponse)
pkg/controller/invoke.go:411
↓ 1 callers
Function
buildStdlogRequestResponse
()
pkg/controller/rtctrl/dispatcherv2_test.go:121
↓ 1 callers
Function
buildTotallyToBody
(ctx *InvokeContext, funcError, payload string, logMessage []string)
pkg/controller/invoke.go:463
↓ 1 callers
Method
calSHA256
(ctx *context.Context, filename string)
pkg/funclet/code/check.go:45
↓ 1 callers
Function
ceilBillDuration
(d time.Duration)
pkg/controller/rtctrl/request.go:43
↓ 1 callers
Method
checkAndMarkResource
checkAndMarkResource
pkg/controller/rtctrl/runtime_dispatcher.go:378
↓ 1 callers
Function
checkRootfs
(timeout time.Duration, rootfsPath string, logger *logs.Logger)
pkg/funclet/helper.go:73
↓ 1 callers
Function
checkWait
checkWait returns true along with a number of seconds if the server instructed us to wait before retrying.
pkg/rest/request.go:552
↓ 1 callers
Function
contains
(s []string, e string)
pkg/auth/bce/helper.go:88
↓ 1 callers
Function
convertSliceNumbers
convertSliceNumbers traverses the slice, converting any json.Number values to int64 or float64. values which are map[string]interface{} or []interface
pkg/util/json/json.go:94
↓ 1 callers
Method
coolDown
coolDown
pkg/controller/task.go:126
↓ 1 callers
Function
createFunctionMeta
(c *routing.Context)
pkg/stubs/apiserver.go:173
↓ 1 callers
Method
createRequest
(input *InvocationInput)
pkg/controller/rtctrl/client.go:57
↓ 1 callers
Method
cronTask
cronTask: response to gc and health check TODO: Should move into runtime scheduler
pkg/controller/task.go:36
↓ 1 callers
Method
deleteVeth
(containerPid int)
pkg/funclet/network/network.go:126
↓ 1 callers
Function
detach
(fileName string)
pkg/funclet/device/loop/loop_unsupported.go:58
↓ 1 callers
Function
detach
(fileName string)
pkg/funclet/device/loop/loop_linux.go:125
↓ 1 callers
Method
disableIcc
()
pkg/funclet/network/iptables_linux.go:28
↓ 1 callers
Method
errLogDone
()
pkg/controller/rtctrl/logstore.go:368
↓ 1 callers
Method
errorFromBody
()
pkg/rest/request.go:680
↓ 1 callers
Function
fastTimeMarshalJSON
fastTimeMarshalJSON avoids one of the extra allocations that time.MarshalJSON is making.
pkg/userlog/userlog.go:268
↓ 1 callers
Function
filterErrors
filterErrors returns any errors (or nested errors, if the list contains nested Errors) for which all fns return false. If no errors remain a nil list
pkg/util/errors/errors.go:120
← previous
next →
701–800 of 1,662, ranked by callers