Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidContext = errors.New("Invalid context") ErrBadArgument = errors.New("Lens has bad argument") ErrNotFound = errors.New("Buffer data could not be found") ErrUnknownStatus = errors.New("Unknown status") )
Defined Error types, must match Status
Functions ¶
func StatusToError ¶
Types ¶
type BufferType ¶
type BufferType uint32
const ( // BufferTypeInputData Input data object which has the lens applied to BufferTypeInputData BufferType = iota // BufferTypeInputArg Input argument object which defines the lens parameters BufferTypeInputArg // BufferTypeOutputPatch Output JSON Merge Patch object produced by the lens BufferTypeOutputPatch // BufferTypeTempInputData Temporary input data object, used for inter module // lens execution BufferTypeTempInputData // BufferTypeTempInputArg Temporary input argument object, used for inter module lens // execution BufferTypeTempInputArg )
type Status ¶
type Status int32
const ( StatusOK Status = iota // code 0; doesn't need a matching error StatusErrInvalidContext // code 1 StatusErrBadArgument // code 2 StatusNotFound // code 3 StatusErrUnknown // code 9; doesn't need a matching error )
Defined Status types, must match Error Only available code slots are 0-9
func ErrToStatus ¶
Click to show internal directories.
Click to hide internal directories.