Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MustExist means that an object must exist at the given path entry. MustExist = Condition("MustExist") // MustNotExist means that an object must not exist at the given path entry. MustNotExist = Condition("MustNotExist") )
Variables ¶
View Source
var ( ErrPrefix = errors.New("all subpaths must be a prefix of the `location` value of the mutation") ErrConflict = errors.New("conflicting path test conditions") )
Base errors for validating path tests.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition string
Condition describes whether the path either MustExist or MustNotExist in the original object +kubebuilder:validation:Enum=MustExist;MustNotExist
func StringToCondition ¶
StringToCondition translates a user-provided string into a Test Condition.
type Tester ¶
type Tester struct {
// contains filtered or unexported fields
}
Tester knows whether it's okay that an object exists at a given path depth.
func (*Tester) ExistsOkay ¶
ExistsOkay returns true if it's okay that an object exists.
func (*Tester) MissingOkay ¶
MissingOkay returns true if it's okay that an object is missing.
Click to show internal directories.
Click to hide internal directories.