errors

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APINotSupportedMsg

func APINotSupportedMsg(product, method string) error

func BadRequestError

func BadRequestError(msg string) error

BadRequestError returns a 400 docker error on a bad request.

func ConcurrentAPIError

func ConcurrentAPIError(name, request string) error

func ConflictError

func ConflictError(msg string) error

func ContainerResourceNotFoundError

func ContainerResourceNotFoundError(cid, res string) error

func ImageNotFoundError

func ImageNotFoundError(image, tag string) error

func InternalServerError

func InternalServerError(msg string) error

InternalServerError returns a 500 docker error on a portlayer error.

func IsConflictError

func IsConflictError(err error) bool

func IsNotFoundError

func IsNotFoundError(err error) bool

func IsResourceInUse

func IsResourceInUse(err error) bool

func NillPortlayerClientError

func NillPortlayerClientError(caller string) error

func NotFoundError

func NotFoundError(msg string) error

NotFoundError returns a 404 docker error when a container is not found.

func PluginNotFoundError

func PluginNotFoundError(name string) error

func ResourceLockedError

func ResourceLockedError(msg string) error

ResourceLockedError returns a 423 http status

func ResourceNotFoundError

func ResourceNotFoundError(res string) error

func StreamFormatNotRecognized

func StreamFormatNotRecognized() error

func SwarmNotSupportedError

func SwarmNotSupportedError() error

func TagNotFoundError

func TagNotFoundError(image, tag string) error

func TaskBindPowerError

func TaskBindPowerError() error

func TaskInspectNotFoundError

func TaskInspectNotFoundError(msg string) error

func TaskPoweredOffError

func TaskPoweredOffError(msg string) error

func VolumeCreateNotFoundError

func VolumeCreateNotFoundError(msg string) error

VolumeCreateNotFoundError returns a 404 docker error for a volume create request.

func VolumeInternalServerError

func VolumeInternalServerError(err error) error

VolumeInternalServerError returns a 500 docker error for a volume-related request.

func VolumeJoinNotFoundError

func VolumeJoinNotFoundError(msg string) error

VolumeJoinNotFoundError returns a 404 docker error for a volume join request.

func VolumeNotFoundError

func VolumeNotFoundError(msg string) error

VolumeNotFoundError returns a 404 docker error for a volume get request.

Types

type DetachError

type DetachError struct{}

func (DetachError) Error

func (DetachError) Error() string

type InvalidBindError

type InvalidBindError struct {
	Volume string
}

InvalidBindError is returned when create/run -v has more params than allowed.

func (InvalidBindError) Error

func (e InvalidBindError) Error() string

type InvalidVolumeError

type InvalidVolumeError struct {
}

InvalidVolumeError is returned when the user specifies a client directory as a volume.

func (InvalidVolumeError) Error

func (e InvalidVolumeError) Error() string

Jump to

Keyboard shortcuts

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