Documentation ¶
Index ¶
- type WorkloadSelectionTracker
- func (t *WorkloadSelectionTracker) MapWorkload(_ context.Context, _ controller.Runtime, res *pbresource.Resource) ([]controller.Request, error)
- func (t *WorkloadSelectionTracker) TrackIDForSelector(id *pbresource.ID, selector *pbcatalog.WorkloadSelector)
- func (t *WorkloadSelectionTracker) UntrackID(id *pbresource.ID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkloadSelectionTracker ¶
type WorkloadSelectionTracker struct {
// contains filtered or unexported fields
}
func New ¶
func New() *WorkloadSelectionTracker
func (*WorkloadSelectionTracker) MapWorkload ¶
func (t *WorkloadSelectionTracker) MapWorkload(_ context.Context, _ controller.Runtime, res *pbresource.Resource) ([]controller.Request, error)
MapWorkload will return a slice of controller.Requests with 1 resource for each resource that selects the specified Workload resource.
func (*WorkloadSelectionTracker) TrackIDForSelector ¶
func (t *WorkloadSelectionTracker) TrackIDForSelector(id *pbresource.ID, selector *pbcatalog.WorkloadSelector)
TrackIDForSelector will associate workloads matching the specified workload selector with the given resource id.
func (*WorkloadSelectionTracker) UntrackID ¶
func (t *WorkloadSelectionTracker) UntrackID(id *pbresource.ID)
UntrackID causes the tracker to stop tracking the given resource ID
Click to show internal directories.
Click to hide internal directories.