container

package
v1.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VicContainer

type VicContainer struct {
	Name        string
	ImageID     string // maps to the image used by this container
	LayerID     string // child-most layer ID used to find vmdk for this container
	ContainerID string
	Config      *containertypes.Config //Working copy of config (with overrides from container create)
	HostConfig  *containertypes.HostConfig
	NATMap      nat.PortMap // the endpoint NAT mappings only
	// contains filtered or unexported fields
}

VicContainer is VIC's abridged version of Docker's container object.

func NewVicContainer

func NewVicContainer() *VicContainer

NewVicContainer returns a reference to a new VicContainer

func (*VicContainer) Add

func (v *VicContainer) Add(id string)

Add adds a new exec configuration to the container.

func (*VicContainer) Delete

func (v *VicContainer) Delete(id string)

Delete removes an exec configuration from the container.

func (*VicContainer) List

func (v *VicContainer) List() []string

List returns the list of exec ids in the container.

func (*VicContainer) TryLock

func (v *VicContainer) TryLock(timeout time.Duration) bool

Tries to lock the container. Timeout argument defines how long the lock attempt will be tried. Returns true if locked, false if timed out.

func (*VicContainer) Unlock

func (v *VicContainer) Unlock()

Unlocks the container

Jump to

Keyboard shortcuts

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