Documentation ¶
Index ¶
- Variables
- type ClientListOptions
- type Dependent
- type Dependents
- type FieldIndexerFuncPredicate
- type FieldListOptions
- type ListOption
- type ListPredicate
- type ListPredicateFunc
- type ListReferencer
- func (r *ListReferencer) InjectAPIReader(apiReader client.Reader) error
- func (r *ListReferencer) InjectClient(client client.Client) error
- func (r *ListReferencer) InjectFunc(f inject.Func) error
- func (r *ListReferencer) InjectScheme(scheme *runtime.Scheme) error
- func (r *ListReferencer) References(ctx context.Context, referenced client.Object) (bool, error)
- type Mixin
- type Referencer
Constants ¶
This section is empty.
Variables ¶
var InReferencedNamespaceNameNamespace = inReferencedNamespace{}
InReferencedNamespaceNameNamespace is a ListOption to use the name of the referenced namespace for listing referents.
Example: A Secret references a Namespace. In this case, client.InNamespace will be produced with the value being the name of the referenced Namespace.
var InReferencedObjectNamespace = inReferencedObjectNamespace{}
InReferencedObjectNamespace is a ListOption to use the namespace of the referenced object for listing referents.
Example: A Secret references a ConfigMap. In this case, client.InNamespace will be produced with the value being the namespace name of the ConfigMap.
Functions ¶
This section is empty.
Types ¶
type ClientListOptions ¶
type ClientListOptions []client.ListOption
func (ClientListOptions) ListOptions ¶
func (o ClientListOptions) ListOptions(_ client.Object) []client.ListOption
type Dependent ¶
type Dependent struct { ReferentType client.Object CachedReferencer Referencer LiveReferencer Referencer Handler handler.EventHandler Predicates []predicate.Predicate }
type Dependents ¶
type FieldIndexerFuncPredicate ¶
type FieldIndexerFuncPredicate struct { Field string IndexerFunc client.IndexerFunc }
type FieldListOptions ¶
type FieldListOptions struct {
Field string
}
FieldListOptions is a ListOption that adds client.MatchingFields with the field set to the name of the referenced object and client.InNamespace with the value set to the namespace the referenced object is in, thus this makes the use of InReferencedObjectNamespace superfluous.
func (*FieldListOptions) ListOptions ¶
func (f *FieldListOptions) ListOptions(referenced client.Object) []client.ListOption
type ListOption ¶
type ListOption interface {
ListOptions(referenced client.Object) []client.ListOption
}
type ListPredicate ¶
type ListPredicateFunc ¶
type ListReferencer ¶
type ListReferencer struct { ReferentType client.Object Options []ListOption Predicates []ListPredicate Live bool // contains filtered or unexported fields }
func (*ListReferencer) InjectAPIReader ¶
func (r *ListReferencer) InjectAPIReader(apiReader client.Reader) error
func (*ListReferencer) InjectClient ¶
func (r *ListReferencer) InjectClient(client client.Client) error
func (*ListReferencer) InjectFunc ¶
func (r *ListReferencer) InjectFunc(f inject.Func) error
func (*ListReferencer) InjectScheme ¶
func (r *ListReferencer) InjectScheme(scheme *runtime.Scheme) error
func (*ListReferencer) References ¶
type Mixin ¶
type Mixin struct {
// contains filtered or unexported fields
}