apierrors

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImageNotFound                  = errors.New("image not found")
	ErrInternalServer                 = errors.New("internal error")
	ErrResourceState                  = errors.New("incorrect resource state")
	ErrUnableToReadMessage            = errors.New("failed to read message body")
	ErrColIDMismatch                  = errors.New("'Collection-Id' header does not match 'collection_id' query parameter")
	ErrWrongColID                     = errors.New("'Collection-Id' header does not match new or existing image's 'collection_id'")
	ErrImageIDMismatch                = errors.New("Image id provided in body does not match 'id' path parameter")
	ErrUnableToParseJSON              = errors.New("failed to parse json body")
	ErrImageFilenameTooLong           = errors.New("image filename is too long")
	ErrImageNoCollectionID            = errors.New("image does not have a collectionID")
	ErrImageAlreadyPublished          = errors.New("image is already published")
	ErrImageInvalidState              = errors.New("image state is not a valid state name")
	ErrImageStateTransitionNotAllowed = errors.New("image state transition not allowed")
	ErrImagePublishWrongEndpoint      = errors.New("wrong endpoint to publish images. Please use 'POST /images/{id}/publish' instead")
)

A list of error messages for Image API

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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