Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrafficTargetSet ¶
type TrafficTargetSet interface { // Get the set stored keys Keys() sets.String // List of resources stored in the set. Pass an optional filter function to filter on the list. List(filterResource ...func(*access_smi_spec_io_v1alpha2.TrafficTarget) bool) []*access_smi_spec_io_v1alpha2.TrafficTarget // Return the Set as a map of key to resource. Map() map[string]*access_smi_spec_io_v1alpha2.TrafficTarget // Insert a resource into the set. Insert(trafficTarget ...*access_smi_spec_io_v1alpha2.TrafficTarget) // Compare the equality of the keys in two sets (not the resources themselves) Equal(trafficTargetSet TrafficTargetSet) bool // Check if the set contains a key matching the resource (not the resource itself) Has(trafficTarget ezkube.ResourceId) bool // Delete the key matching the resource Delete(trafficTarget ezkube.ResourceId) // Return the union with the provided set Union(set TrafficTargetSet) TrafficTargetSet // Return the difference with the provided set Difference(set TrafficTargetSet) TrafficTargetSet // Return the intersection with the provided set Intersection(set TrafficTargetSet) TrafficTargetSet // Find the resource with the given ID Find(id ezkube.ResourceId) (*access_smi_spec_io_v1alpha2.TrafficTarget, error) // Get the length of the set Length() int }
func NewTrafficTargetSet ¶
func NewTrafficTargetSet(trafficTargetList ...*access_smi_spec_io_v1alpha2.TrafficTarget) TrafficTargetSet
func NewTrafficTargetSetFromList ¶
func NewTrafficTargetSetFromList(trafficTargetList *access_smi_spec_io_v1alpha2.TrafficTargetList) TrafficTargetSet
Click to show internal directories.
Click to hide internal directories.