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
↓ 8 callers
Method
StepDone
(stage metricStage)
pkg/controller/metric.go:382
↓ 8 callers
Method
Sync
(rs *Resource)
pkg/api/funclet.go:101
↓ 8 callers
Function
Unmarshal
Unmarshal unmarshals the given data If v is a *map[string]interface{}, numbers are converted to int64 or float64
pkg/util/json/json.go:53
↓ 8 callers
Method
command
(args ...string)
pkg/funclet/runtime/runc/runc.go:57
↓ 8 callers
Function
findAndMarkRuntimeMap
(b *testing.B, args *benchmarkRuntimeArgs)
pkg/controller/rtctrl/runtime_dispatcher_test.go:283
↓ 7 callers
Method
AddCondition
(key, value string)
pkg/rest/criteria.go:25
↓ 7 callers
Method
BaseURL
(baseURL *url.URL)
pkg/rest/request.go:205
↓ 7 callers
Method
Do
(ctx *InvokeContext)
pkg/controller/invoke.go:40
↓ 7 callers
Method
GetPaths
(id string)
pkg/funclet/file/path_manager.go:29
↓ 7 callers
Method
Name
Name returns the name of the subsystem.
pkg/funclet/runtime/cgroup/cgroup_manage_linux.go:254
↓ 7 callers
Function
NewRuntimeInfo
(params *NewRuntimeParameters)
pkg/controller/rtctrl/runtimeinfo.go:26
↓ 7 callers
Method
Post
()
pkg/rest/client.go:32
↓ 7 callers
Method
ScrapStage
(stage metricStage)
pkg/controller/metric.go:348
↓ 7 callers
Method
Timeout
Timeout makes the request use the given duration as a timeout. Sets the "timeout" parameter.
pkg/rest/request.go:191
↓ 7 callers
Method
WriteHeader
(stateCode int)
pkg/util/httptest/response.go:51
↓ 7 callers
Method
WriteStdLog
(from int, buf []byte, eof bool)
pkg/controller/rtctrl/logstore.go:38
↓ 7 callers
Method
adaptName
adaptName converts a CgroupName identifier to a driver specific conversion value. if outputToCgroupFs is true, the result is returned in the cgroupfs
pkg/funclet/runtime/cgroup/cgroup_manage_linux.go:68
↓ 7 callers
Method
setFlagLocked
(flag bits)
pkg/controller/rtctrl/logstore.go:350
↓ 6 callers
Function
ByteSize
ByteSize returns a human-readable byte string of the form 10M, 12.5K, and so forth. The following units are available: T: Terabyte G: Gigabyte M:
pkg/util/bytefmt/bytes.go:51
↓ 6 callers
Function
CacheKey
(cacheType CacheType, key string)
pkg/controller/function/cache.go:38
↓ 6 callers
Method
ContainerInfo
(ID string)
pkg/funclet/runtime/api/container.go:35
↓ 6 callers
Method
Exists
Exists checks if the cgroup already exists
pkg/funclet/runtime/cgroup/types.go:83
↓ 6 callers
Method
Has
Has returns true if and only if item is contained in the set.
pkg/funclet/runtime/cgroup/string.go:63
↓ 6 callers
Function
InitFlags
InitFlags normalizes, parses, then logs the command line flags
pkg/util/flag/flags.go:48
↓ 6 callers
Method
Insert
Insert adds items to the set.
pkg/funclet/runtime/cgroup/string.go:49
↓ 6 callers
Method
Mode
()
pkg/util/zip/streamSingleZip.go:45
↓ 6 callers
Function
NewDispatchServerV2
(c *DispatcherV2Options, rtMap RuntimeDispatcher)
pkg/controller/rtctrl/dispatcherv2.go:40
↓ 6 callers
Function
NewRegistry
(o *Options)
pkg/controller/registry/registry.go:42
↓ 6 callers
Function
NewResource
()
pkg/api/funclet.go:77
↓ 6 callers
Method
Notify
()
pkg/controller/rtctrl/request.go:200
↓ 6 callers
Function
Register
(name string, factory AuthFactory)
pkg/auth/factory/factory.go:31
↓ 6 callers
Method
ResourceStatistics
()
pkg/controller/rtctrl/runtime_dispatcher.go:53
↓ 6 callers
Method
SetCommitID
(cm string)
pkg/controller/rtctrl/runtimeinfo.go:78
↓ 6 callers
Method
SetLabel
(k, v string)
pkg/controller/metric.go:360
↓ 6 callers
Function
ToBytes
ToBytes parses a string formatted by ByteSize as bytes.
pkg/util/bytefmt/bytes.go:90
↓ 6 callers
Function
getTmpSock
()
pkg/controller/rtctrl/dispatcherv2_test.go:38
↓ 6 callers
Function
parseInfoFile
(r io.Reader)
pkg/util/mount/mountinfo_linux.go:59
↓ 6 callers
Method
refreshMuxLocked
refreshMuxLocked creates a new mux and must be called while locked. Otherwise the view of handlers may not be consistent
pkg/server/mux/pathrecorder.go:114
↓ 6 callers
Function
setupHijackConn
(w http.ResponseWriter, r *http.Request)
pkg/controller/rtctrl/dispatcherv2.go:93
↓ 5 callers
Method
AddCallerSkip
(n int)
pkg/util/logs/logs.go:437
↓ 5 callers
Method
AddFlags
(prefix string, fs *pflag.FlagSet)
pkg/controller/registry/options.go:66
↓ 5 callers
Method
Code
()
pkg/util/httptest/response.go:75
↓ 5 callers
Method
Debug
Debug is equivalent to the global Debug function, guarded by the value of v. See the documentation of V for usage.
pkg/util/logs/logs.go:361
↓ 5 callers
Method
Error
()
pkg/funclet/errors.go:47
↓ 5 callers
Method
Error
()
pkg/controller/rtctrl/errors.go:40
↓ 5 callers
Function
Fatalf
(template string, args ...interface{})
pkg/util/logs/logs.go:486
↓ 5 callers
Function
GetNormalizedString
(s string, skipSlash bool)
pkg/auth/bce/helper.go:42
↓ 5 callers
Method
GetSignature
(*rest.Request)
pkg/auth/auth.go:25
↓ 5 callers
Method
Has
Has returns true if and only if item is contained in the set.
pkg/funclet/runtime/cgroup/utils.go:65
↓ 5 callers
Method
Headers
()
pkg/api/controller.go:83
↓ 5 callers
Method
Kill
(id string, signal string, all bool)
pkg/funclet/runtime/runc/runc.go:43
↓ 5 callers
Method
ListenAndServe
()
pkg/controller/rtctrl/dispatcherv2.go:66
↓ 5 callers
Method
LockContainer
(id string, event api.Event, ctx *funcletCtx.Context)
pkg/funclet/container.go:44
↓ 5 callers
Method
MemUsed
()
pkg/controller/rtctrl/logstore.go:43
↓ 5 callers
Method
Name
()
pkg/server/healthz/healthz.go:31
↓ 5 callers
Function
NewDecoder
NewDecoder delegates to json.NewDecoder It is only here so this package can be a drop-in for common encoding/json uses
pkg/util/json/json.go:41
↓ 5 callers
Function
NewInvokeProxyRequest
(headers map[string]string, body []byte, bodyStream io.ReadWriter)
pkg/api/controller.go:138
↓ 5 callers
Function
NewInvokeProxyResponse
()
pkg/api/controller.go:155
↓ 5 callers
Function
NewOption
()
pkg/controller/registry/options.go:43
↓ 5 callers
Function
NewRequest
NewRequest creates a new request helper object for accessing runtime.Objects on a server. TODO: add client-side throttle & backoff like k8s TODO: more
pkg/rest/request.go:113
↓ 5 callers
Function
Parse
Parse parses an BRN into its constituent parts. Some example BRNs: brn:cloud:elasticbeanstalk:us-east-1:123456789012:environment/My App/MyEnvironment
pkg/brn/brn.go:79
↓ 5 callers
Method
Request
()
pkg/server/context.go:63
↓ 5 callers
Method
SetContainer
(container *api.ContainerInfo)
pkg/funclet/context/context.go:32
↓ 5 callers
Method
Start
(id string)
pkg/funclet/runtime/runc/runc.go:37
↓ 5 callers
Method
UnLockContainerWithLog
(id string, ctx *funcletCtx.Context)
pkg/funclet/container.go:74
↓ 5 callers
Method
UnlistedHandleFunc
UnlistedHandleFunc registers the handler function for the given pattern, but doesn't list it. If a handler already exists for pattern, Handle panics.
pkg/server/mux/pathrecorder.go:199
↓ 5 callers
Method
Value
()
pkg/rest/criteria.go:26
↓ 5 callers
Method
Verb
Verb begins a request with a verb (GET, POST, PUT, DELETE). Example usage of RESTClient's request building interface: c, err := rest.NewRESTClient(..
pkg/rest/client.go:90
↓ 5 callers
Function
Warnf
(template string, args ...interface{})
pkg/util/logs/logs.go:462
↓ 5 callers
Method
buildCgroupPaths
buildCgroupPaths builds a path to each cgroup subsystem for the specified name.
pkg/funclet/runtime/cgroup/cgroup_manage_linux.go:130
↓ 5 callers
Function
getFlagName
(prefix, flagName string)
pkg/controller/registry/options.go:74
↓ 5 callers
Method
loadRequest
(requestID string)
pkg/controller/rtctrl/runtime.go:291
↓ 5 callers
Function
newLogStatStore
func newLogStatStore(requestID, runtimeID, userID, funcName, funcVer, fpath, logtype string) LogStatStore {
pkg/controller/rtctrl/logstore.go:152
↓ 5 callers
Function
readFile
(dir, file string)
pkg/funclet/runtime/cgroup/freezer.go:38
↓ 5 callers
Method
updateStreamMode
updateStreamMode: update runtime stream mode
pkg/controller/rtctrl/runtimeinfo.go:141
↓ 4 callers
Method
Add
Add adds delta, which may be negative, similar to sync.WaitGroup. If Add with a positive delta happens after Wait, it will return error, which prevent
pkg/util/waitgroup/waitgroup.go:36
↓ 4 callers
Method
ContainerResourceStats
ContainerResourceStats
pkg/funclet/runtime/resource.go:52
↓ 4 callers
Function
Error
(msg string, fields ...zap.Field)
pkg/util/logs/logs.go:466
↓ 4 callers
Method
Error
()
pkg/controller/rtctrl/errors.go:31
↓ 4 callers
Method
Error
()
pkg/auth/errors.go:27
↓ 4 callers
Method
Exist
(id string)
pkg/funclet/container.go:97
↓ 4 callers
Function
FlushLogs
()
pkg/util/logs/logs.go:444
↓ 4 callers
Method
GetFunction
(input *api.GetFunctionInput)
pkg/controller/registry/registry.go:37
↓ 4 callers
Function
GetVersionAndAlias
(qualifier string)
pkg/brn/function.go:176
↓ 4 callers
Method
Handle
(pattern string, handler http.Handler)
pkg/server/healthz/healthz.go:84
↓ 4 callers
Method
Header
Header returns HTTP Header
pkg/rest/request.go:591
↓ 4 callers
Function
InitLogs
InitLogs need to be called explicit in the main application
pkg/util/logs/logs.go:82
↓ 4 callers
Method
Install
Install registers the APIServer's `/version` handler.
pkg/server/routes/version.go:33
↓ 4 callers
Function
InstallHandler
InstallHandler registers handlers for health checking on the path "/healthz" to mux. *All handlers* for mux must be specified in exactly one call to I
pkg/server/healthz/healthz.go:68
↓ 4 callers
Method
InvokeDone
(request *RequestInfo, signal bool)
pkg/controller/rtctrl/runtime.go:316
↓ 4 callers
Method
List
()
pkg/funclet/runtime/runc/runc.go:42
↓ 4 callers
Function
ListenerFromAddress
(addr string, fileMode os.FileMode)
pkg/controller/rtctrl/listener.go:56
↓ 4 callers
Function
Md5BceUid
(uid string)
pkg/brn/brn.go:122
↓ 4 callers
Method
NewContext
(requestID string, logger *logs.Logger)
pkg/funclet/handler.go:35
↓ 4 callers
Function
NewDataStorer
NewDataStorer create a apiserver client
pkg/controller/function/function_server.go:40
↓ 4 callers
Function
NewInt
New creates a Int from a list of values.
pkg/funclet/runtime/cgroup/utils.go:32
↓ 4 callers
Function
NewInvokeMetrics
(reqID string)
pkg/controller/metric.go:304
↓ 4 callers
Function
NewOptions
()
cmd/controller/options/options.go:74
↓ 4 callers
Function
NewPathRecorderMux
NewPathRecorderMux creates a new PathRecorderMux
pkg/server/mux/pathrecorder.go:83
↓ 4 callers
Function
NewRequestInfo
(requestID string, runtime *RuntimeInfo)
pkg/controller/rtctrl/request.go:79
← previous
next →
101–200 of 1,662, ranked by callers