MCPcopy Create free account

hub / github.com/fnproject/fn / functions

Functions2,053 in github.com/fnproject/fn

↓ 5 callersFunctioncreateRequest
(t *testing.T, method, path string, body io.Reader)
api/server/server_test.go:32
↓ 5 callersFunctionensureTrigger
(t *testing.T, trigger *models.Trigger)
test/fn-system-tests/exec_http_trigger_test.go:458
↓ 5 callersFunctiongetEnvInt
(key string, fallback int)
api/server/init.go:83
↓ 5 callersFunctionminUint64
(a, b uint64)
api/agent/resource.go:251
↓ 5 callersFunctionnewTestClient
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 callersFunctionstatsTooBusy
(ctx context.Context)
api/agent/stats.go:70
↓ 5 callersFunctiontryQueueError
(err error, done chan error)
api/agent/runner_client.go:320
↓ 5 callersFunctionwhere
(b *bytes.Buffer, args []interface{}, colOp string, val interface{})
api/datastore/sql/sql.go:759
↓ 4 callersMethodAddCallListener
(fnext.CallListener)
api/agent/agent.go:80
↓ 4 callersMethodCloseGroup
CloseGroup initiates a close and blocks until session counter becomes zero.
api/common/wait_utils.go:109
↓ 4 callersMethodDefaultCtx
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 callersMethodDockerAuth
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 callersMethodExtensions
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 callersMethodGetExecutionDuration
()
api/agent/grpc/runner.pb.go:425
↓ 4 callersMethodGetNotifier
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 callersMethodGetSchedulerDuration
()
api/agent/grpc/runner.pb.go:418
↓ 4 callersMethodInput
Input feeds the container with data
api/agent/drivers/driver.go:122
↓ 4 callersFunctionIsFuncError
IsFuncError checks if err is of type FuncError
api/models/error.go:284
↓ 4 callersMethodMarshalText
MarshalText implements the encoding.TextMarshaler interface by returning the string encoded Id.
api/id/id.go:134
↓ 4 callersFunctionNewEvictor
()
api/agent/evictor.go:54
↓ 4 callersFunctionNewImagePuller
(docker dockerClient)
api/agent/drivers/docker/image_puller.go:54
↓ 4 callersFunctionNewLBAgent
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 callersFunctionNewRequestBasedFnAnnotator
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 callersFunctionNewSlotQueue
(key string)
api/agent/slots.go:74
↓ 4 callersMethodNextID
()
api/datastore/datastoretest/test.go:65
↓ 4 callersFunctionRequestIDFromContext
RequestIDFromContext extract the request id from the context
api/common/request_id_util.go:18
↓ 4 callersMethodReset
()
api/agent/grpc/runner.pb.go:64
↓ 4 callersFunctionRunAllTests
(t *testing.T, dsf DataStoreFunc, rp ResourceProvider)
api/datastore/datastoretest/test.go:1225
↓ 4 callersMethodSetPullImageRetryPolicy
Set image pull retry policy and retriable error checker
api/agent/drivers/driver.go:76
↓ 4 callersFunctionSetUpPureRunnerNode
(ctx context.Context, nodeNum int, StatusBarrierFile string)
test/fn-system-tests/system_test.go:348
↓ 4 callersMethodStartContainerWithContext
(id string, hostConfig *docker.HostConfig, ctx context.Context)
api/agent/drivers/docker/docker_client.go:32
↓ 4 callersMethodStatus
(ctx context.Context)
api/runnerpool/runner_pool.go:54
↓ 4 callersMethodStatus
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 callersMethodStatus2
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 callersMethodSubset
(other Annotations)
api/models/annotations.go:40
↓ 4 callersMethodTmpFsSize
Tmpfs Filesystem size limit for the container, in megabytes.
api/agent/drivers/driver.go:174
↓ 4 callersMethodUpdateTrigger
UpdateTrigger updates a trigger object in the data store
api/models/datastore.go:59
↓ 4 callersMethodUsage
returns inuse versus free
api/agent/drivers/docker/docker_pool.go:111
↓ 4 callersFunctionVersion
(ctx context.Context, tx *sqlx.Tx)
api/datastore/sql/migratex/migrate.go:305
↓ 4 callersFunctionWithDBURL
WithDBURL maps EnvDBURL
api/server/server.go:334
↓ 4 callersFunctionWithFnAnnotator
WithFnAnnotator adds a fnEndpoint provider to the server
api/server/server.go:483
↓ 4 callersFunctionWithLogFormat
WithLogFormat maps EnvLogFormat TODO(deprecate): caller should just call SetLogFormat
api/server/server.go:308
↓ 4 callersFunctionWithLogLevel
WithLogLevel maps EnvLogLevel TODO(deprecate): caller should just call WithLogLevel
api/server/server.go:317
↓ 4 callersFunctionWithTriggerAnnotator
WithTriggerAnnotator adds a trigggerEndpoint provider to the server
api/server/server.go:475
↓ 4 callersFunctionWithWebPort
WithWebPort maps EnvPort
api/server/server.go:288
↓ 4 callersFunctioncheckErr
(input string)
api/models/config_test.go:21
↓ 4 callersFunctioncheckFile
(path string)
api/common/tls_utils.go:86
↓ 4 callersFunctioncommonCookieRun
(ctx context.Context, cookie drivers.Cookie)
api/agent/drivers/docker/docker_test.go:97
↓ 4 callersMethodconfigureULimit
(name string, value *uint64, log logrus.FieldLogger)
api/agent/drivers/docker/cookie.go:149
↓ 4 callersFunctioncreateContainer
(ctx context.Context, client *docker.Client, id, labelTag, labelId string)
api/agent/drivers/docker/docker_test.go:307
↓ 4 callersFunctiondestroyContainer
(client *docker.Client, id string)
api/agent/drivers/docker/docker_test.go:341
↓ 4 callersMethoddo
(ctx context.Context, request, result interface{}, method string, query map[string]string, url ...string)
api/agent/hybrid/client.go:126
↓ 4 callersFunctionenvTweaker
(name, value string)
api/server/runner_httptrigger_test.go:20
↓ 4 callersFunctiongetConfigContent
See fn-test-utils for json response
test/fn-system-tests/exec_http_trigger_test.go:47
↓ 4 callersFunctiongetEnvDuration
(key string, fallback time.Duration)
api/server/init.go:106
↓ 4 callersMethodhandleCallEnd
(ctx context.Context, call *call, err error, isForwarded bool)
api/agent/lb_agent.go:321
↓ 4 callersMethodisMaxCapacityLocked
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 callersFunctionnewHotContainer
newHotContainer creates a container that can be used for multiple sequential events
api/agent/agent.go:1199
↓ 4 callersMethodqueueSlot
(slot Slot)
api/agent/slots.go:149
↓ 4 callersFunctionridFromMetadata
(ctx context.Context)
grpcutil/dial.go:74
↓ 4 callersMethodsetDefaults
()
api/agent/resource_test.go:45
↓ 4 callersFunctionsetTrackerTestVals
(tr *resourceTracker, vals *trackerVals)
api/agent/resource_test.go:9
↓ 4 callersFunctionstatsContainerUDSInitLatency
(ctx context.Context, start time.Time, end time.Time, containerUDSState string)
api/agent/stats.go:82
↓ 4 callersFunctionstatsDequeue
(ctx context.Context)
api/agent/stats.go:42
↓ 3 callersMethodAddRootMiddlewareFunc
AddRootMiddlewareFunc add middleware for end user applications
fnext/setup.go:31
↓ 3 callersMethodCommand
Command returns the command to run within the container.
api/agent/drivers/driver.go:116
↓ 3 callersMethodConfigureRunner
Configure the remote runner by passing config data.
api/agent/grpc/runner.pb.go:1460
↓ 3 callersFunctionEnableShutdownEndpoint
EnableShutdownEndpoint adds /shutdown to initiate a shutdown of an fn server.
api/server/server_options.go:44
↓ 3 callersMethodEnvVars
EnvVars returns environment variable key-value pairs.
api/agent/drivers/driver.go:119
↓ 3 callersMethodEqualsWithAnnotationSubset
(a2 *App)
api/models/app.go:183
↓ 3 callersMethodExposedPort
Port exposed in Fn Container for local debugger to attach to
api/agent/drivers/driver.go:213
↓ 3 callersMethodGetAppID
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 callersMethodGetBody
()
api/agent/grpc/runner.pb.go:525
↓ 3 callersMethodGetBody
()
api/agent/grpc/runner.pb.go:612
↓ 3 callersMethodGetBody
()
api/agent/grpc/runner.pb.go:977
↓ 3 callersFunctionGetBusyBoxImage
()
test/testutils.go:33
↓ 3 callersMethodGetCtrCreateDuration
()
api/agent/grpc/runner.pb.go:460
↓ 3 callersMethodGetCtrPrepDuration
()
api/agent/grpc/runner.pb.go:453
↓ 3 callersMethodGetErrorCode
()
api/agent/grpc/runner.pb.go:383
↓ 3 callersMethodGetErrorStr
()
api/agent/grpc/runner.pb.go:390
↓ 3 callersMethodGetErrorUser
()
api/agent/grpc/runner.pb.go:432
↓ 3 callersFunctionGetHelper
GetHelper returns a helper for a specific driver
api/datastore/sql/dbhelper/dbhelper.go:33
↓ 3 callersMethodGetImagePullWaitDuration
()
api/agent/grpc/runner.pb.go:446
↓ 3 callersMethodGetInitStartTime
()
api/agent/grpc/runner.pb.go:467
↓ 3 callersFunctionGetPublicImage
(imageName string)
test/testutils.go:26
↓ 3 callersMethodGetSuccess
()
api/agent/grpc/runner.pb.go:369
↓ 3 callersMethodGetUtilization
Retrieve current stats/usage
api/agent/resource.go:61
↓ 3 callersMethodHandle
(next http.Handler)
fnext/middleware.go:10
↓ 3 callersMethodHandleDone
HandleDone is cleanup function to cancel pending contexts and to record stats for the placement session.
api/runnerpool/placer_tracker.go:93
↓ 3 callersMethodInspectImage
(ctx context.Context, name string)
api/agent/drivers/docker/docker_client.go:39
↓ 3 callersMethodIsDuplicateKeyError
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 callersMethodKillContainer
(opts docker.KillContainerOptions)
api/agent/drivers/docker/docker_client.go:33
↓ 3 callersMethodLogger
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 callersMethodModel
()
api/agent/call.go:354
↓ 3 callersFunctionNewCachedDataAccess
NewCachedDataAccess is a wrapper that caches entries temporarily
api/agent/data_access.go:71
↓ 3 callersFunctionNewClampWriter
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 callersFunctionNewDockerNetworks
(conf drivers.Config)
api/agent/drivers/docker/docker_networks.go:17
↓ 3 callersFunctionNewDockerPool
(conf drivers.Config, driver *DockerDriver)
api/agent/drivers/docker/docker_pool.go:114
↓ 3 callersFunctionNewFromEnv
NewFromEnv creates a new Functions server based on env vars.
api/server/server.go:238
↓ 3 callersFunctionNewPlacerTracker
(requestCtx context.Context, cfg *PlacerConfig, call RunnerCall)
api/runnerpool/placer_tracker.go:21
← previousnext →201–300 of 2,053, ranked by callers