container

package
v0.0.0-...-8fe63d3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID      string
	Name    string
	Domains []string
	Addr    string
	Running bool
}

Container contains information about a running container. This includes both information from Docker (its ID, etc.) and information from labels (domains, address, etc.).

func New

func New(json types.ContainerJSON, running bool) *Container

New reads information from a container's labels and populates a Container instance with the data. If the container does not contain the requires labels, nil is returned.

Jump to

Keyboard shortcuts

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