MCPcopy Create free account

hub / github.com/fnproject/fn / functions

Functions2,053 in github.com/fnproject/fn

↓ 10 callersMethodScan
Scan scans a DateTime value from database driver type.
api/common/time.go:123
↓ 10 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
fnext/api.go:17
↓ 10 callersMethodStatus
Status should return the current status of the task. Only valid options are {"error", "success", "timeout", "killed", "cancelled"}.
api/agent/drivers/driver.go:94
↓ 10 callersMethodString
()
api/agent/grpc/runner.pb.go:65
↓ 10 callersMethodTx
(f func(*sqlx.Tx) error)
api/datastore/sql/sql.go:692
↓ 10 callersFunctiongetEnv
(key, fallback string)
test/fn-system-tests/system_test.go:431
↓ 10 callersFunctionsetEnvStr
(err error, name string, dst *string)
api/agent/config.go:229
↓ 9 callersFunctionCallCount
Convenience function for us to get number of calls
api/runnerpool/naive_placer_test.go:62
↓ 9 callersMethodDoneSession
DoneSession decrements 1 from accumulated sessions and wakes up listeners when this reaches zero.
api/common/wait_utils.go:91
↓ 9 callersFunctionFromModel
FromModel creates a call object from an existing stored call model object, reading the body from the stored call payload
api/agent/call.go:121
↓ 9 callersMethodGetApps
GetApps gets a slice of Apps, optionally filtered by name, and a cursor. Missing filter or empty name will match all Apps.
api/models/datastore.go:20
↓ 9 callersMethodImage
Image returns the runtime specific image to run.
api/agent/drivers/driver.go:128
↓ 9 callersMethodInsertFn
InsertFn inserts a new function if one does not exist, applying any defaults necessary,
api/models/datastore.go:37
↓ 9 callersMethodPerformEviction
PerformEviction performs evictions to satisfy cpu & mem arguments and returns a slice of channels for evictions performed. The callers can wait on the
api/agent/evictor.go:44
↓ 9 callersMethodReset
Reset behaves as both Stop and Reset, draining its channel before calling reset. It differs from the stdlib Timer.Reset by being safe to call on an '
api/common/time.go:164
↓ 9 callersMethodacquireSlot
(s *slotToken)
api/agent/slots.go:85
↓ 9 callersFunctioncallFN
(ctx context.Context, u string, content io.Reader, output io.Writer, invokeType string)
test/fn-system-tests/exec_runner_status_test.go:26
↓ 9 callersFunctionfindRegistryConfig
(reg string, configs map[string]driverAuthConfig)
api/agent/drivers/docker/registry.go:75
↓ 9 callersMethodshutdown
shutdown initiates a shutdown and terminates the gRPC session with a given error.
api/agent/pure_runner.go:158
↓ 8 callersMethodAllocPoolId
fetch a pre-allocated free id from the pool may return too busy error.
api/agent/drivers/docker/docker_pool.go:102
↓ 8 callersMethodAnnotateTrigger
Annotates a trigger on read
api/server/trigger_annotator.go:13
↓ 8 callersMethodDeleteEvictToken
DeleteEvictToken deletes an eviction token from evictor system
api/agent/evictor.go:39
↓ 8 callersMethodGetFnByID
GetFnByID returns a function by ID. Returns ErrDatastoreEmptyFnID if fnID is empty. Returns ErrFnsNotFound if a fn is not found.
api/models/datastore.go:48
↓ 8 callersMethodGetFns
GetFns returns a list of funcs, and a cursor, applying any additional filters provided.
api/models/datastore.go:44
↓ 8 callersMethodGetString
GetString returns a string value if the annotation value is a string, otherwise an error
api/models/annotations.go:166
↓ 8 callersMethodGetTriggerByID
GetTriggerByID gets a trigger by it's id. Returns ErrTriggerNotFound when no matching trigger is found
api/models/datastore.go:67
↓ 8 callersMethodGroup
()
api/agent/drivers/docker/docker_test.go:35
↓ 8 callersMethodInsertApp
InsertApp inserts an App. Returns ErrDatastoreEmptyApp when app is nil, and ErrDatastoreEmptyAppName when app.Name is empty. Returns ErrAppsAlreadyExi
api/models/datastore.go:25
↓ 8 callersMethodMarkFree
(img *CachedImage)
api/agent/drivers/docker/image_cache.go:54
↓ 8 callersFunctionNewAPIError
NewAPIError returns an APIError given a code and error
api/models/error.go:243
↓ 8 callersFunctionNewTimer
NewTimer starts a new Timer with the given duration.
api/common/time.go:155
↓ 8 callersMethodPullImage
(ctx context.Context, cfg *docker.AuthConfiguration, img, repo, tag string)
api/agent/drivers/docker/image_puller.go:26
↓ 8 callersMethodRemoveApp
RemoveApp removes the App named appName. Returns ErrDatastoreEmptyAppName if appName is empty. Returns ErrAppsNotFound if an App is not found.
api/models/datastore.go:34
↓ 8 callersMethodUpdateState
(ctx context.Context, newState RequestStateType, slots *slotQueue)
api/agent/state_trackers.go:32
↓ 8 callersFunctioncreateTask
(id string)
api/agent/drivers/docker/docker_test.go:73
↓ 8 callersFunctiongenerateValidFn
Generate an Fn structure which passes validation
api/models/fn_test.go:188
↓ 8 callersFunctiongetACall
(slot string, mem, cpu int)
api/agent/evictor_test.go:7
↓ 8 callersFunctiongetAgent
()
api/agent/agent_evict_test.go:45
↓ 8 callersFunctionisNotifySet
(ctx context.Context, notify <-chan struct{})
api/agent/drivers/docker/image_cache_test.go:9
↓ 7 callersMethodAgentPath
()
api/agent/iofs.go:15
↓ 7 callersFunctionIsAPIError
IsAPIError returns whether err implements APIError
api/models/error.go:246
↓ 7 callersFunctionNewBackOff
(cfg BackOffConfig)
api/common/backoff.go:32
↓ 7 callersFunctionNewImageCache
(exemptTags []string, maxSize uint64)
api/agent/drivers/docker/image_cache.go:84
↓ 7 callersMethodRemoveContainer
(opts docker.RemoveContainerOptions)
api/agent/drivers/docker/docker_client.go:35
↓ 7 callersMethodRemoveFn
RemoveFn removes a function. Returns ErrDatastoreEmptyFnID if fnID is empty. Returns ErrFnsNotFound if a func is not found.
api/models/datastore.go:52
↓ 7 callersMethodSetDefaults
SetCreated sets zeroed field to defaults.
api/models/fn.go:120
↓ 7 callersMethodWaitContainerWithContext
(id string, ctx context.Context)
api/agent/drivers/docker/docker_client.go:31
↓ 7 callersFunctioncheckGetTokenId
(t *testing.T, a *slotQueue, dur time.Duration, id uint64)
api/agent/slots_test.go:45
↓ 7 callersMethodenqueueCallResponse
enqueueCallResponse enqueues a Submit() response to the LB and initiates a graceful shutdown of the session.
api/agent/pure_runner.go:222
↓ 7 callersFunctiongenerateValidTrigger
Generate a Trigger structure which passes validation
api/models/trigger_test.go:230
↓ 7 callersFunctiongetSubdomains
(hostname string)
api/agent/drivers/docker/registry.go:58
↓ 7 callersFunctionisNewContainerNeeded
(cur *slotQueueStats)
api/agent/slots.go:191
↓ 7 callersFunctionnewDS
for test methods, return concrete type, but don't expose
api/datastore/sql/sql.go:126
↓ 7 callersFunctionrunHotFailure
Attempt to queue/transmit the error to client
api/agent/agent.go:774
↓ 7 callersFunctionsetEnvBool
(err error, name string, dst *bool)
api/agent/config.go:239
↓ 6 callersMethodAddAPIMiddleware
AddAPIMiddleware add middleware
api/server/middleware.go:105
↓ 6 callersMethodAnnotateFn
Annotates a trigger on read
api/server/fn_annotator.go:14
↓ 6 callersFunctionBackgroundContext
BackgroundContext returns a context that is specifically not a child of the provided parent context wrt any cancellation or deadline of the parent, so
api/common/ctx.go:70
↓ 6 callersMethodCreateContainer
(opts docker.CreateContainerOptions)
api/agent/drivers/docker/docker_client.go:34
↓ 6 callersFunctionGetAPIErrorCode
GetAPIErrorCode returns 0 if an error is not an APIError, or the result of the Code() method from an APIError
api/models/error.go:253
↓ 6 callersMethodMarkBusy
Mark/Unmark an image in-use. If an image is in-use, it will not be a candidate in LRU. When the reference count of the image drops to zero (via MarkFr
api/agent/drivers/docker/image_cache.go:53
↓ 6 callersFunctionNewDockerDriver
NewDockerDriver creates a default docker driver from agent config
api/agent/agent.go:209
↓ 6 callersFunctionNewWaitGroup
()
api/common/wait_utils.go:53
↓ 6 callersMethodRecv
()
api/agent/grpc/runner.pb.go:1489
↓ 6 callersMethodRemoveTrigger
Removes a Trigger. Returns field specific errors if they are empty. Returns nil if successful
api/models/datastore.go:63
↓ 6 callersMethodRunners
returns an error for unrecoverable errors that should not be retried
api/runnerpool/runner_pool.go:23
↓ 6 callersMethodSend
(*ClientMsg)
api/agent/grpc/runner.pb.go:1488
↓ 6 callersMethodSetError
(err error)
api/agent/agent.go:582
↓ 6 callersMethodValidateImage
Validate/Inspect image. Returns true if the image needs to be pulled and non-nil error if validation/inspection fails.
api/agent/drivers/driver.go:43
↓ 6 callersFunctiondatetimeGenerator
()
api/models/app_test.go:35
↓ 6 callersFunctiongetEchoContent
See fn-test-utils for json response
test/fn-system-tests/exec_http_trigger_test.go:24
↓ 6 callersFunctionrecordCallLatency
(ctx context.Context, call *call, status string)
api/agent/lb_agent.go:364
↓ 6 callersFunctionrouterRequest2
(_ *testing.T, router *gin.Engine, req *http.Request)
api/server/server_test.go:67
↓ 6 callersFunctionsetEnvMsecs
(err error, name string, dst *time.Duration, defaultVal time.Duration)
api/agent/config.go:289
↓ 6 callersFunctionsetEnvUintPointer
(err error, name string, dst **uint64, defaultVal *uint64)
api/agent/config.go:271
↓ 6 callersFunctionstatsHelperSet
(reqW, reqE, conW, conS, conI, conB uint64)
api/agent/slots_test.go:162
↓ 6 callersFunctionverify
(expected []string, checks map[string]bool)
api/agent/drivers/docker/registry_test.go:10
↓ 5 callersMethodCloseGroupNB
CloseGroupNB is non-blocking version of CloseGroup which returns a channel that can be waited on.
api/common/wait_utils.go:126
↓ 5 callersFunctionDecimate
Decimate will down sample to a max number of points in a given sample by averaging samples together. i.e. max=240, if we have 240 samples, return them
api/agent/drivers/stats/stats.go:101
↓ 5 callersMethodFreePoolId
Release the id back to the pool
api/agent/drivers/docker/docker_pool.go:105
↓ 5 callersMethodGetResourceToken
GetResourceToken returns a resource token. Memory is expected to be provided in MB units.
api/agent/resource.go:48
↓ 5 callersMethodGetResourceTokenNB
GetResourceTokenNB is the non-blocking equivalent of GetResourceToken. The return value is the resource token itself. If the request cannot be satisfi
api/agent/resource.go:54
↓ 5 callersMethodGetTriggerBySource
GetTriggerBySource loads a trigger by type and source ID - this is only needed when the data store is also used for agent read access
api/models/datastore.go:74
↓ 5 callersMethodMergeChange
MergeChange merges a delta (possibly including deletes) with an existing annotations object and returns a new (copy) annotations object or an error. T
api/models/annotations.go:186
↓ 5 callersFunctionNew
New creates a new Functions server with the opts given. For convenience, users may prefer to use NewFromEnv but New is more flexible if needed.
api/server/server.go:509
↓ 5 callersFunctionNewBasicResourceProvider
NewBasicResourceProvider creates a dumb resource provider that generates resources that have valid, random names (and other unique attributes)
api/datastore/datastoretest/test.go:59
↓ 5 callersFunctionNewNaivePlacer
(cfg *PlacerConfig)
api/runnerpool/naive_placer.go:16
↓ 5 callersFunctionNewPlacerConfig
()
api/runnerpool/placer_config.go:19
↓ 5 callersFunctionNewRequestBasedTriggerAnnotator
NewRequestBasedTriggerAnnotator creates a TriggerAnnotator that inspects the incoming request host and port, and uses this to generate http trigger en
api/server/trigger_annotator.go:48
↓ 5 callersFunctionNewStatusTrackerWithAgent
(a Agent)
api/agent/runner_status.go:55
↓ 5 callersFunctionNewValidator
NewValidator returns a models.Datastore which validates certain arguments before delegating to ds.
api/datastore/internal/datastoreutil/validator.go:11
↓ 5 callersFunctionParseDateTime
ParseDateTime parses a string that represents an ISO8601 time or a unix epoch
api/common/time.go:74
↓ 5 callersMethodShutdown
(ctx context.Context)
api/runnerpool/runner_pool.go:24
↓ 5 callersMethodStatus
()
api/server/runner_fninvoke.go:26
↓ 5 callersMethodUpdateFn
UpdateFn updates a function that exists under the same id. ErrMissingName is func.Name is empty.
api/models/datastore.go:41
↓ 5 callersFunctionWithDockerDriver
WithDockerDriver Provides a customer driver to agent
api/agent/agent.go:177
↓ 5 callersFunctionWithLogger
WithLogger stores the logger.
api/common/ctx.go:21
↓ 5 callersFunctionWithType
WithType maps EnvNodeType
api/server/server.go:348
↓ 5 callersFunctioncallTrigger
(ctx context.Context, u string, content io.Reader, output io.Writer, method string)
test/fn-system-tests/exec_http_trigger_test.go:332
↓ 5 callersFunctioncommonCookiePull
(ctx context.Context, cookie drivers.Cookie)
api/agent/drivers/docker/docker_test.go:79
← previousnext →101–200 of 2,053, ranked by callers