spark

package
v0.0.0-...-3d2dcd1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package spark runs a Composition Function. It is designed to be run as root inside an unprivileged user namespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromImagePullConfig

func FromImagePullConfig(cfg *v1alpha1.ImagePullConfig) oci.ImageClientOption

FromImagePullConfig configures an image client with options derived from the supplied ImagePullConfig.

func FromRunFunctionConfig

func FromRunFunctionConfig(cfg *v1alpha1.RunFunctionConfig) spec.Option

FromRunFunctionConfig extends a runtime spec with configuration derived from the supplied RunFunctionConfig.

Types

type Command

type Command struct {
	CacheDir      string `short:"c" help:"Directory used for caching function images and containers." default:"/function-runtime-oci"`
	Runtime       string `help:"OCI runtime binary to invoke." default:"crun"`
	MaxStdioBytes int64  `help:"Maximum size of stdout and stderr for functions." default:"0"`
	CABundlePath  string `help:"Additional CA bundle to use when fetching function images from registry." env:"CA_BUNDLE_PATH"`
}

Command runs a containerized Composition Function.

func (*Command) Run

func (c *Command) Run(args *start.Args) error

Run a Composition Function inside an unprivileged user namespace. Reads a protocol buffer serialized RunFunctionRequest from stdin, and writes a protocol buffer serialized RunFunctionResponse to stdout.

Jump to

Keyboard shortcuts

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