controller

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchLabelSelectorFunc

func MatchLabelSelectorFunc[O client.Object](sel labels.Selector) func(O) bool

Types

type RefManager

type RefManager[O client.Object] struct {
	// contains filtered or unexported fields
}

func NewRefManager

func NewRefManager[O client.Object](c client.Client, controller client.Object, match func(O) bool) *RefManager[O]

func (*RefManager[O]) ClaimObject

func (r *RefManager[O]) ClaimObject(
	ctx context.Context,
	obj O,
) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL