MCPcopy Create free account

hub / github.com/fnproject/fn / functions

Functions2,053 in github.com/fnproject/fn

↓ 168 callersMethodNew
New creates a new data store from the specified URL
api/datastore/datastore.go:36
↓ 149 callersMethodError
()
api/agent/resource.go:91
↓ 73 callersMethodRun
Run should execute task on the implementation. RunResult captures the result of task execution. This means if task execution fails due to a problem in
api/agent/drivers/driver.go:33
↓ 70 callersMethodString
()
api/server/server.go:175
↓ 69 callersMethodErr
()
api/common/ctx.go:59
↓ 69 callersMethodNow
()
api/common/clock.go:6
↓ 68 callersMethodDone
()
api/common/ctx.go:55
↓ 66 callersMethodString
following encodings are slightly modified from https://github.com/oklog/ulid String returns a lexicographically sortable string encoded Id (26 charact
api/id/id.go:93
↓ 62 callersMethodClose
()
api/agent/slots.go:24
↓ 54 callersMethodEnd
End will be called immediately after attempting a call execution, regardless of whether the execution failed or not. An error will be passed to End, w
api/agent/call.go:37
↓ 53 callersFunctionNew
New will generate a new Id for use. New is safe to be called from concurrent threads. SetMachineId should be called once before any calls to New are m
api/id/id.go:48
↓ 51 callersFunctionLogger
Logger returns the structured logger.
api/common/ctx.go:26
↓ 50 callersFunctionEmptyAnnotations
()
api/models/annotations.go:53
↓ 49 callersMethodGet
Get returns a raw JSON value of a annotation key
api/models/annotations.go:158
↓ 47 callersFunctionhandleErrorResponse
(c *gin.Context, err error)
api/server/error_response.go:24
↓ 46 callersFunctionMakeMeasure
(name string, desc string, unit string)
api/common/stats_utils.go:27
↓ 45 callersMethodError
Error is an actionable/checkable error from the container, nil if Status() returns "success", otherwise non-nil
api/agent/drivers/driver.go:90
↓ 45 callersMethodInfo
(ctx context.Context)
api/agent/drivers/docker/docker_client.go:43
↓ 44 callersMethodString
()
api/agent/func_logger.go:73
↓ 44 callersMethodValidApp
ValidApp returns a valid app to use for inserts
api/datastore/datastoretest/test.go:39
↓ 43 callersMethodWrite
(b []byte)
api/agent/func_logger.go:81
↓ 42 callersMethodId
The id to assign the container
api/agent/drivers/driver.go:125
↓ 37 callersMethodGivenAppInDb
(app *models.App)
api/datastore/datastoretest/test.go:115
↓ 33 callersMethodCleanup
()
api/datastore/datastoretest/test.go:125
↓ 33 callersFunctionCreateView
(measure stats.Measure, agg *view.Aggregation, tagKeys []string)
api/common/stats_utils.go:12
↓ 33 callersFunctionNewHarness
(t *testing.T, ctx context.Context, ds models.Datastore)
api/datastore/datastoretest/test.go:158
↓ 32 callersMethodwithRawKey
(key string, val string)
api/models/annotations_test.go:20
↓ 31 callersMethodGetCall
GetCall will return a Call that is executable by the Agent, which can be built via various CallOpt's provided to the method.
api/agent/agent.go:65
↓ 31 callersFunctioncheckClose
(t *testing.T, a Agent)
api/agent/agent_test.go:73
↓ 30 callersFunctionGetTestUtilsImage
()
test/testutils.go:12
↓ 30 callersFunctionNewMockInit
NewMockInit allows specifying certain apps/fns/triggers. args helps break tests less if we change stuff
api/datastore/mock.go:41
↓ 30 callersFunctionrouterRequest
(t *testing.T, router *gin.Engine, method, path string, body io.Reader)
api/server/server_test.go:62
↓ 29 callersMethodValidFn
ValidFn returns a valid fn to use for inserts
api/datastore/datastoretest/test.go:41
↓ 28 callersMethodClone
()
api/models/fn.go:194
↓ 28 callersFunctiontestServer
(ds models.Datastore, rnr agent.Agent, nodeType NodeType, opts ...Option)
api/server/server_test.go:20
↓ 27 callersMethodClose
stop and terminate the pool
api/agent/drivers/docker/docker_pool.go:108
↓ 27 callersMethodWait
Wait may be called to await the result of a container's execution. If the provided context is canceled and the container does not return first, the re
api/agent/drivers/driver.go:64
↓ 27 callersFunctionsetLogBuffer
()
api/server/apps_test.go:21
↓ 26 callersFunctionNew
New creates an Agent that executes functions locally as Docker containers.
api/agent/agent.go:115
↓ 26 callersFunctiontestRunner
(_ *testing.T, args ...interface{})
api/server/runner_httptrigger_test.go:41
↓ 26 callersFunctionvfunc
(v int64)
api/datastore/sql/migrations/migs.go:10
↓ 24 callersFunctionMakeKey
(name string)
api/common/stats_utils.go:31
↓ 23 callersMethodSubmit
Submit will attempt to execute a call locally, a Call may store information about itself in its Start and End methods, which will be called in Submit
api/agent/agent.go:73
↓ 22 callersMethodHeader
nice compiler errors
api/server/runner_fninvoke.go:42
↓ 22 callersMethodName
()
fnext/setup.go:12
↓ 22 callersMethodValidTrigger
ValidTrigger returns a valid trigger to use for inserts
api/datastore/datastoretest/test.go:43
↓ 21 callersMethodBytes
()
api/agent/func_logger.go:74
↓ 21 callersMethodSleep
(time.Duration)
api/common/clock.go:7
↓ 20 callersMethodGivenFnInDb
(validFunc *models.Fn)
api/datastore/datastoretest/test.go:134
↓ 20 callersMethodModel
Model will return the underlying models.Call configuration for this call.
api/agent/call.go:24
↓ 20 callersFunctioncheckRange
(t *testing.T, bck BackOff, expOk bool, min, max uint64)
api/common/backoff_test.go:10
↓ 19 callersMethodEquals
(f2 *Fn)
api/models/fn.go:215
↓ 19 callersFunctionWithWriter
WithWriter sets the writer that the call uses to send its output message to TODO this should be required
api/agent/call.go:166
↓ 19 callersFunctionunsafeBytes
WARN: this is read only
api/agent/slots.go:384
↓ 18 callersMethodAfter
(time.Duration)
api/common/clock.go:8
↓ 18 callersFunctionmakeTracker
Create a span/tracker with required context tags
api/agent/drivers/docker/docker_client.go:172
↓ 18 callersFunctionsetLogBuffer
capture logs so they shut up when things are fine
test/fn-system-tests/system_test.go:555
↓ 17 callersFunctionFromHTTPFnRequest
FromHTTPFnRequest Sets up a call from an http trigger request
api/agent/call.go:49
↓ 17 callersMethodHeader
Header implements http.ResponseWriter, which is used by Agent to push headers to pure runner
api/agent/pure_runner.go:429
↓ 17 callersFunctionLoggerWithFields
LoggerWithFields returns a child context of the provided parent that contains a logger with additional fields from the parent's logger, it returns the
api/common/ctx.go:37
↓ 17 callersMethodValidate
Validate validates all field values, returning the first error, if any.
api/models/fn.go:149
↓ 17 callersMethodWriteHeader
WriteHeader implements http.ResponseWriter, which is used by Agent to push http status to pure runner
api/agent/pure_runner.go:435
↓ 17 callersFunctiongetErrorResponse
(t *testing.T, rec *httptest.ResponseRecorder)
api/server/server_test.go:81
↓ 16 callersMethodEqualsWithAnnotationSubset
(f2 *Fn)
api/models/fn.go:237
↓ 16 callersMethodGetAppByID
GetAppByID gets an App by ID. Returns ErrAppsNotFound if no app is found.
api/models/datastore.go:11
↓ 16 callersFunctionNewConfig
NewConfig returns a config set from env vars, plus defaults
api/agent/config.go:162
↓ 16 callersFunctionNewMock
NewMock creates a new mock datastore
api/datastore/mock.go:24
↓ 16 callersMethodString
()
api/datastore/sql/sql.go:121
↓ 15 callersMethodAddress
()
api/runnerpool/runner_pool.go:56
↓ 15 callersMethodCloser
Closer returns a channel that is closed if WaitGroup is in closing state
api/common/wait_utils.go:62
↓ 15 callersMethodPop
Removes an image from the LRU cache if cache is not empty
api/agent/drivers/docker/image_cache.go:44
↓ 15 callersMethodSetEvictable
(isEvictable bool)
api/agent/evictor.go:70
↓ 15 callersFunctionisClosed
(ch chan struct{})
api/common/wait_utils_test.go:8
↓ 14 callersMethodCode
()
api/models/error.go:229
↓ 14 callersFunctionCreateViewWithTags
(measure stats.Measure, agg *view.Aggregation, tags []tag.Key)
api/common/stats_utils.go:17
↓ 14 callersMethodGetTriggers
GetTriggers gets a list of triggers that match the specified filter Return ErrDatastoreEmptyAppId if no AppID set in the filter
api/models/datastore.go:71
↓ 14 callersFunctionLB
()
test/fn-system-tests/system_test.go:60
↓ 14 callersFunctionNewDocker
NewDocker implements drivers.Driver
api/agent/drivers/docker/docker.go:74
↓ 14 callersFunctionensureApp
(t *testing.T, app *models.App)
test/fn-system-tests/exec_http_trigger_test.go:380
↓ 14 callersFunctionensureFn
(t *testing.T, fn *models.Fn)
test/fn-system-tests/exec_http_trigger_test.go:418
↓ 14 callersFunctionexecFn
simple GetCall/Submit combo.
api/agent/agent_evict_test.go:94
↓ 14 callersFunctiongetApp
()
api/agent/agent_evict_test.go:73
↓ 14 callersFunctiongetEnv
(key, fallback string)
api/server/init.go:71
↓ 14 callersFunctiongetFn
(initDelayMsecs int)
api/agent/agent_evict_test.go:77
↓ 14 callersFunctionsetEnvUint
(err error, name string, dst *uint64, defaultValue *uint64)
api/agent/config.go:253
↓ 12 callersMethodAddSession
AddSession manipulates the session counter by adding the delta value. Incrementing the session counter is not possible and will set return value to fa
api/common/wait_utils.go:70
↓ 12 callersMethodInsertTrigger
InsertTrigger inserts a trigger. Returns ErrDatastoreEmptyTrigger when trigger is nil, and specific errors for each field Returns ErrTriggerAlreadyExi
api/models/datastore.go:56
↓ 12 callersMethodUpdateApp
UpdateApp updates an App's Config. Returns ErrDatastoreEmptyApp when app is nil, and ErrDatastoreEmptyAppName when app.Name is empty. Returns ErrAppsN
api/models/datastore.go:30
↓ 12 callersMethodVersion
()
api/datastore/sql/migratex/migrate.go:56
↓ 12 callersFunctionWithConfig
WithConfig sets the agent config to the provided config
api/agent/agent.go:169
↓ 12 callersFunctioncheckStr
(input string, expected MilliCPUs)
api/models/config_test.go:9
↓ 11 callersMethodCreateCookie
Create a new cookie with defaults and/or settings from container task. Callers should Close the cookie regardless of whether they prepare or run it.
api/agent/drivers/driver.go:73
↓ 11 callersMethodIsMaxCapacity
IsMaxCapacity returns true if total size of all images exceeds the limit and if there's an image in LRU cache that can be removed.
api/agent/drivers/docker/image_cache.go:37
↓ 11 callersMethodPlaceCall
(ctx context.Context, rp RunnerPool, call RunnerCall)
api/runnerpool/runner_pool.go:16
↓ 11 callersMethodStart
Start will be called before this call is executed, it may be used to guarantee mutual exclusion, check docker permissions, update timestamps, etc. TOD
api/agent/call.go:31
↓ 11 callersMethodUpdate
Update adds an image to the LRU cache if the image is not marked in-use
api/agent/drivers/docker/image_cache.go:47
↓ 11 callersMethodWith
With Creates a new annotations object containing the specified value - this does not perform size checks on the total number of keys this validates th
api/models/annotations.go:111
↓ 11 callersMethodisEvicted
()
api/agent/evictor.go:61
↓ 10 callersMethodCreateEvictToken
CreateEvictToken creates an eviction token to be used in evictor tracking. Returns an eviction token.
api/agent/evictor.go:36
↓ 10 callersMethodGivenTriggerInDb
(validTrigger *models.Trigger)
api/datastore/datastoretest/test.go:144
next →1–100 of 2,053, ranked by callers