 Documentation
      ¶
      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.
       Source Files
      ¶
      Source Files
      ¶
    
- viccontainer.go
 Click to show internal directories. 
   Click to hide internal directories.