types

package
Version: v0.0.0-...-dd4f625 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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

func StatusToError(s Status) error

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

func ErrToStatus(err error) Status

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL