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
↓ 3 callers
Function
NewPureRunner
(cancel context.CancelFunc, addr string, options ...PureRunnerOption)
api/agent/pure_runner.go:977
↓ 3 callers
Function
NewResourceTracker
(cfg *Config)
api/agent/resource.go:77
↓ 3 callers
Function
NewStaticRunnerPool
(runnerAddresses []string, tlsConf *tls.Config, dialOpts ...grpc.DialOption)
api/agent/static_pool.go:23
↓ 3 callers
Function
NewStaticURLFnAnnotator
NewStaticURLFnAnnotator annotates triggers bases on a given, specified URL base - e.g. "https://my.domain" ---> "https://my.domain/t/app/source"
api/server/fn_annotator.go:55
↓ 3 callers
Function
NewStaticURLTriggerAnnotator
NewStaticURLTriggerAnnotator annotates triggers bases on a given, specified URL base - e.g. "https://my.domain" ---> "https://my.domain/t/app/source"
api/server/trigger_annotator.go:57
↓ 3 callers
Function
NewTestSlot
(id uint64)
api/agent/slots_test.go:38
↓ 3 callers
Method
NextBackOff
()
api/common/backoff.go:18
↓ 3 callers
Function
ParseImage
(image string)
api/agent/drivers/driver.go:294
↓ 3 callers
Function
PureRunnerWithAgent
(a Agent)
api/agent/pure_runner.go:923
↓ 3 callers
Method
Read
(b []byte)
api/agent/func_logger.go:72
↓ 3 callers
Function
Register
Register registers a new SQL helper
api/datastore/sql/dbhelper/dbhelper.go:13
↓ 3 callers
Function
SetVersion
(ctx context.Context, tx *sqlx.Tx, version int64, dirty bool)
api/datastore/sql/migratex/migrate.go:276
↓ 3 callers
Method
String
String converts this time to a string
api/common/time.go:103
↓ 3 callers
Method
String
implements fmt.Stringer
api/models/config.go:138
↓ 3 callers
Function
StripHopHeaders
StripHopHeaders removes transport related headers.
api/common/io_utils.go:10
↓ 3 callers
Method
Swap
(r io.Writer)
api/common/io_utils.go:136
↓ 3 callers
Function
ValidateText
ValidateText returns true if the data is a valid encoding.
api/id/id.go:218
↓ 3 callers
Method
Value
Value converts DateTime to a primitive value ready to written to a database.
api/common/time.go:142
↓ 3 callers
Function
WithAgent
WithAgent allows directly setting an agent
api/server/server.go:385
↓ 3 callers
Function
WithLogDest
WithLogDest maps EnvLogDest TODO(deprecate): caller should just call SetLogDest
api/server/server.go:326
↓ 3 callers
Function
WithLogger
WithLogger sets stderr to the provided one
api/agent/call.go:174
↓ 3 callers
Function
WithReadDataAccess
WithReadDataAccess overrides the LB read DataAccess for a server
api/server/server.go:364
↓ 3 callers
Method
Write
(b []byte)
api/server/runner_httptrigger.go:84
↓ 3 callers
Method
WriteHeader
(code int)
api/server/runner_fninvoke.go:43
↓ 3 callers
Function
annotationGenerator
()
api/models/app_test.go:28
↓ 3 callers
Function
appGenerator
(t *testing.T)
api/models/app_test.go:63
↓ 3 callers
Function
checkSocketDestination
checkSocketDestination verifies that the socket file created by the FDK is valid and permitted - notably verifying that any symlinks are relative to t
api/agent/agent.go:981
↓ 3 callers
Method
clone
clone produces a key-wise copy of the underlying annotations publically MD can be copied by reference as it's (by contract) immutable
api/models/annotations.go:208
↓ 3 callers
Function
createModelCall
(appId string)
api/agent/agent_test.go:1658
↓ 3 callers
Method
enqueueMsg
enqueueMsg attempts to queue a message to the gRPC sender
api/agent/pure_runner.go:200
↓ 3 callers
Function
fnGenerator
(t *testing.T)
api/models/fn_test.go:57
↓ 3 callers
Function
getAgentWithDriver
create a simple non-blocking agent. Non-blocking does not queue, so it's easier to test and see if evictions took place.
api/agent/agent_evict_test.go:23
↓ 3 callers
Method
handleCallEnd
(ctx context.Context, call *call, slot Slot, err error, isStarted bool)
api/agent/agent.go:320
↓ 3 callers
Function
host
()
test/fn-system-tests/exec_http_trigger_test.go:366
↓ 3 callers
Method
isEligible
isEligible returns true if the image is eligible to be managed by image cacher.
api/agent/drivers/docker/image_cache.go:103
↓ 3 callers
Function
novelValue
(t *testing.T, originalInstance reflect.Value, fieldName string, fieldGen gopter.Gen)
api/models/app_test.go:67
↓ 3 callers
Function
pageParams
(c *gin.Context)
api/server/server.go:1051
↓ 3 callers
Function
readString
(fileName string)
api/agent/resource.go:412
↓ 3 callers
Method
sendNotify
sendNotify tries to wake up any pending listener on notify channel
api/agent/drivers/docker/image_cache.go:162
↓ 3 callers
Function
setupLogger
setupLogger returns a ReadWriteCloser that may have: * [always] writes bytes to a size limited buffer, that can be read from using io.Reader * [always
api/agent/func_logger.go:28
↓ 3 callers
Function
setupMockRunnerPool
(expectedRunners []string, execSleep time.Duration, maxCalls int32)
api/agent/lb_agent_test.go:148
↓ 3 callers
Function
statsUtilization
(ctx context.Context, util ResourceUtilization)
api/agent/stats.go:109
↓ 3 callers
Function
testCall
return a model with all fields filled in with fnproject/fn-test-utils:latest image, change as needed
api/agent/agent_test.go:898
↓ 3 callers
Function
triggerGenerator
(t *testing.T)
api/models/trigger_test.go:97
↓ 3 callers
Function
tryNotify
(notifyChan chan error, err error)
api/agent/agent.go:449
↓ 2 callers
Method
AfterAppCreate
AfterAppCreate called after creating App in the database
fnext/listeners.go:14
↓ 2 callers
Method
AfterAppDelete
AfterAppDelete called after deleting App in the database
fnext/listeners.go:22
↓ 2 callers
Method
AfterAppGet
AfterAppGet called after getting app from database
fnext/listeners.go:26
↓ 2 callers
Method
AfterAppUpdate
AfterAppUpdate called after updating App in the database
fnext/listeners.go:18
↓ 2 callers
Method
AfterAppsList
AfterAppsList called after deleting getting a list of user's apps. apps is the result after applying AppFilter.
fnext/listeners.go:30
↓ 2 callers
Method
AfterCall
AfterCall is invoked just after an invocation is finished, providing that BeforeCall returned without an error
api/agent/drivers/driver.go:227
↓ 2 callers
Method
AfterFnCreate
AfterFnCreate called after fn create in the datastore
fnext/listeners.go:49
↓ 2 callers
Method
AfterFnDelete
AfterFnDelete called after fn deleted from the datastore
fnext/listeners.go:57
↓ 2 callers
Method
AfterFnUpdate
AfterFnUpdate called after fn updated in datastore
fnext/listeners.go:53
↓ 2 callers
Method
AfterTriggerCreate
AfterTriggerCreate called after trigger create in the datastore
fnext/listeners.go:65
↓ 2 callers
Method
AfterTriggerDelete
AfterTriggerDelete called after trigger deleted from the datastore
fnext/listeners.go:73
↓ 2 callers
Method
AfterTriggerUpdate
AfterTriggerUpdate called after trigger updated in datastore
fnext/listeners.go:69
↓ 2 callers
Method
AppForDeletion
(app *models.App)
api/datastore/datastoretest/test.go:154
↓ 2 callers
Method
AttachToContainerNonBlocking
Each of these are github.com/fsouza/go-dockerclient methods
api/agent/drivers/docker/docker_client.go:30
↓ 2 callers
Method
BeforeAppCreate
BeforeAppCreate called right before creating App in the database
fnext/listeners.go:12
↓ 2 callers
Method
BeforeAppDelete
BeforeAppDelete called right before deleting App in the database
fnext/listeners.go:20
↓ 2 callers
Method
BeforeAppGet
BeforeAppGet called right before getting an app
fnext/listeners.go:24
↓ 2 callers
Method
BeforeAppUpdate
BeforeAppUpdate called right before updating App in the database
fnext/listeners.go:16
↓ 2 callers
Method
BeforeAppsList
BeforeAppsList called right before getting a list of all user's apps. Modify the filter to adjust what gets returned.
fnext/listeners.go:28
↓ 2 callers
Method
BeforeCall
BeforeCall is invoked just prior to running an invocation. The Task is definitely going to be used for this invocation. Invocation extensions are pass
api/agent/drivers/driver.go:218
↓ 2 callers
Method
BeforeFnCreate
BeforeFnCreate called before fn created in the datastore
fnext/listeners.go:47
↓ 2 callers
Method
BeforeFnDelete
BeforeFnDelete called before fn deleted from the datastore
fnext/listeners.go:55
↓ 2 callers
Method
BeforeFnUpdate
BeforeFnUpdate called before fn update in datastore
fnext/listeners.go:51
↓ 2 callers
Method
BeforeTriggerCreate
BeforeTriggerCreate called before trigger created in the datastore
fnext/listeners.go:63
↓ 2 callers
Method
BeforeTriggerDelete
BeforeTriggerDelete called before trigger deleted from the datastore
fnext/listeners.go:71
↓ 2 callers
Method
BeforeTriggerUpdate
BeforeTriggerUpdate called before trigger update in datastore
fnext/listeners.go:67
↓ 2 callers
Method
CPUs
CPUs in milli CPU units
api/agent/drivers/driver.go:147
↓ 2 callers
Method
CheckTableExists
CheckTableExists checks if a table exists in the DB
api/datastore/sql/dbhelper/dbhelper.go:27
↓ 2 callers
Method
Clone
Clone creates a deep copy of a trigger
api/models/trigger.go:194
↓ 2 callers
Method
Close
Close should clean up any resources the cookie was using, or was going to use.
api/agent/drivers/driver.go:21
↓ 2 callers
Method
Close
()
api/agent/drivers/docker/docker.go:320
↓ 2 callers
Method
ContainerOptions
Fetch driver specific container configuration. Use this to access the container create options. If Driver.Prepare() is not yet called with the cookie,
api/agent/drivers/driver.go:56
↓ 2 callers
Function
CreateRunnerPool
(runners []string)
test/fn-system-tests/system_test.go:68
↓ 2 callers
Method
Datastore
Datastore implements fnext.ExtServer
api/server/server.go:1042
↓ 2 callers
Method
Deadline
()
api/common/ctx.go:51
↓ 2 callers
Method
Engage
(ctx context.Context, opts ...grpc.CallOption)
api/agent/grpc/runner.pb.go:1454
↓ 2 callers
Method
Equals
(a2 *App)
api/models/app.go:165
↓ 2 callers
Method
EqualsWithAnnotationSubset
EqualsWithAnnotationSubset is equivalent to Equals except it accepts cases where t's annotations are strict subset of t2
api/models/trigger.go:46
↓ 2 callers
Function
FromModelAndInput
FromModelAndInput creates a call object from an existing stored call model object , reading the body from a provided stream
api/agent/call.go:138
↓ 2 callers
Method
FsSize
Filesystem size limit for the container, in megabytes.
api/agent/drivers/driver.go:150
↓ 2 callers
Function
GenerateLogScaleHistogramBuckets
GenerateLogScaleHistogramBuckets generates number of buckets specified by count on the log scale such that the value specified by max is in the last b
api/common/stats_utils.go:69
↓ 2 callers
Method
GetAppByID
(ctx context.Context, appID string)
api/datastore/mock.go:69
↓ 2 callers
Method
GetAppByID
GetAppByID abstracts querying the datastore for an app.
api/agent/data_access.go:19
↓ 2 callers
Method
GetAppID
(ctx context.Context, appName string)
api/agent/data_access.go:17
↓ 2 callers
Function
GetCallLatencies
(c *call)
api/agent/call.go:399
↓ 2 callers
Method
GetDetails
()
api/agent/grpc/runner.pb.go:376
↓ 2 callers
Method
GetFnByID
(ctx context.Context, fnID string)
api/agent/data_access.go:21
↓ 2 callers
Method
GetSlotKeyExtensions
Get serialized string of fields in call extn that determines if we can use an existing hot container slot or pull a new image and start a container
api/agent/drivers/driver.go:80
↓ 2 callers
Method
GetTriggerBySource
(ctx context.Context, appID string, triggerType, source string)
api/agent/data_access.go:20
↓ 2 callers
Method
HandleFindRunnersFailure
HandleFindRunnersFailure is a convenience function to record error from runnerpool.Runners()
api/runnerpool/placer_tracker.go:44
↓ 2 callers
Method
IsDone
IsDone is a non-blocking check to see if the underlying deadlines are exceeded.
api/runnerpool/placer_tracker.go:39
↓ 2 callers
Method
IsResourcePossible
is this request possible to meet? If no, fail quick
api/agent/resource.go:145
↓ 2 callers
Function
LimitRequestBody
LimitRequestBody wraps every http request to limit its size to the specified max bytes.
api/server/server_options.go:52
↓ 2 callers
Method
ListContainers
(opts docker.ListContainersOptions)
api/agent/drivers/docker/docker_client.go:45
↓ 2 callers
Method
ListImages
(opts docker.ListImagesOptions)
api/agent/drivers/docker/docker_client.go:40
← previous
next →
301–400 of 2,053, ranked by callers