Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fnproject/fn
/ functions
Functions
2,053 in github.com/fnproject/fn
⨍
Functions
2,053
◇
Types & classes
309
↓ 1 callers
Function
newTmpfsIOFS
(ctx context.Context, cfg *Config)
api/agent/iofs_linux.go:23
↓ 1 callers
Method
newTransfer
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 callers
Function
newWithMigrations
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 callers
Function
nodeTypeFromString
(value string)
api/server/server.go:224
↓ 1 callers
Method
once
(ctx context.Context, request, result interface{}, method string, query map[string]string, path ...string)
api/agent/hybrid/client.go:169
↓ 1 callers
Function
optionalCorsWrap
(r *gin.Engine)
api/server/gin_middlewares.go:41
↓ 1 callers
Function
parseError
(msg *pb.CallFinished)
api/agent/runner_client.go:304
↓ 1 callers
Function
parseRepositoryTag
https://github.com/fsouza/go-dockerclient/blob/master/misc.go#L166
api/agent/drivers/driver.go:274
↓ 1 callers
Method
performInitState
(ctx context.Context, driver *DockerDriver, task *poolTask)
api/agent/drivers/docker/docker_pool.go:167
↓ 1 callers
Method
performReadyState
(ctx context.Context, driver *DockerDriver, task *poolTask)
api/agent/drivers/docker/docker_pool.go:219
↓ 1 callers
Method
performTeardown
(ctx context.Context, driver *DockerDriver, task *poolTask)
api/agent/drivers/docker/docker_pool.go:259
↓ 1 callers
Function
pingWithRetry
(ctx context.Context, db *sqlx.DB)
api/datastore/sql/sql.go:206
↓ 1 callers
Method
placeCall
(ctx context.Context, call *call)
api/agent/lb_agent.go:254
↓ 1 callers
Method
placeDetachCall
(ctx context.Context, call *call)
api/agent/lb_agent.go:242
↓ 1 callers
Function
postProcessRequest
(request *AppRequest, out io.Writer)
images/fn-test-utils/fn-test-utils.go:278
↓ 1 callers
Method
prepHeaders
prepHeaders is a utility function to compile http headers into a flat array.
api/agent/pure_runner.go:481
↓ 1 callers
Method
prepareImage
(ctx context.Context, driver *DockerDriver, img string, pullGate chan struct{})
api/agent/drivers/docker/docker_pool.go:270
↓ 1 callers
Function
processRequest
(ctx context.Context, in io.Reader)
images/fn-test-utils/fn-test-utils.go:165
↓ 1 callers
Function
profilerSetup
(router *gin.Engine, path string)
api/server/profile.go:10
↓ 1 callers
Function
promSanitizeMetricName
prometheus only allows [a-zA-Z0-9:_] in metrics names.
api/server/server.go:732
↓ 1 callers
Method
pullWithRetry
(trx *transfer)
api/agent/drivers/docker/image_puller.go:104
↓ 1 callers
Function
pwd
()
test/fn-system-tests/system_test.go:422
↓ 1 callers
Function
pwd
()
api/server/server.go:278
↓ 1 callers
Function
randStringBytes
(n int)
examples/tutorial/logging/main.go:16
↓ 1 callers
Function
readFile
(name string, size int)
images/fn-test-utils/fn-test-utils.go:389
↓ 1 callers
Function
receiveFromRunner
(ctx context.Context, protocolClient pb.RunnerProtocol_EngageClient, runnerAddress string, c pool.RunnerCall,
api/agent/runner_client.go:362
↓ 1 callers
Method
recordAttempt
()
api/runnerpool/placer_stats.go:63
↓ 1 callers
Function
recordFinishStats
(ctx context.Context, msg *pb.CallFinished, c pool.RunnerCall)
api/agent/runner_client.go:337
↓ 1 callers
Function
recordRetry
record a retry attempt for the api with status/reason provided
api/agent/drivers/docker/docker_client.go:158
↓ 1 callers
Method
register
(id string, cancel func())
api/agent/drivers/docker/docker_pool.go:338
↓ 1 callers
Function
registerViews
()
cmd/fnserver/main.go:27
↓ 1 callers
Function
registryFromEnv
()
api/agent/drivers/docker/registry.go:16
↓ 1 callers
Method
removeCallHandle
(cID string)
api/agent/pure_runner.go:669
↓ 1 callers
Function
reqURL
(req *http.Request)
api/server/runner_httptrigger.go:138
↓ 1 callers
Function
reqURL
(req *http.Request)
api/agent/call.go:106
↓ 1 callers
Function
resourceConfigGenerator
(t *testing.T)
api/models/fn_test.go:17
↓ 1 callers
Function
reverseString
(input string)
api/id/id.go:273
↓ 1 callers
Method
rmBusyLocked
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 callers
Method
rootMiddlewareWrapper
()
api/server/middleware.go:29
↓ 1 callers
Function
run
(ctx context.Context, tx *sqlx.Tx, m Migration, up bool)
api/datastore/sql/migratex/migrate.go:173
↓ 1 callers
Method
run
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 callers
Method
runHot
(ctx context.Context, caller slotCaller, call *call, tok ResourceToken, state ContainerState)
api/agent/agent.go:779
↓ 1 callers
Method
runHotReq
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 callers
Function
runImageStats
runImageStats runs continuously in background to periodically sample image cleaner statistics
api/agent/drivers/docker/docker.go:248
↓ 1 callers
Method
runMigrations
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 callers
Method
runStatusCall
Runs a status call using status image with baked in parameters.
api/agent/runner_status.go:132
↓ 1 callers
Function
runnerConnection
(address string, tlsConf *tls.Config, timeout time.Duration, dialOpts ...grpc.DialOption)
api/agent/runner_client.go:75
↓ 1 callers
Function
runnerGrpcServerAddr
(nodeNum int)
test/fn-system-tests/system_test.go:586
↓ 1 callers
Method
saveCallHandle
(ch *callHandle)
api/agent/pure_runner.go:663
↓ 1 callers
Function
sendToRunner
(ctx context.Context, protocolClient pb.RunnerProtocol_EngageClient, runnerAddress string, call pool.RunnerCal
api/agent/runner_client.go:249
↓ 1 callers
Method
setAgent
(a Agent)
api/agent/runner_status.go:61
↓ 1 callers
Method
setAuthToken
(val string)
api/agent/slots.go:254
↓ 1 callers
Function
setLogBuffer
()
api/datastore/datastoretest/test.go:23
↓ 1 callers
Function
setMachineID
()
api/server/init.go:38
↓ 1 callers
Method
setRequestBody
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 callers
Function
setUpSystem
()
test/fn-system-tests/system_test.go:105
↓ 1 callers
Function
simpleError
(err error)
api/server/error_response.go:20
↓ 1 callers
Method
spawnDetachSubmit
(state *callHandle)
api/agent/pure_runner.go:683
↓ 1 callers
Method
spawnPipeToFn
spawnPipeToFn pumps data to Function via callHandle io.PipeWriter (pipeToFnW) which is fed using input channel.
api/agent/pure_runner.go:336
↓ 1 callers
Method
spawnPlaceCall
(ctx context.Context, call *call, errCh chan error)
api/agent/lb_agent.go:259
↓ 1 callers
Method
spawnReceiver
spawnReceiver starts a gRPC receiver, which feeds received LB messages into inQueue
api/agent/pure_runner.go:376
↓ 1 callers
Method
spawnSender
spawnSender starts a gRPC sender, which pumps messages from outQueue to the LB.
api/agent/pure_runner.go:404
↓ 1 callers
Method
spawnStatusCall
(ctx context.Context, payload json.RawMessage)
api/agent/runner_status.go:239
↓ 1 callers
Method
spawnSubmit
(state *callHandle)
api/agent/pure_runner.go:676
↓ 1 callers
Method
startGears
(ctx context.Context, cancel context.CancelFunc)
api/server/server.go:843
↓ 1 callers
Method
startStateTrackers
(ctx context.Context, call *call)
api/agent/agent.go:276
↓ 1 callers
Method
startTransfer
(trx *transfer)
api/agent/drivers/docker/image_puller.go:132
↓ 1 callers
Function
statsCallLatency
(ctx context.Context, dur time.Duration, callStatus string)
api/agent/stats.go:116
↓ 1 callers
Function
statsContainerEvicted
(ctx context.Context, containerState string)
api/agent/stats.go:98
↓ 1 callers
Function
statsLBAgentRunnerExecLatency
(ctx context.Context, dur time.Duration)
api/agent/stats.go:78
↓ 1 callers
Function
statsLBAgentRunnerSchedLatency
(ctx context.Context, dur time.Duration)
api/agent/stats.go:74
↓ 1 callers
Function
statsStatusCall
(ctx context.Context, cached, success, network string)
api/agent/stats.go:126
↓ 1 callers
Method
submit
(ctx context.Context, call *call)
api/agent/agent.go:284
↓ 1 callers
Method
swap
(stderr io.Writer, cs *driver_stats.Stats)
api/agent/agent.go:1340
↓ 1 callers
Function
trigSourceCacheKey
(app, typ, source string)
api/agent/data_access.go:82
↓ 1 callers
Function
unlock
(ctx context.Context, tx *sqlx.Tx)
api/datastore/sql/migratex/migrate.go:254
↓ 1 callers
Method
unregister
(id string)
api/agent/drivers/docker/docker_pool.go:349
↓ 1 callers
Method
url
(query map[string]string, args ...string)
api/agent/hybrid/client.go:220
↓ 1 callers
Method
validateApp
()
api/models/app_wrapper.go:9
↓ 1 callers
Method
wait
(ctx context.Context)
api/agent/drivers/docker/docker.go:602
↓ 1 callers
Method
waitError
waitError waits until the session is completed and results any queued error if there is any.
api/agent/pure_runner.go:179
↓ 1 callers
Method
waitHot
waitHot pings and waits for a hot container from the slot queue
api/agent/agent.go:528
↓ 1 callers
Function
whoAmI
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 callers
Function
withLock
(ctx context.Context, tx *sqlx.Tx, f func(*sqlx.Tx) error)
api/datastore/sql/migratex/migrate.go:127
↓ 1 callers
Function
withRIDProvider
(ridp *RIDProvider)
api/server/server_options.go:31
↓ 1 callers
Method
writeResp
(ctx context.Context, max uint64, resp *http.Response, w io.Writer)
api/agent/agent.go:711
Method
AddAPIMiddleware
AddAPIMiddleware add middleware
fnext/setup.go:25
Method
AddAPIMiddlewareFunc
AddAPIMiddlewareFunc add middlewarefunc
fnext/setup.go:27
Method
AddAppListener
AddAppListener adds an AppListener for the server to use.
api/server/app_listeners.go:15
Method
AddAppListener
AddAppListener adds a listener that will be invoked around any relevant methods.
fnext/setup.go:20
Function
AddCA
AddCA adds a ca cert to the given tls config
api/common/tls_utils.go:62
Method
AddCallListener
AddCallListener adds a listener that will be fired before and after a function is executed.
api/server/listeners.go:6
Method
AddCallListener
implements Agent
api/agent/pure_runner.go:659
Method
AddCallListener
(listener fnext.CallListener)
api/agent/listeners.go:15
Method
AddCallListener
implements Agent
api/agent/lb_agent.go:126
Method
AddCallListener
(f fnext.CallListener)
api/agent/mock_agent.go:57
Method
AddCallListener
AddCallListener adds a listener that will be invoked around any call invocations.
fnext/setup.go:22
Function
AddClientCA
AddClientCA adds a client cert to the given tls config
api/common/tls_utils.go:38
Method
AddEndpointFunc
AddEndpointFunc adds an endpoint to /v2/x
api/server/extension_points.go:23
Method
AddExtension
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
← previous
next →
801–900 of 2,053, ranked by callers