Documentation ¶
Index ¶
- Constants
- func AssureDeleting(ctx context.Context, clt client.Client, object client.Object) error
- func AssureFinalizer(ctx context.Context, client client.Client, finalizerName string, ...) error
- func AssureFinalizerRemoved(ctx context.Context, client client.Client, finalizerName string, ...) error
- func CheckAndAssureFinalizer(ctx context.Context, client client.Client, finalizerName string, ...) (bool, error)
- func ContainsString(slice []string, s string) bool
- func GetLabel(object client.Object, name string, defs ...string) string
- func GetObjectForGroupKind(clt client.Client, gk schema.GroupKind) client.Object
- func GetObjectListForGroupKind(clt client.Client, gk schema.GroupKind) client.ObjectList
- func HasFinalizer(object client.Object, finalizerName string) bool
- func NewObjectKey(object client.Object) client.ObjectKey
- func Requeue(err error) (ctrl.Result, error)
- func Succeeded() (ctrl.Result, error)
- func SucceededIfNotFound(err error) (ctrl.Result, error)
- func ValidateFieldIsImmutatable(new, old string, fldPath *field.Path) *field.Error
- type GroupKinds
- func (o GroupKinds) Add(id schema.GroupKind)
- func (o GroupKinds) AddAll(ids GroupKinds)
- func (o GroupKinds) Contains(id schema.GroupKind) bool
- func (o GroupKinds) Copy() GroupKinds
- func (o GroupKinds) Equal(ids GroupKinds) bool
- func (o GroupKinds) Join(ids GroupKinds) GroupKinds
- func (o GroupKinds) Remove(id schema.GroupKind)
- func (o GroupKinds) String() string
- type ItemListIterator
- type ObjectId
- type ObjectIds
- func (o ObjectIds) Add(id ObjectId)
- func (o ObjectIds) AddAll(ids ObjectIds)
- func (o ObjectIds) Contains(id ObjectId) bool
- func (o ObjectIds) Copy() ObjectIds
- func (o ObjectIds) Equal(ids ObjectIds) bool
- func (o ObjectIds) Join(ids ObjectIds) ObjectIds
- func (o ObjectIds) Remove(id ObjectId)
- func (o ObjectIds) String() string
- type Ready
Constants ¶
View Source
const FieldIsImmutable = "field is immutable"
Variables ¶
This section is empty.
Functions ¶
func AssureDeleting ¶
AssureDeleting ensures that an object is being deleted
func AssureFinalizer ¶
func AssureFinalizer(ctx context.Context, client client.Client, finalizerName string, object client.Object) error
AssureFinalizer ensures that a finalizer is on a given runtime object
func AssureFinalizerRemoved ¶
func AssureFinalizerRemoved(ctx context.Context, client client.Client, finalizerName string, object client.Object) error
AssureFinalizerRemoved ensures that a finalizer does not exist anymore for a given runtime object
func CheckAndAssureFinalizer ¶ added in v0.0.7
func CheckAndAssureFinalizer(ctx context.Context, client client.Client, finalizerName string, object client.Object) (bool, error)
CheckAndAssureFinalizer ensures that a finalizer is on a given runtime object Returns false if the finalizer has been added.
func ContainsString ¶
ContainsString is a helper functions to check and remove string from a slice of strings.
func GetObjectForGroupKind ¶ added in v0.0.6
func GetObjectListForGroupKind ¶ added in v0.0.6
func HasFinalizer ¶ added in v0.0.7
func SucceededIfNotFound ¶
SucceededIfNotFound returns a requeue result if the error is not a "NotFound" error
Types ¶
type GroupKinds ¶ added in v0.0.6
func NewGroupKinds ¶ added in v0.0.6
func NewGroupKinds(ids ...schema.GroupKind) GroupKinds
func (GroupKinds) Add ¶ added in v0.0.6
func (o GroupKinds) Add(id schema.GroupKind)
func (GroupKinds) AddAll ¶ added in v0.0.6
func (o GroupKinds) AddAll(ids GroupKinds)
func (GroupKinds) Copy ¶ added in v0.0.6
func (o GroupKinds) Copy() GroupKinds
func (GroupKinds) Equal ¶ added in v0.0.6
func (o GroupKinds) Equal(ids GroupKinds) bool
func (GroupKinds) Join ¶ added in v0.0.6
func (o GroupKinds) Join(ids GroupKinds) GroupKinds
func (GroupKinds) Remove ¶ added in v0.0.6
func (o GroupKinds) Remove(id schema.GroupKind)
func (GroupKinds) String ¶ added in v0.0.6
func (o GroupKinds) String() string
type ItemListIterator ¶ added in v0.0.6
type ItemListIterator struct {
// contains filtered or unexported fields
}
func MustItemListIterator ¶ added in v0.0.6
func MustItemListIterator(list client.ObjectList) *ItemListIterator
func NewItemListIterator ¶ added in v0.0.6
func NewItemListIterator(list client.ObjectList) (*ItemListIterator, error)
func (*ItemListIterator) Current ¶ added in v0.0.6
func (i *ItemListIterator) Current() client.Object
func (*ItemListIterator) HasNext ¶ added in v0.0.6
func (i *ItemListIterator) HasNext() bool
func (*ItemListIterator) Next ¶ added in v0.0.6
func (i *ItemListIterator) Next() client.Object
type ObjectId ¶ added in v0.0.6
func MustParseObjectId ¶ added in v0.0.6
func NewObjectId ¶ added in v0.0.6
func NewObjectIdForRequest ¶ added in v0.0.6
func ParseObjectId ¶ added in v0.0.6
type ObjectIds ¶ added in v0.0.6
type ObjectIds map[ObjectId]struct{}
func GetOwnerIdsFor ¶ added in v0.0.6
func NewObjectIds ¶ added in v0.0.6
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package condition simplifies condition handling with any structurally compatible condition (comparable to a sort of duck-typing) via go reflection.
|
Package condition simplifies condition handling with any structurally compatible condition (comparable to a sort of duck-typing) via go reflection. |
Package testutils provides utilities for writing (ginkgo / gomega - based) tests.
|
Package testutils provides utilities for writing (ginkgo / gomega - based) tests. |
Click to show internal directories.
Click to hide internal directories.