package
0.0.0-20250303095208-d379ee86d136
Repository: https://github.com/codeready-toolchain/toolchain-common.git
Documentation: pkg.go.dev

# Functions

Annotations returns a predicate checking that an Object has provided annotations and their values.
AssertThat is a helper function that tests that the provided object satisfies given predicate.
Explain produces a textual explanation for why the provided predicate didn't match.
Has is just an alias of Is.
InNamespace returns a predicate checking that an Object is in the given namespace.
Is merely casts the generic predicate on type T to a predicate on client.Object.
Labels returns a predicate checking that an Object has provided labels and their values.
Name returns a predicate checking that an Object has given name.
ObjectKey returns a predicate checking that an Object has given NamespacedName (aka client.ObjectKey).

# Interfaces

Predicate is a generic predicate for testing whether some object of type T has some quality.
PredicateMatchFixer is an optional interface that the predicate implementations can also implement.