{"modulePath":"github.com/2lambda123/openshift-origin","version":"v3.8.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dockermachine\n\n## Variables\n\n```go\nvar (\n\t// ErrDockerMachineExists is returned if a Docker machine you are trying to create already exists\n\tErrDockerMachineExists = errors.New(\"Docker machine exists\")\n\n\t// ErrDockerMachineNotAvailable is returned if the docker-machine command is not available in the PATH\n\tErrDockerMachineNotAvailable = errors.New(\"docker-machine not available\")\n)\n```\n\n## Functions\n\n```go\nfunc Client(name string) (dockerhelper.Interface, error)\n```\nClient returns a Docker client for the given Docker machine\n\n```go\nfunc ErrDockerMachineExec(cmd string, cause error) error\n```\nErrDockerMachineExec is an error that occurred while executing the docker-machine command\n\n```go\nfunc Exists(name string) bool\n```\nExists returns true if a Docker machine exists\n\n```go\nfunc IP(name string) (string, error)\n```\nIP returns the IP address of the Docker machine\n\n```go\nfunc IsAvailable() bool\n```\nIsAvailable returns true if the docker-machine executable can be found in the PATH\n\n```go\nfunc IsRunning(name string) bool\n```\nIsRunning returns true if a Docker machine is running\n\n```go\nfunc Start(name string) error\n```\nStart starts up an existing Docker machine\n\n## Types\n\n```go\ntype Builder struct {\n\t// contains filtered or unexported fields\n}\n```\nBuilder can be used to create a new Docker machine on the local system\n\n```go\nfunc NewBuilder() *Builder\n```\nNewBuilder creates a Docker machine Builder object used to create a Docker machine\n\n```go\nfunc (b *Builder) Create() error\n```\nCreate creates a new Docker machine\n\n```go\nfunc (b *Builder) Memory(mem int) *Builder\n```\nMemory sets the amount of memory (in MB) to give a Docker machine when creating it\n\n```go\nfunc (b *Builder) Name(name string) *Builder\n```\nName sets the name of the Docker machine to build\n\n```go\nfunc (b *Builder) Processors(proc int) *Builder\n```\nProcessors sets the number of processors to give a Docker machine when creating it\n\n","path":"github.com/2lambda123/openshift-origin/pkg/oc/bootstrap/docker/dockermachine","name":"dockermachine","synopsis":"","isRedistributable":true}
