providers

package
v0.0.0-...-27f46b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL