Documentation ¶
Index ¶
- func APINotSupportedMsg(product, method string) error
- func BadRequestError(msg string) error
- func ConcurrentAPIError(name, request string) error
- func ConflictError(msg string) error
- func ContainerResourceNotFoundError(cid, res string) error
- func ImageNotFoundError(image, tag string) error
- func InternalServerError(msg string) error
- func IsConflictError(err error) bool
- func IsNotFoundError(err error) bool
- func IsResourceInUse(err error) bool
- func NillPortlayerClientError(caller string) error
- func NotFoundError(msg string) error
- func PluginNotFoundError(name string) error
- func ResourceLockedError(msg string) error
- func ResourceNotFoundError(res string) error
- func StreamFormatNotRecognized() error
- func SwarmNotSupportedError() error
- func TagNotFoundError(image, tag string) error
- func TaskBindPowerError() error
- func TaskInspectNotFoundError(msg string) error
- func TaskPoweredOffError(msg string) error
- func VolumeCreateNotFoundError(msg string) error
- func VolumeInternalServerError(err error) error
- func VolumeJoinNotFoundError(msg string) error
- func VolumeNotFoundError(msg string) error
- type DetachError
- type InvalidBindError
- type InvalidVolumeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APINotSupportedMsg ¶
func BadRequestError ¶
BadRequestError returns a 400 docker error on a bad request.
func ConcurrentAPIError ¶
func ConflictError ¶
func ImageNotFoundError ¶
func InternalServerError ¶
InternalServerError returns a 500 docker error on a portlayer error.
func IsConflictError ¶
func IsNotFoundError ¶
func IsResourceInUse ¶
func NotFoundError ¶
NotFoundError returns a 404 docker error when a container is not found.
func PluginNotFoundError ¶
func ResourceLockedError ¶
ResourceLockedError returns a 423 http status
func ResourceNotFoundError ¶
func StreamFormatNotRecognized ¶
func StreamFormatNotRecognized() error
func SwarmNotSupportedError ¶
func SwarmNotSupportedError() error
func TagNotFoundError ¶
func TaskBindPowerError ¶
func TaskBindPowerError() error
func TaskPoweredOffError ¶
func VolumeCreateNotFoundError ¶
VolumeCreateNotFoundError returns a 404 docker error for a volume create request.
func VolumeInternalServerError ¶
VolumeInternalServerError returns a 500 docker error for a volume-related request.
func VolumeJoinNotFoundError ¶
VolumeJoinNotFoundError returns a 404 docker error for a volume join request.
func VolumeNotFoundError ¶
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