{"modulePath":"github.com/wainersm/openshift_origin","version":"v3.6.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst (\n\tNoDockerMacSolution = `\nPlease install Docker tools by following instructions at:\n\n   https://docs.docker.com/mac/\n\nOnce installed, run this command with the --create-machine\nargument to create a new Docker machine that will run OpenShift.\n`\n\tNoDockerMachineMacSolution = `\nTo create a new Docker machine to run OpenShift, run this command again with\nthe --create-machine argument. This will create a Docker machine named\n'openshift'.\n\nTo use a different machine name, specify the --machine-name=NAME argument.\n\nIf you wish to use an existing Docker machine, enable it before running this\ncommand by executing:\n\n   eval $(docker-machine env NAME)\n\nwhere NAME is the name of your Docker machine.\n`\n\tNoDockerWindowsSolution = `\nPlease install Docker tools by following instructions at:\n\n   https://docs.docker.com/windows/\n\nOnce installed, run this command with the --create-machine argument to create a\nnew Docker machine that will run OpenShift.\n`\n\tNoDockerMachineWindowsSolution = `\nTo create a new Docker machine to run OpenShift, run this command again with\nthe --create-machine argument. This will create a Docker machine named\n'openshift'.\n\nTo use a different machine name, specify the --machine-name=NAME argument.\n\nIf you wish to use an existing Docker machine, enable it before running this\ncommand by executing:\n\n   docker-machine env\n\nwhere NAME is the name of your Docker machine.\n`\n\tNoDockerLinuxSolution = `\nEnsure that Docker is installed and accessible in your environment.\nUse your package manager or follow instructions at:\n\n   https://docs.docker.com/linux/\n`\n\n\tNoDockerMachineClientSolution = `\nEnsure that the Docker machine is available and running. You can also create a\nnew Docker machine by specifying the --create-machine flag.\n`\n\n\tNoInsecureRegistryArgSolution = `\nEnsure that the Docker daemon is running with the following argument:\n\t--insecure-registry 172.30.0.0/16\n`\n\n\tNoInsecureRegistryArgSolutionDockerMachine = NoInsecureRegistryArgSolution + `\nYou can run this command with --create-machine to create a machine with the\nright argument.\n`\n\n\tKubeConfigSolutionUnix = `\nYou can unset the KUBECONFIG variable to use the default location for it:\n   unset KUBECONFIG\n\nOr you can set its value to a file that can be written to:\n   export KUBECONFIG=/path/to/file\n`\n\n\tKubeConfigSolutionWindows = `\nYou can clear the KUBECONFIG variable to use the default location for it:\n   set KUBECONFIG=\n\nOr you can set its value to a file that can be written to:\n   set KUBECONFIG=c:\\path\\to\\file\n`\n)\n```\n\n## Functions\n\n```go\nfunc ErrCannotPingDocker(err error) error\n```\nErrCannotPingDocker is returned when a ping to Docker with the Docker client fails\n\n```go\nfunc ErrKubeConfigNotWriteable(file string, err error) error\n```\nErrKubeConfigNotWriteable is returned when the file pointed to by KUBECONFIG cannot be created or written to\n\n```go\nfunc ErrNoDockerClient(err error) error\n```\nErrNoDockerClient is thrown when a Docker client cannot be obtained or cannot be pinged\n\n```go\nfunc ErrNoDockerMachineClient(name string, err error) error\n```\nErrNoDockerMachineClient is returned when a Docker client cannot be obtained from the given Docker machine\n\n```go\nfunc ErrNoInsecureRegistryArgument() error\n```\nErrNoInsecureRegistryArgument is thrown when an --insecure-registry argument cannot be detected on the Docker daemon process\n\n```go\nfunc LogError(err error)\n```\n\n```go\nfunc PrintLog(out io.Writer, title string, content string)\n```\n\n## Types\n\n```go\ntype Error interface {\n\terror\n\tWithCause(error) Error\n\tWithSolution(string, ...interface{}) Error\n\tWithDetails(string) Error\n}\n```\n\n```go\nfunc NewError(msg string, args ...interface{}) Error\n```\n\n","path":"github.com/wainersm/openshift_origin/pkg/bootstrap/docker/errors","name":"errors","synopsis":"","isRedistributable":true}
