common

package
v0.0.0-...-5cf3e1d Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInsufficientStorage    = BackendPublishError{HTTPCode: http.StatusInsufficientStorage, Info: "insufficient storage on backend"}
	ErrBackendTargetNotFound  = BackendPublishError{HTTPCode: http.StatusNotFound, Info: "publishing target on backend not found"}
	ErrClientNoConnection     = BackendPublishError{HTTPCode: http.StatusBadGateway, Info: "no connection to backend"}
	ErrInternalBackendError   = BackendPublishError{HTTPCode: http.StatusInternalServerError, Info: "internal error on backend"}
	ErrClientConversionFailed = BackendPublishError{HTTPCode: http.StatusBadRequest, Info: "conversion to target format failed"}
)

Functions

This section is empty.

Types

type BackendPublishError

type BackendPublishError struct {
	HTTPCode int
	Info     string
	// contains filtered or unexported fields
}

func (BackendPublishError) Code

func (e BackendPublishError) Code() int

func (BackendPublishError) Error

func (e BackendPublishError) Error() string

func (*BackendPublishError) Is

func (e *BackendPublishError) Is(target error) bool

func (BackendPublishError) Message

func (e BackendPublishError) Message() string

func (*BackendPublishError) Unwrap

func (e *BackendPublishError) Unwrap() error

func (*BackendPublishError) Wrap

func (e *BackendPublishError) Wrap(wrappedError error)

Jump to

Keyboard shortcuts

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