machine

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidIPv4

func ValidIPv4(ip string) bool

ValidIPv4 returns true for valid IPv4 addresses

Types

type Machine

type Machine struct {
	Name string
}

Machine represents a docker machine

func (*Machine) Create

func (m *Machine) Create()

Create the docker machine

func (*Machine) EvalEnv

func (m *Machine) EvalEnv()

EvalEnv sets docker environment variables

func (*Machine) Exists

func (m *Machine) Exists() bool

Exists checks if a VM exists

func (*Machine) IP

func (m *Machine) IP() (ip string, success bool)

IP returns the IP address of the docker machine

func (*Machine) PrintEvalHint

func (m *Machine) PrintEvalHint(checkenv bool)

PrintEvalHint shows a hint about running docker env if required

func (*Machine) SSH

func (m *Machine) SSH(command string)

SSH into the docker machine to run a command

func (*Machine) ShareFolder

func (m *Machine) ShareFolder(folder string)

ShareFolder adds a /workbench shared folder to the VM

func (*Machine) Start

func (m *Machine) Start()

Start the docker machine

func (*Machine) Stop

func (m *Machine) Stop()

Stop the docker machine

Jump to

Keyboard shortcuts

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