Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
GroupKind schema.GroupKind
NamespacedName types.NamespacedName
}
func NewKey ¶
func NewKey(gvk schema.GroupVersionKind, namespacedName types.NamespacedName) Key
type Tracker ¶
type Tracker interface {
// Track tells us that "obj" is tracking changes to the
// referenced object.
Track(ctx context.Context, ref Key, obj types.NamespacedName)
// TrackChild tracks the child by the parent.
TrackChild(ctx context.Context, parent, child client.Object, s *runtime.Scheme) error
// Lookup returns actively tracked objects for the reference.
Lookup(ctx context.Context, ref Key) []types.NamespacedName
}
Tracker defines the interface through which an object can register that it is tracking another object by reference.
Click to show internal directories.
Click to hide internal directories.