Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionProvider ¶
type ExecutionProvider interface { // Deploy a service (e.g., "elf" and "oci" types) or executable function (e.g., "v8" and "wasm" types) Deploy() error // Execute a deployed function, if supported by the execution provider implementation (e.g., "v8" and "wasm" types) Execute(ctx context.Context, payload []byte) ([]byte, error) // Undeploy a workload, giving it a chance to gracefully clean up after itself (if applicable) Undeploy() error // Validate the executable artifact, e.g., specific characteristics of a // statically-linked binary or raw source code, depending on provider implementation Validate() error }
ExecutionProvider implementations provide support for a specific execution environment pattern -- e.g., statically-linked ELF binaries, serverless JavaScript functions, OCI images, Wasm, etc.
func NewExecutionProvider ¶
func NewExecutionProvider(params *agentapi.ExecutionProviderParams) (ExecutionProvider, error)
NewExecutionProvider initializes and returns an execution provider for a given work request
Click to show internal directories.
Click to hide internal directories.