Documentation ¶
Index ¶
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 Client ¶
func Client(name string) (dockerhelper.Interface, error)
Client returns a Docker client for the given Docker machine
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.