MCPcopy Create free account

hub / github.com/fnproject/fn / functions

Functions2,053 in github.com/fnproject/fn

↓ 1 callersFunctionnewTmpfsIOFS
(ctx context.Context, cfg *Config)
api/agent/iofs_linux.go:23
↓ 1 callersMethodnewTransfer
newTransfer initiates a new docker-pull if there's no active docker-pull present for the same image.
api/agent/drivers/docker/image_puller.go:71
↓ 1 callersFunctionnewWithMigrations
since New with fresh dbs skips all migrations: * open a fresh db on latest version * run all down migrations * run all up migrations [ then run tests
api/datastore/sql/sql_test.go:25
↓ 1 callersFunctionnodeTypeFromString
(value string)
api/server/server.go:224
↓ 1 callersMethodonce
(ctx context.Context, request, result interface{}, method string, query map[string]string, path ...string)
api/agent/hybrid/client.go:169
↓ 1 callersFunctionoptionalCorsWrap
(r *gin.Engine)
api/server/gin_middlewares.go:41
↓ 1 callersFunctionparseError
(msg *pb.CallFinished)
api/agent/runner_client.go:304
↓ 1 callersFunctionparseRepositoryTag
https://github.com/fsouza/go-dockerclient/blob/master/misc.go#L166
api/agent/drivers/driver.go:274
↓ 1 callersMethodperformInitState
(ctx context.Context, driver *DockerDriver, task *poolTask)
api/agent/drivers/docker/docker_pool.go:167
↓ 1 callersMethodperformReadyState
(ctx context.Context, driver *DockerDriver, task *poolTask)
api/agent/drivers/docker/docker_pool.go:219
↓ 1 callersMethodperformTeardown
(ctx context.Context, driver *DockerDriver, task *poolTask)
api/agent/drivers/docker/docker_pool.go:259
↓ 1 callersFunctionpingWithRetry
(ctx context.Context, db *sqlx.DB)
api/datastore/sql/sql.go:206
↓ 1 callersMethodplaceCall
(ctx context.Context, call *call)
api/agent/lb_agent.go:254
↓ 1 callersMethodplaceDetachCall
(ctx context.Context, call *call)
api/agent/lb_agent.go:242
↓ 1 callersFunctionpostProcessRequest
(request *AppRequest, out io.Writer)
images/fn-test-utils/fn-test-utils.go:278
↓ 1 callersMethodprepHeaders
prepHeaders is a utility function to compile http headers into a flat array.
api/agent/pure_runner.go:481
↓ 1 callersMethodprepareImage
(ctx context.Context, driver *DockerDriver, img string, pullGate chan struct{})
api/agent/drivers/docker/docker_pool.go:270
↓ 1 callersFunctionprocessRequest
(ctx context.Context, in io.Reader)
images/fn-test-utils/fn-test-utils.go:165
↓ 1 callersFunctionprofilerSetup
(router *gin.Engine, path string)
api/server/profile.go:10
↓ 1 callersFunctionpromSanitizeMetricName
prometheus only allows [a-zA-Z0-9:_] in metrics names.
api/server/server.go:732
↓ 1 callersMethodpullWithRetry
(trx *transfer)
api/agent/drivers/docker/image_puller.go:104
↓ 1 callersFunctionpwd
()
test/fn-system-tests/system_test.go:422
↓ 1 callersFunctionpwd
()
api/server/server.go:278
↓ 1 callersFunctionrandStringBytes
(n int)
examples/tutorial/logging/main.go:16
↓ 1 callersFunctionreadFile
(name string, size int)
images/fn-test-utils/fn-test-utils.go:389
↓ 1 callersFunctionreceiveFromRunner
(ctx context.Context, protocolClient pb.RunnerProtocol_EngageClient, runnerAddress string, c pool.RunnerCall,
api/agent/runner_client.go:362
↓ 1 callersMethodrecordAttempt
()
api/runnerpool/placer_stats.go:63
↓ 1 callersFunctionrecordFinishStats
(ctx context.Context, msg *pb.CallFinished, c pool.RunnerCall)
api/agent/runner_client.go:337
↓ 1 callersFunctionrecordRetry
record a retry attempt for the api with status/reason provided
api/agent/drivers/docker/docker_client.go:158
↓ 1 callersMethodregister
(id string, cancel func())
api/agent/drivers/docker/docker_pool.go:338
↓ 1 callersFunctionregisterViews
()
cmd/fnserver/main.go:27
↓ 1 callersFunctionregistryFromEnv
()
api/agent/drivers/docker/registry.go:16
↓ 1 callersMethodremoveCallHandle
(cID string)
api/agent/pure_runner.go:669
↓ 1 callersFunctionreqURL
(req *http.Request)
api/server/runner_httptrigger.go:138
↓ 1 callersFunctionreqURL
(req *http.Request)
api/agent/call.go:106
↓ 1 callersFunctionresourceConfigGenerator
(t *testing.T)
api/models/fn_test.go:17
↓ 1 callersFunctionreverseString
(input string)
api/id/id.go:273
↓ 1 callersMethodrmBusyLocked
rmBusyLocked updates an image in the in-use list and returns true if the image is removed from the in-use list.
api/agent/drivers/docker/image_cache.go:148
↓ 1 callersMethodrootMiddlewareWrapper
()
api/server/middleware.go:29
↓ 1 callersFunctionrun
(ctx context.Context, tx *sqlx.Tx, m Migration, up bool)
api/datastore/sql/migratex/migrate.go:173
↓ 1 callersMethodrun
Run executes the docker container. If task runs, drivers.RunResult will be returned. If something fails outside the task (ie: Docker), it will return
api/agent/drivers/docker/docker.go:396
↓ 1 callersMethodrunHot
(ctx context.Context, caller slotCaller, call *call, tok ResourceToken, state ContainerState)
api/agent/agent.go:779
↓ 1 callersMethodrunHotReq
runHotReq enqueues a free slot to slot queue manager and watches various timers and the consumer until the slot is consumed. A return value of false m
api/agent/agent.go:1076
↓ 1 callersFunctionrunImageStats
runImageStats runs continuously in background to periodically sample image cleaner statistics
api/agent/drivers/docker/docker.go:248
↓ 1 callersMethodrunMigrations
check if the db already existed, if the db is brand new then we can skip over all the migrations BUT we must be sure to set the right migration number
api/datastore/sql/sql.go:245
↓ 1 callersMethodrunStatusCall
Runs a status call using status image with baked in parameters.
api/agent/runner_status.go:132
↓ 1 callersFunctionrunnerConnection
(address string, tlsConf *tls.Config, timeout time.Duration, dialOpts ...grpc.DialOption)
api/agent/runner_client.go:75
↓ 1 callersFunctionrunnerGrpcServerAddr
(nodeNum int)
test/fn-system-tests/system_test.go:586
↓ 1 callersMethodsaveCallHandle
(ch *callHandle)
api/agent/pure_runner.go:663
↓ 1 callersFunctionsendToRunner
(ctx context.Context, protocolClient pb.RunnerProtocol_EngageClient, runnerAddress string, call pool.RunnerCal
api/agent/runner_client.go:249
↓ 1 callersMethodsetAgent
(a Agent)
api/agent/runner_status.go:61
↓ 1 callersMethodsetAuthToken
(val string)
api/agent/slots.go:254
↓ 1 callersFunctionsetLogBuffer
()
api/datastore/datastoretest/test.go:23
↓ 1 callersFunctionsetMachineID
()
api/server/init.go:38
↓ 1 callersMethodsetRequestBody
setRequestGetBody sets GetBody function on the given http.Request if it is missing. GetBody allows reading from the request body without mutating the
api/agent/lb_agent.go:275
↓ 1 callersFunctionsetUpSystem
()
test/fn-system-tests/system_test.go:105
↓ 1 callersFunctionsimpleError
(err error)
api/server/error_response.go:20
↓ 1 callersMethodspawnDetachSubmit
(state *callHandle)
api/agent/pure_runner.go:683
↓ 1 callersMethodspawnPipeToFn
spawnPipeToFn pumps data to Function via callHandle io.PipeWriter (pipeToFnW) which is fed using input channel.
api/agent/pure_runner.go:336
↓ 1 callersMethodspawnPlaceCall
(ctx context.Context, call *call, errCh chan error)
api/agent/lb_agent.go:259
↓ 1 callersMethodspawnReceiver
spawnReceiver starts a gRPC receiver, which feeds received LB messages into inQueue
api/agent/pure_runner.go:376
↓ 1 callersMethodspawnSender
spawnSender starts a gRPC sender, which pumps messages from outQueue to the LB.
api/agent/pure_runner.go:404
↓ 1 callersMethodspawnStatusCall
(ctx context.Context, payload json.RawMessage)
api/agent/runner_status.go:239
↓ 1 callersMethodspawnSubmit
(state *callHandle)
api/agent/pure_runner.go:676
↓ 1 callersMethodstartGears
(ctx context.Context, cancel context.CancelFunc)
api/server/server.go:843
↓ 1 callersMethodstartStateTrackers
(ctx context.Context, call *call)
api/agent/agent.go:276
↓ 1 callersMethodstartTransfer
(trx *transfer)
api/agent/drivers/docker/image_puller.go:132
↓ 1 callersFunctionstatsCallLatency
(ctx context.Context, dur time.Duration, callStatus string)
api/agent/stats.go:116
↓ 1 callersFunctionstatsContainerEvicted
(ctx context.Context, containerState string)
api/agent/stats.go:98
↓ 1 callersFunctionstatsLBAgentRunnerExecLatency
(ctx context.Context, dur time.Duration)
api/agent/stats.go:78
↓ 1 callersFunctionstatsLBAgentRunnerSchedLatency
(ctx context.Context, dur time.Duration)
api/agent/stats.go:74
↓ 1 callersFunctionstatsStatusCall
(ctx context.Context, cached, success, network string)
api/agent/stats.go:126
↓ 1 callersMethodsubmit
(ctx context.Context, call *call)
api/agent/agent.go:284
↓ 1 callersMethodswap
(stderr io.Writer, cs *driver_stats.Stats)
api/agent/agent.go:1340
↓ 1 callersFunctiontrigSourceCacheKey
(app, typ, source string)
api/agent/data_access.go:82
↓ 1 callersFunctionunlock
(ctx context.Context, tx *sqlx.Tx)
api/datastore/sql/migratex/migrate.go:254
↓ 1 callersMethodunregister
(id string)
api/agent/drivers/docker/docker_pool.go:349
↓ 1 callersMethodurl
(query map[string]string, args ...string)
api/agent/hybrid/client.go:220
↓ 1 callersMethodvalidateApp
()
api/models/app_wrapper.go:9
↓ 1 callersMethodwait
(ctx context.Context)
api/agent/drivers/docker/docker.go:602
↓ 1 callersMethodwaitError
waitError waits until the session is completed and results any queued error if there is any.
api/agent/pure_runner.go:179
↓ 1 callersMethodwaitHot
waitHot pings and waits for a hot container from the slot queue
api/agent/agent.go:528
↓ 1 callersFunctionwhoAmI
whoAmI searches for a non-local address on any network interface, returning the first one it finds. it could be expanded to search eth0 or en0 only bu
api/server/init.go:51
↓ 1 callersFunctionwithLock
(ctx context.Context, tx *sqlx.Tx, f func(*sqlx.Tx) error)
api/datastore/sql/migratex/migrate.go:127
↓ 1 callersFunctionwithRIDProvider
(ridp *RIDProvider)
api/server/server_options.go:31
↓ 1 callersMethodwriteResp
(ctx context.Context, max uint64, resp *http.Response, w io.Writer)
api/agent/agent.go:711
MethodAddAPIMiddleware
AddAPIMiddleware add middleware
fnext/setup.go:25
MethodAddAPIMiddlewareFunc
AddAPIMiddlewareFunc add middlewarefunc
fnext/setup.go:27
MethodAddAppListener
AddAppListener adds an AppListener for the server to use.
api/server/app_listeners.go:15
MethodAddAppListener
AddAppListener adds a listener that will be invoked around any relevant methods.
fnext/setup.go:20
FunctionAddCA
AddCA adds a ca cert to the given tls config
api/common/tls_utils.go:62
MethodAddCallListener
AddCallListener adds a listener that will be fired before and after a function is executed.
api/server/listeners.go:6
MethodAddCallListener
implements Agent
api/agent/pure_runner.go:659
MethodAddCallListener
(listener fnext.CallListener)
api/agent/listeners.go:15
MethodAddCallListener
implements Agent
api/agent/lb_agent.go:126
MethodAddCallListener
(f fnext.CallListener)
api/agent/mock_agent.go:57
MethodAddCallListener
AddCallListener adds a listener that will be invoked around any call invocations.
fnext/setup.go:22
FunctionAddClientCA
AddClientCA adds a client cert to the given tls config
api/common/tls_utils.go:38
MethodAddEndpointFunc
AddEndpointFunc adds an endpoint to /v2/x
api/server/extension_points.go:23
MethodAddExtension
AddExtension both registers an extension and adds it. This is useful during extension development or if you want to build a custom server without usin
api/server/extensions.go:33
← previousnext →801–900 of 2,053, ranked by callers