errors

package
v0.0.0-...-d390798 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCreateNotAllowed is used for when AllowCreate is disabled and a create
	// action is performed.
	ErrCreateNotAllowed = errors.New("Creating an object is not allowed with the current configuration")

	// ErrUpdateNotAllowed is used for when AllowUpdate is disabled and a update
	// action is performed.
	ErrUpdateNotAllowed = errors.New("Updating an object is not allowed with the current configuration")

	// ErrNoObjectGiven is used when apply is called with a nil object.
	ErrNoObjectGiven = errors.New("`nil` object given, can't apply")

	// ErrNoRuntimeObject is used when a passed through object interface doesn't
	// match the runtime.Object interface.
	ErrNoRuntimeObject = errors.New("Object is not of type runtime.Object")

	// ErrNoPointerObject is used when the passed object is not a pointer.
	ErrNoPointerObject = errors.New("Given object is not a pointer")
)

Functions

func IsCreateNotAllowed

func IsCreateNotAllowed(err error) bool

IsCreateNotAllowed will return wether or not the provided error equals ErrCreateNotAllowed.

func IsNoObjectGiven

func IsNoObjectGiven(err error) bool

IsNoObjectGiven will return wether or not the provided error equals ErrNoObjectGiven.

func IsUpdateNotAllowed

func IsUpdateNotAllowed(err error) bool

IsUpdateNotAllowed will return wether or not the provided error equals ErrUpdateNotAllowed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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