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 ¶
IsCreateNotAllowed will return wether or not the provided error equals ErrCreateNotAllowed.
func IsNoObjectGiven ¶
IsNoObjectGiven will return wether or not the provided error equals ErrNoObjectGiven.
func IsUpdateNotAllowed ¶
IsUpdateNotAllowed will return wether or not the provided error equals ErrUpdateNotAllowed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.