runtime

package
v0.0.0-...-e605e81 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedArch    = errors.New("unsupported architecture")
	ErrUnsupportedOS      = errors.New("unsupported operating system")
	ErrUnsupportedVersion = errors.New("unsupported kernel version")
)

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func New

func New(command string, args []string, uid int, root string, volumes []VolumePair) (*Runtime, error)

New creates a new container with the given command and arguments.

func (*Runtime) Exec

func (r *Runtime) Exec() (int, error)

Exec executes the container's command with the given arguments and forwards the standard input, output and error streams.

func (*Runtime) Run

func (r *Runtime) Run() (int, error)

Run executes the container's command with the given arguments.

func (*Runtime) String

func (r *Runtime) String() string

String returns a string representation of the container.

type VolumePair

type VolumePair struct {
	Source string
	Target string
}

Jump to

Keyboard shortcuts

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