selectiontracker

package
v1.16.109 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 (*WorkloadSelectionTracker) MapWorkload

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

Jump to

Keyboard shortcuts

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