containers

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAllContainers

func ListAllContainers() ([]map[string]string, error)

Types

type Container

type Container struct {
	Config *v1.Config
	ID     string
	RootFS string
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(id string) *Container

NewContainer returns a new Container instance with random digest

func (*Container) ExecuteCommand

func (c *Container) ExecuteCommand(cmdArgs []string, child bool) error

func (*Container) LoadConfig

func (c *Container) LoadConfig() error

LoadConfig reads container config file

func (*Container) Run

func (c *Container) Run(src string, cmds []string, hostname string, mem, swap, pids int, cpus float64, quiet, debug bool) error

func (*Container) RunChild

func (c *Container) RunChild(cmdArgs []string, hostname string, mem, swap, pids int, cpus float64) error

RunChild runs child command which is called from Run()

Jump to

Keyboard shortcuts

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