container

package
v0.0.0-...-b30e15b Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name          string
	FsDir         string
	Command       string
	EnableTTY     bool
	EnableNetwork bool
	MemoryLimit   string
	CpuSet        string
	CpuShare      string
}

func NewContainer

func NewContainer(name string, fsDir string, command string, enableTTY bool, enableNetWork bool) Container

func (*Container) Child

func (c *Container) Child(parameter []string)

func (*Container) Run

func (c *Container) Run(parameter []string)

func (*Container) RunWithPTY

func (c *Container) RunWithPTY(parameter []string)

Jump to

Keyboard shortcuts

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