spark

package
v1.12.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 18 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:"/xfn"`
	Runtime  string `help:"OCI runtime binary to invoke." default:"crun"`
}

Command runs a containerized Composition Function.

func (*Command) Run

func (c *Command) Run() 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