runtime

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SyscallExecRuntime = &syscallExecRuntime{}
)

Functions

This section is empty.

Types

type Command

type Command string
var (
	CommandCreate Command = "create"
	CommandStart  Command = "start"
	CommandExec   Command = "exec"
)

type GidSet

type GidSet map[int64]struct{}

type Interface

type Interface interface {
	Exec(args []string) error
}

func NewExecutablePathRuntime

func NewExecutablePathRuntime(path string) (Interface, error)

func NewStrictSupplementalGroups

func NewStrictSupplementalGroups(
	cfg *config.Config,
	runtimeLogWriter io.Writer,
	runtimeLogCtx context.Context,
) (Interface, error)

type RuntimeArgs

type RuntimeArgs struct {
	Command     Command
	ContainerId string
	Options     RuntimeOpts
}

func GetRuntimeArgs

func GetRuntimeArgs(args []string) (*RuntimeArgs, error)

GetRuntimeArgs analyze command line arguments passed from OCI to low level container runtime and returns analysis result for later use

type RuntimeOpts

type RuntimeOpts struct {
	// global flags
	Root      string `long:"root"`
	Log       string `long:"log"`
	LogFormat string `long:"log-format"`

	// common flags for create/exec
	PidFile string `long:"pid-file"`

	// flags for create
	Bundle string `long:"bundle" short:"b"`

	// flags for exec
	Process string `long:"process" short:"p"`
}

Jump to

Keyboard shortcuts

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