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
↓ 5 callers
Function
createRequest
(t *testing.T, method, path string, body io.Reader)
api/server/server_test.go:32
↓ 5 callers
Function
ensureTrigger
(t *testing.T, trigger *models.Trigger)
test/fn-system-tests/exec_http_trigger_test.go:458
↓ 5 callers
Function
getEnvInt
(key string, fallback int)
api/server/init.go:83
↓ 5 callers
Function
minUint64
(a, b uint64)
api/agent/resource.go:251
↓ 5 callers
Function
newTestClient
func TestRegistry(t *testing.T) { image := test.GetTestUtilsImage() sizer, err := CheckRegistry(context.Background(), image, docker.AuthConfigurat
api/agent/drivers/docker/docker_test.go:294
↓ 5 callers
Function
statsTooBusy
(ctx context.Context)
api/agent/stats.go:70
↓ 5 callers
Function
tryQueueError
(err error, done chan error)
api/agent/runner_client.go:320
↓ 5 callers
Function
where
(b *bytes.Buffer, args []interface{}, colOp string, val interface{})
api/datastore/sql/sql.go:759
↓ 4 callers
Method
AddCallListener
(fnext.CallListener)
api/agent/agent.go:80
↓ 4 callers
Method
CloseGroup
CloseGroup initiates a close and blocks until session counter becomes zero.
api/common/wait_utils.go:109
↓ 4 callers
Method
DefaultCtx
DefaultCtx returns a context object (which may have custom attributes set) this may be used (e.g.) to pass on tenancy and user details that would orig
api/datastore/datastoretest/test.go:47
↓ 4 callers
Method
DockerAuth
DockerAuth should return docker auth credentials that will authenticate against a docker registry for a given drivers.ContainerTask.Image(). An error
api/agent/drivers/docker/docker.go:41
↓ 4 callers
Method
Extensions
Extensions are extra driver specific configuration options. They should be more specific but it's easier to be lazy.
api/agent/drivers/driver.go:194
↓ 4 callers
Method
GetExecutionDuration
()
api/agent/grpc/runner.pb.go:425
↓ 4 callers
Method
GetNotifier
GetNotifier returns a channel that can be monitored. The channel will return data every time IsMaxCapacity() flips from false to true state.
api/agent/drivers/docker/image_cache.go:41
↓ 4 callers
Method
GetSchedulerDuration
()
api/agent/grpc/runner.pb.go:418
↓ 4 callers
Method
Input
Input feeds the container with data
api/agent/drivers/driver.go:122
↓ 4 callers
Function
IsFuncError
IsFuncError checks if err is of type FuncError
api/models/error.go:284
↓ 4 callers
Method
MarshalText
MarshalText implements the encoding.TextMarshaler interface by returning the string encoded Id.
api/id/id.go:134
↓ 4 callers
Function
NewEvictor
()
api/agent/evictor.go:54
↓ 4 callers
Function
NewImagePuller
(docker dockerClient)
api/agent/drivers/docker/image_puller.go:54
↓ 4 callers
Function
NewLBAgent
NewLBAgent creates an Agent that knows how to load-balance function calls across a group of runner nodes.
api/agent/lb_agent.go:98
↓ 4 callers
Function
NewRequestBasedFnAnnotator
NewRequestBasedFnAnnotator creates a FnAnnotator that inspects the incoming request host and port, and uses this to generate fn invoke endpoint URLs b
api/server/fn_annotator.go:46
↓ 4 callers
Function
NewSlotQueue
(key string)
api/agent/slots.go:74
↓ 4 callers
Method
NextID
()
api/datastore/datastoretest/test.go:65
↓ 4 callers
Function
RequestIDFromContext
RequestIDFromContext extract the request id from the context
api/common/request_id_util.go:18
↓ 4 callers
Method
Reset
()
api/agent/grpc/runner.pb.go:64
↓ 4 callers
Function
RunAllTests
(t *testing.T, dsf DataStoreFunc, rp ResourceProvider)
api/datastore/datastoretest/test.go:1225
↓ 4 callers
Method
SetPullImageRetryPolicy
Set image pull retry policy and retriable error checker
api/agent/drivers/driver.go:76
↓ 4 callers
Function
SetUpPureRunnerNode
(ctx context.Context, nodeNum int, StatusBarrierFile string)
test/fn-system-tests/system_test.go:348
↓ 4 callers
Method
StartContainerWithContext
(id string, hostConfig *docker.HostConfig, ctx context.Context)
api/agent/drivers/docker/docker_client.go:32
↓ 4 callers
Method
Status
(ctx context.Context)
api/runnerpool/runner_pool.go:54
↓ 4 callers
Method
Status
Rather than rely on Prometheus for this, expose status that's specific to the runner lifecycle through this. Deprecated: Do not use.
api/agent/grpc/runner.pb.go:1458
↓ 4 callers
Method
Status2
If a status image container is configured (for handling custom statuses) the supplied opaque JSON is passed as an input to that image. Output from the
api/agent/grpc/runner.pb.go:1467
↓ 4 callers
Method
Subset
(other Annotations)
api/models/annotations.go:40
↓ 4 callers
Method
TmpFsSize
Tmpfs Filesystem size limit for the container, in megabytes.
api/agent/drivers/driver.go:174
↓ 4 callers
Method
UpdateTrigger
UpdateTrigger updates a trigger object in the data store
api/models/datastore.go:59
↓ 4 callers
Method
Usage
returns inuse versus free
api/agent/drivers/docker/docker_pool.go:111
↓ 4 callers
Function
Version
(ctx context.Context, tx *sqlx.Tx)
api/datastore/sql/migratex/migrate.go:305
↓ 4 callers
Function
WithDBURL
WithDBURL maps EnvDBURL
api/server/server.go:334
↓ 4 callers
Function
WithFnAnnotator
WithFnAnnotator adds a fnEndpoint provider to the server
api/server/server.go:483
↓ 4 callers
Function
WithLogFormat
WithLogFormat maps EnvLogFormat TODO(deprecate): caller should just call SetLogFormat
api/server/server.go:308
↓ 4 callers
Function
WithLogLevel
WithLogLevel maps EnvLogLevel TODO(deprecate): caller should just call WithLogLevel
api/server/server.go:317
↓ 4 callers
Function
WithTriggerAnnotator
WithTriggerAnnotator adds a trigggerEndpoint provider to the server
api/server/server.go:475
↓ 4 callers
Function
WithWebPort
WithWebPort maps EnvPort
api/server/server.go:288
↓ 4 callers
Function
checkErr
(input string)
api/models/config_test.go:21
↓ 4 callers
Function
checkFile
(path string)
api/common/tls_utils.go:86
↓ 4 callers
Function
commonCookieRun
(ctx context.Context, cookie drivers.Cookie)
api/agent/drivers/docker/docker_test.go:97
↓ 4 callers
Method
configureULimit
(name string, value *uint64, log logrus.FieldLogger)
api/agent/drivers/docker/cookie.go:149
↓ 4 callers
Function
createContainer
(ctx context.Context, client *docker.Client, id, labelTag, labelId string)
api/agent/drivers/docker/docker_test.go:307
↓ 4 callers
Function
destroyContainer
(client *docker.Client, id string)
api/agent/drivers/docker/docker_test.go:341
↓ 4 callers
Method
do
(ctx context.Context, request, result interface{}, method string, query map[string]string, url ...string)
api/agent/hybrid/client.go:126
↓ 4 callers
Function
envTweaker
(name, value string)
api/server/runner_httptrigger_test.go:20
↓ 4 callers
Function
getConfigContent
See fn-test-utils for json response
test/fn-system-tests/exec_http_trigger_test.go:47
↓ 4 callers
Function
getEnvDuration
(key string, fallback time.Duration)
api/server/init.go:106
↓ 4 callers
Method
handleCallEnd
(ctx context.Context, call *call, err error, isForwarded bool)
api/agent/lb_agent.go:321
↓ 4 callers
Method
isMaxCapacityLocked
We compare both busy + lru size against max. However, we also check if lru is not empty. This is because there's no point to show over capacity if Pop
api/agent/drivers/docker/image_cache.go:171
↓ 4 callers
Function
newHotContainer
newHotContainer creates a container that can be used for multiple sequential events
api/agent/agent.go:1199
↓ 4 callers
Method
queueSlot
(slot Slot)
api/agent/slots.go:149
↓ 4 callers
Function
ridFromMetadata
(ctx context.Context)
grpcutil/dial.go:74
↓ 4 callers
Method
setDefaults
()
api/agent/resource_test.go:45
↓ 4 callers
Function
setTrackerTestVals
(tr *resourceTracker, vals *trackerVals)
api/agent/resource_test.go:9
↓ 4 callers
Function
statsContainerUDSInitLatency
(ctx context.Context, start time.Time, end time.Time, containerUDSState string)
api/agent/stats.go:82
↓ 4 callers
Function
statsDequeue
(ctx context.Context)
api/agent/stats.go:42
↓ 3 callers
Method
AddRootMiddlewareFunc
AddRootMiddlewareFunc add middleware for end user applications
fnext/setup.go:31
↓ 3 callers
Method
Command
Command returns the command to run within the container.
api/agent/drivers/driver.go:116
↓ 3 callers
Method
ConfigureRunner
Configure the remote runner by passing config data.
api/agent/grpc/runner.pb.go:1460
↓ 3 callers
Function
EnableShutdownEndpoint
EnableShutdownEndpoint adds /shutdown to initiate a shutdown of an fn server.
api/server/server_options.go:44
↓ 3 callers
Method
EnvVars
EnvVars returns environment variable key-value pairs.
api/agent/drivers/driver.go:119
↓ 3 callers
Method
EqualsWithAnnotationSubset
(a2 *App)
api/models/app.go:183
↓ 3 callers
Method
ExposedPort
Port exposed in Fn Container for local debugger to attach to
api/agent/drivers/driver.go:213
↓ 3 callers
Method
GetAppID
GetAppID gets an app ID by app name, ensures if app exists. Returns ErrDatastoreEmptyAppName for empty appName. Returns ErrAppsNotFound if no app is f
api/models/datastore.go:16
↓ 3 callers
Method
GetBody
()
api/agent/grpc/runner.pb.go:525
↓ 3 callers
Method
GetBody
()
api/agent/grpc/runner.pb.go:612
↓ 3 callers
Method
GetBody
()
api/agent/grpc/runner.pb.go:977
↓ 3 callers
Function
GetBusyBoxImage
()
test/testutils.go:33
↓ 3 callers
Method
GetCtrCreateDuration
()
api/agent/grpc/runner.pb.go:460
↓ 3 callers
Method
GetCtrPrepDuration
()
api/agent/grpc/runner.pb.go:453
↓ 3 callers
Method
GetErrorCode
()
api/agent/grpc/runner.pb.go:383
↓ 3 callers
Method
GetErrorStr
()
api/agent/grpc/runner.pb.go:390
↓ 3 callers
Method
GetErrorUser
()
api/agent/grpc/runner.pb.go:432
↓ 3 callers
Function
GetHelper
GetHelper returns a helper for a specific driver
api/datastore/sql/dbhelper/dbhelper.go:33
↓ 3 callers
Method
GetImagePullWaitDuration
()
api/agent/grpc/runner.pb.go:446
↓ 3 callers
Method
GetInitStartTime
()
api/agent/grpc/runner.pb.go:467
↓ 3 callers
Function
GetPublicImage
(imageName string)
test/testutils.go:26
↓ 3 callers
Method
GetSuccess
()
api/agent/grpc/runner.pb.go:369
↓ 3 callers
Method
GetUtilization
Retrieve current stats/usage
api/agent/resource.go:61
↓ 3 callers
Method
Handle
(next http.Handler)
fnext/middleware.go:10
↓ 3 callers
Method
HandleDone
HandleDone is cleanup function to cancel pending contexts and to record stats for the placement session.
api/runnerpool/placer_tracker.go:93
↓ 3 callers
Method
InspectImage
(ctx context.Context, name string)
api/agent/drivers/docker/docker_client.go:39
↓ 3 callers
Method
IsDuplicateKeyError
IsDuplicateKeyError determines if an error indicates if the prior error was caused by a duplicate key insert
api/datastore/sql/dbhelper/dbhelper.go:29
↓ 3 callers
Method
KillContainer
(opts docker.KillContainerOptions)
api/agent/drivers/docker/docker_client.go:33
↓ 3 callers
Method
Logger
Driver will write output log from task execution to these writers. Must be non-nil. Use io.Discard if log is irrelevant.
api/agent/drivers/driver.go:132
↓ 3 callers
Method
Model
()
api/agent/call.go:354
↓ 3 callers
Function
NewCachedDataAccess
NewCachedDataAccess is a wrapper that caches entries temporarily
api/agent/data_access.go:71
↓ 3 callers
Function
NewClampWriter
NewClamWriter creates a clamp writer that will limit the number of bytes written to to an underlying stream This allows up to max bytes to be written
api/common/io_utils.go:77
↓ 3 callers
Function
NewDockerNetworks
(conf drivers.Config)
api/agent/drivers/docker/docker_networks.go:17
↓ 3 callers
Function
NewDockerPool
(conf drivers.Config, driver *DockerDriver)
api/agent/drivers/docker/docker_pool.go:114
↓ 3 callers
Function
NewFromEnv
NewFromEnv creates a new Functions server based on env vars.
api/server/server.go:238
↓ 3 callers
Function
NewPlacerTracker
(requestCtx context.Context, cfg *PlacerConfig, call RunnerCall)
api/runnerpool/placer_tracker.go:21
← previous
next →
201–300 of 2,053, ranked by callers