Documentation ¶
Index ¶
- func AddIP(ip string) error
- func AddMount(local, host string) error
- func BridgeRequired() bool
- func Create() error
- func Destroy() error
- func Display(verb bool)
- func DockerEnv() error
- func HasMount(path string) bool
- func HostIP() (string, error)
- func HostMntDir() string
- func HostShareDir() string
- func Implode() error
- func IsReady() bool
- func Name() string
- func Reboot() error
- func Register(name string, p Provider)
- func RemoveEnvDir(id string) error
- func RemoveIP(ip string) error
- func RemoveMount(local, host string) error
- func RequiresMount() bool
- func ReservedIPs() []string
- func Run(command []string) ([]byte, error)
- func SetDefaultIP(ip string) error
- func Start() error
- func Status() string
- func Stop() error
- func Valid() (error, []string)
- func ValidReady() error
- type DockerMachine
- func (machine DockerMachine) AddIP(ip string) error
- func (machine DockerMachine) AddMount(local, host string) error
- func (machine DockerMachine) AddNat(ip, containerIP string) error
- func (machine DockerMachine) BridgeRequired() bool
- func (machine DockerMachine) Create() error
- func (machine DockerMachine) Destroy() error
- func (machine DockerMachine) DockerEnv() error
- func (machine DockerMachine) HasMount(mount string) bool
- func (machine DockerMachine) HostIP() (string, error)
- func (machine DockerMachine) HostMntDir() string
- func (machine DockerMachine) HostShareDir() string
- func (machine DockerMachine) Implode() error
- func (machine DockerMachine) IsReady() bool
- func (machine DockerMachine) Reboot() error
- func (machine DockerMachine) RemoveEnvDir(id string) error
- func (machine DockerMachine) RemoveIP(ip string) error
- func (machine DockerMachine) RemoveMount(local, host string) error
- func (machine DockerMachine) RemoveNat(ip, containerIP string) error
- func (machine DockerMachine) RequiresMount() bool
- func (machine DockerMachine) ReservedIPs() (rtn []string)
- func (machine DockerMachine) Run(command []string) ([]byte, error)
- func (dockermachine DockerMachine) SetDefaultIP(ip string) error
- func (machine DockerMachine) Start() error
- func (machine DockerMachine) Status() string
- func (machine DockerMachine) Stop() error
- func (machine DockerMachine) Valid() (error, []string)
- type Native
- func (native Native) AddIP(ip string) error
- func (native Native) AddMount(local, host string) error
- func (native Native) AddNat(ip, containerIP string) error
- func (native Native) BridgeRequired() bool
- func (native Native) Create() error
- func (native Native) Destroy() error
- func (native Native) DockerEnv() error
- func (native Native) HasMount(path string) bool
- func (native Native) HostIP() (string, error)
- func (native Native) HostMntDir() string
- func (native Native) HostShareDir() string
- func (native Native) Implode() error
- func (native Native) IsReady() bool
- func (native Native) Reboot() error
- func (native Native) RemoveEnvDir(id string) error
- func (native Native) RemoveIP(ip string) error
- func (native Native) RemoveMount(_, host string) error
- func (native Native) RemoveNat(ip, containerIP string) error
- func (native Native) RequiresMount() bool
- func (native Native) ReservedIPs() (rtn []string)
- func (native Native) Run(command []string) ([]byte, error)
- func (native Native) SetDefaultIP(ip string) error
- func (native Native) Start() error
- func (native Native) Status() string
- func (native Native) Stop() error
- func (native Native) Valid() (error, []string)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BridgeRequired ¶
func BridgeRequired() bool
func ValidReady ¶
func ValidReady() error
Types ¶
type DockerMachine ¶
type DockerMachine struct{}
DockerMachine ...
func (DockerMachine) AddIP ¶
func (machine DockerMachine) AddIP(ip string) error
AddIP adds an IP into the docker-machine vm for host access
func (DockerMachine) AddMount ¶
func (machine DockerMachine) AddMount(local, host string) error
AddMount adds a virtualbox mount into the docker-machine vm
func (DockerMachine) AddNat ¶
func (machine DockerMachine) AddNat(ip, containerIP string) error
AddNat adds a nat to make an container accessible to the host network stack
func (DockerMachine) BridgeRequired ¶
func (machine DockerMachine) BridgeRequired() bool
func (DockerMachine) Create ¶
func (machine DockerMachine) Create() error
Create creates the docker-machine vm
func (DockerMachine) Destroy ¶
func (machine DockerMachine) Destroy() error
Destroy destroys the docker-machine vm
func (DockerMachine) DockerEnv ¶
func (machine DockerMachine) DockerEnv() error
DockerEnv exports the docker connection information to the running process
func (DockerMachine) HasMount ¶
func (machine DockerMachine) HasMount(mount string) bool
HasMount checks to see if the mount exists in the vm
func (DockerMachine) HostIP ¶
func (machine DockerMachine) HostIP() (string, error)
HostIP inspects docker-machine to return the IP address of the vm
func (DockerMachine) HostShareDir ¶
func (machine DockerMachine) HostShareDir() string
HostShareDir ...
func (DockerMachine) Implode ¶
func (machine DockerMachine) Implode() error
imploding the docker-machine provider is the same as destroying it
func (DockerMachine) Reboot ¶
func (machine DockerMachine) Reboot() error
Reboot reboots the docker-machine vm
func (DockerMachine) RemoveEnvDir ¶
func (machine DockerMachine) RemoveEnvDir(id string) error
func (DockerMachine) RemoveIP ¶
func (machine DockerMachine) RemoveIP(ip string) error
RemoveIP removes an IP from the docker-machine vm
func (DockerMachine) RemoveMount ¶
func (machine DockerMachine) RemoveMount(local, host string) error
RemoveMount removes a mount from the docker-machine vm
func (DockerMachine) RemoveNat ¶
func (machine DockerMachine) RemoveNat(ip, containerIP string) error
RemoveNat removes nat from making a container inaccessible to the host network stack
func (DockerMachine) RequiresMount ¶
func (machine DockerMachine) RequiresMount() bool
func (DockerMachine) ReservedIPs ¶
func (machine DockerMachine) ReservedIPs() (rtn []string)
func (DockerMachine) Run ¶
func (machine DockerMachine) Run(command []string) ([]byte, error)
Run a command in the vm
func (DockerMachine) SetDefaultIP ¶
func (dockermachine DockerMachine) SetDefaultIP(ip string) error
func (DockerMachine) Start ¶
func (machine DockerMachine) Start() error
Start starts and bootstraps docker-machine vm
func (DockerMachine) Status ¶
func (machine DockerMachine) Status() string
func (DockerMachine) Stop ¶
func (machine DockerMachine) Stop() error
Stop stops the docker-machine vm
func (DockerMachine) Valid ¶
func (machine DockerMachine) Valid() (error, []string)
Valid ensures docker-machine is installed and available
type Native ¶
type Native struct{}
Native ...
func (Native) BridgeRequired ¶
func (Native) RemoveEnvDir ¶
func (Native) RemoveNat ¶
RemoveNat removes nat from making a container inaccessible to the host network stack
func (Native) RequiresMount ¶
func (Native) ReservedIPs ¶
func (Native) SetDefaultIP ¶
type Provider ¶
type Provider interface { BridgeRequired() bool Status() string IsReady() bool HostMntDir() string HostIP() (string, error) ReservedIPs() []string Valid() (error, []string) Create() error Reboot() error Stop() error Implode() error Destroy() error Start() error DockerEnv() error // we might be able to remove ip stuff as well AddIP(ip string) error RemoveIP(ip string) error SetDefaultIP(ip string) error // AddNat(host, container string) error // RemoveNat(host, container string) error RequiresMount() bool HasMount(mount string) bool AddMount(local, host string) error RemoveMount(local, host string) error RemoveEnvDir(id string) error Run(command []string) ([]byte, error) }
Provider ...