docker

package
v0.0.0-...-cf7399d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMachineNotExist       = errors.New("Machine matching query does not exist.")
	ErrMachineNotLocalDriver = errors.New("Machine driver not local.")
	ErrMachineNotRunning     = errors.New("Machine state is not `Running`.")
	ErrMachineNoIP           = errors.New("Machine has no IP.")
)

Functions

This section is empty.

Types

type Machine

type Machine struct {
	Name string
	// active  bool
	DriverName string
	State      string
	IP         net.IP
	URL        string
	// swarm
	DockerVersion string
}

func (*Machine) DnsIP4

func (dm *Machine) DnsIP4() [4]byte

func (*Machine) DnsName

func (dm *Machine) DnsName() string

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) ResolveMachineByName

func (reg *Registry) ResolveMachineByName(name string) (*Machine, error)

Jump to

Keyboard shortcuts

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