errors

package
v1.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoDockerMacSolution = `` /* 217-byte string literal not displayed */

	NoDockerMachineMacSolution = `` /* 422-byte string literal not displayed */

	NoDockerWindowsSolution = `` /* 221-byte string literal not displayed */

	NoDockerMachineWindowsSolution = `` /* 409-byte string literal not displayed */

	NoDockerLinuxSolution = `` /* 156-byte string literal not displayed */

	NoDockerMachineClientSolution = `` /* 140-byte string literal not displayed */

	NoInsecureRegistryArgSolution = `
Ensure that the Docker daemon is running with the following argument:
	--insecure-registry 172.30.0.0/16
`

	NoInsecureRegistryArgSolutionDockerMachine = NoInsecureRegistryArgSolution + `
You can run this command with --create-machine to create a machine with the
right argument.
`
)

Variables

This section is empty.

Functions

func ErrCannotPingDocker

func ErrCannotPingDocker(err error) error

func ErrNoDockerClient

func ErrNoDockerClient(err error) error

ErrNoDockerClient is thrown when a Docker client cannot be obtained or cannot be pinged

func ErrNoDockerMachineClient

func ErrNoDockerMachineClient(name string, err error) error

func ErrNoInsecureRegistryArgument

func ErrNoInsecureRegistryArgument() error

ErrNoInsecureRegistryArgument is thrown when an --insecure-registry argument cannot be detected on the Docker daemon process

func LogError

func LogError(err error)

func PrintLog

func PrintLog(out io.Writer, title string, content []byte)

Types

type Error

type Error interface {
	error
	WithCause(error) Error
	WithSolution(string, ...interface{}) Error
	WithDetails(string) Error
}

func NewError

func NewError(msg string, args ...interface{}) Error

Jump to

Keyboard shortcuts

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