Documentation ¶
Index ¶
- func GetController[T client.Object](ctx context.Context, c client.Client, scheme *runtime.Scheme, ...) (T, error)
- func GetOwners[T client.Object](ctx context.Context, c client.Client, scheme *runtime.Scheme, ...) ([]T, error)
- func List[T client.Object](ctx context.Context, client client.Client, opts ...client.ListOption) ([]T, error)
- func NewObject[T client.Object]() (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetController ¶
func GetController[T client.Object](ctx context.Context, c client.Client, scheme *runtime.Scheme, obj client.Object) (T, error)
GetController returns the object that controls the resource. If the object has no controller of the specified type then nil is returned.
func GetOwners ¶
func GetOwners[T client.Object](ctx context.Context, c client.Client, scheme *runtime.Scheme, obj client.Object) ([]T, error)
GetObjects returns the objects of the selected type that are "owners" of the specified object. It will skip objects marked as "controllers"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.