endpoints

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIVersionCheckMiddleware added in v0.13.0

func APIVersionCheckMiddleware(next http.Handler) http.Handler

func AuthMiddleware added in v0.13.0

func AuthMiddleware(next http.Handler) http.Handler

func ClientIDMiddleware added in v0.13.0

func ClientIDMiddleware(next http.Handler) http.Handler

func Delete

func Delete(w http.ResponseWriter, r *http.Request)

func Deploy

func Deploy(w http.ResponseWriter, r *http.Request)

func ErrorAPIVersionMismatch added in v0.13.0

func ErrorAPIVersionMismatch(operatorVersion string, clientVersion string) error

func ErrorAnyPathParamRequired added in v0.4.0

func ErrorAnyPathParamRequired(param string, params ...string) error

func ErrorAnyQueryParamRequired added in v0.4.0

func ErrorAnyQueryParamRequired(param string, params ...string) error

func ErrorAuthAPIError

func ErrorAuthAPIError() error

func ErrorAuthHeaderMalformed

func ErrorAuthHeaderMalformed() error

func ErrorAuthHeaderMissing

func ErrorAuthHeaderMissing() error

func ErrorAuthInvalid added in v0.10.0

func ErrorAuthInvalid() error

func ErrorAuthOtherAccount added in v0.10.0

func ErrorAuthOtherAccount() error

func ErrorFormFileMustBeProvided added in v0.4.0

func ErrorFormFileMustBeProvided(fileName string) error

func ErrorPathParamRequired added in v0.4.0

func ErrorPathParamRequired(param string) error

func ErrorQueryParamRequired added in v0.4.0

func ErrorQueryParamRequired(param string) error

func GetAPI added in v0.13.0

func GetAPI(w http.ResponseWriter, r *http.Request)

func GetAPIs added in v0.13.0

func GetAPIs(w http.ResponseWriter, r *http.Request)

func Info added in v0.10.0

func Info(w http.ResponseWriter, r *http.Request)

func PanicMiddleware added in v0.13.0

func PanicMiddleware(next http.Handler) http.Handler

func ReadLogs

func ReadLogs(w http.ResponseWriter, r *http.Request)

func Refresh added in v0.13.0

func Refresh(w http.ResponseWriter, r *http.Request)

Types

type Error added in v0.2.0

type Error struct {
	Kind ErrorKind
	// contains filtered or unexported fields
}

func (Error) Error added in v0.2.0

func (e Error) Error() string

type ErrorKind

type ErrorKind int
const (
	ErrUnknown ErrorKind = iota
	ErrAPIVersionMismatch
	ErrAuthHeaderMissing
	ErrAuthHeaderMalformed
	ErrAuthAPIError
	ErrAuthInvalid
	ErrAuthOtherAccount
	ErrFormFileMustBeProvided
	ErrQueryParamRequired
	ErrPathParamRequired
	ErrAnyQueryParamRequired
	ErrAnyPathParamRequired
)

func (ErrorKind) MarshalBinary

func (t ErrorKind) MarshalBinary() ([]byte, error)

MarshalBinary satisfies BinaryMarshaler

func (ErrorKind) MarshalText

func (t ErrorKind) MarshalText() ([]byte, error)

MarshalText satisfies TextMarshaler

func (ErrorKind) String

func (t ErrorKind) String() string

func (*ErrorKind) UnmarshalBinary

func (t *ErrorKind) UnmarshalBinary(data []byte) error

UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack

func (*ErrorKind) UnmarshalText

func (t *ErrorKind) UnmarshalText(text []byte) error

UnmarshalText satisfies TextUnmarshaler

Jump to

Keyboard shortcuts

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