client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyExists added in v0.4.0

func AnyExists(ctx context.Context, c client.Client, obj client.Object, opts ...client.ListOption) (bool, error)

Types

type ListAndOperation added in v0.4.0

type ListAndOperation struct {
	// contains filtered or unexported fields
}

func ListAnd added in v0.4.0

func ListAnd(c client.Client, list client.ObjectList, opts ...client.ListOption) *ListAndOperation

func (*ListAndOperation) DeletePredicate added in v0.4.0

func (o *ListAndOperation) DeletePredicate(ctx context.Context, pred ObjectPredicate) (n int, err error)

type ObjectPredicate added in v0.4.0

type ObjectPredicate interface {
	Matches(obj client.Object) bool
}

type StemmingFrom added in v0.4.0

type StemmingFrom struct {
	Origin *origin.Origin
	Source client.Object
}

func (*StemmingFrom) ApplyToDeleteAllOf added in v0.4.0

func (s *StemmingFrom) ApplyToDeleteAllOf(opts *client.DeleteAllOfOptions)

func (*StemmingFrom) ApplyToList added in v0.4.0

func (s *StemmingFrom) ApplyToList(opts *client.ListOptions)

func (*StemmingFrom) Matches added in v0.4.0

func (s *StemmingFrom) Matches(obj client.Object) bool

type StemmingFromKey added in v0.4.0

type StemmingFromKey struct {
	Origin    *origin.Origin
	SourceKey client.ObjectKey
}

func (*StemmingFromKey) Matches added in v0.4.0

func (s *StemmingFromKey) Matches(obj client.Object) bool

func (*StemmingFromKey) UIDExistsSelector added in v0.4.0

func (s *StemmingFromKey) UIDExistsSelector() interface {
	client.ListOption
	client.DeleteAllOfOption
}

UIDExistsSelector selects all items where the UID label key of the origin exists. The actual value is not checked. If the origin is namespaced, the namespace label is compared with the desired namespace value.

Jump to

Keyboard shortcuts

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