Documentation ¶
Index ¶
- Variables
- func Client(name string) (*docker.Client, *dockerclient.Client, error)
- func ErrDockerMachineExec(cmd string, cause error) error
- func Exists(name string) bool
- func IP(name string) (string, error)
- func IsAvailable() bool
- func IsRunning(name string) bool
- func Start(name string) error
- type Builder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDockerMachineExists is returned if a Docker machine you are trying to create already exists ErrDockerMachineExists = errors.New("Docker machine exists") // ErrDockerMachineNotAvailable is returned if the docker-machine command is not available in the PATH ErrDockerMachineNotAvailable = errors.New("docker-machine not available") )
Functions ¶
func ErrDockerMachineExec ¶
ErrDockerMachineExec is an error that occurred while executing the docker-machine command
func IsAvailable ¶
func IsAvailable() bool
IsAvailable returns true if the docker-machine executable can be found in the PATH
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder can be used to create a new Docker machine on the local system
func NewBuilder ¶
func NewBuilder() *Builder
NewBuilder creates a Docker machine Builder object used to create a Docker machine
func (*Builder) Memory ¶
Memory sets the amount of memory (in MB) to give a Docker machine when creating it
func (*Builder) Processors ¶
Processors sets the number of processors to give a Docker machine when creating it
Click to show internal directories.
Click to hide internal directories.