yacr

package
v0.0.0-...-ac6e8c9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(rootDir string, opts CreateOpts) error

func CreateContainer

func CreateContainer(rootDir string, opts CreateOpts) error

func Delete

func Delete(rootDir, containerId string, force bool) error

func Kill

func Kill(rootDir string, args []string) error

func Start

func Start(rootDir, containerId string) error

func State

func State(rootDir, containerId string, w io.Writer) error

Types

type ContainerList

type ContainerList []ContainerListItem

func List

func List(rootDir string) (ContainerList, error)

type ContainerListItem

type ContainerListItem struct {
	ID         string
	Status     string
	CreatedAt  time.Time
	PID        int
	BundlePath string
}

type CreateOpts

type CreateOpts struct {
	ID            string
	Bundle        string
	PidFile       string
	ConsoleSocket string
	NoPivot       bool
	LogFile       string
	LogFormat     string
	Debug         bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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