container

package
v1.5.1-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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