Documentation ¶
Overview ¶
Package run implements a convenience CLI to run and test Composition Functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { CacheDir string `short:"c" help:"Directory used for caching function images and containers." default:"/function-runtime-oci"` Timeout time.Duration `help:"Maximum time for which the function may run before being killed." default:"30s"` ImagePullPolicy string `help:"Whether the image may be pulled from a remote registry." enum:"Always,Never,IfNotPresent" default:"IfNotPresent"` NetworkPolicy string `help:"Whether the function may access the network." enum:"Runner,Isolated" default:"Isolated"` MapRootUID int `` /* 197-byte string literal not displayed */ MapRootGID int `` /* 197-byte string literal not displayed */ Image string `arg:"" help:"OCI image to run."` FunctionIO []byte `arg:"" help:"YAML encoded FunctionIO to pass to the function." type:"filecontent"` }
Command runs a Composition function.
Click to show internal directories.
Click to hide internal directories.