Documentation
¶
Index ¶
- 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 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 Requeue(err error) (ctrl.Result, error)
- func Succeeded() (ctrl.Result, error)
- func SucceededIfNotFound(err error) (ctrl.Result, 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssureDeleting ¶
AssureDeleting ensures that the object is in deletion mode
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 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
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
Click to show internal directories.
Click to hide internal directories.