Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrafficSplitSet ¶
type TrafficSplitSet 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(*split_smi_spec_io_v1alpha3.TrafficSplit) bool) []*split_smi_spec_io_v1alpha3.TrafficSplit
// Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list.
UnsortedList(filterResource ...func(*split_smi_spec_io_v1alpha3.TrafficSplit) bool) []*split_smi_spec_io_v1alpha3.TrafficSplit
// Return the Set as a map of key to resource.
Map() map[string]*split_smi_spec_io_v1alpha3.TrafficSplit
// Insert a resource into the set.
Insert(trafficSplit ...*split_smi_spec_io_v1alpha3.TrafficSplit)
// Compare the equality of the keys in two sets (not the resources themselves)
Equal(trafficSplitSet TrafficSplitSet) bool
// Check if the set contains a key matching the resource (not the resource itself)
Has(trafficSplit ezkube.ResourceId) bool
// Delete the key matching the resource
Delete(trafficSplit ezkube.ResourceId)
// Return the union with the provided set
Union(set TrafficSplitSet) TrafficSplitSet
// Return the difference with the provided set
Difference(set TrafficSplitSet) TrafficSplitSet
// Return the intersection with the provided set
Intersection(set TrafficSplitSet) TrafficSplitSet
// Find the resource with the given ID
Find(id ezkube.ResourceId) (*split_smi_spec_io_v1alpha3.TrafficSplit, error)
// Get the length of the set
Length() int
// returns the generic implementation of the set
Generic() sksets.ResourceSet
// returns the delta between this and and another TrafficSplitSet
Delta(newSet TrafficSplitSet) sksets.ResourceDelta
// Create a deep copy of the current TrafficSplitSet
Clone() TrafficSplitSet
}
func NewTrafficSplitSet ¶
func NewTrafficSplitSet(trafficSplitList ...*split_smi_spec_io_v1alpha3.TrafficSplit) TrafficSplitSet
func NewTrafficSplitSetFromList ¶
func NewTrafficSplitSetFromList(trafficSplitList *split_smi_spec_io_v1alpha3.TrafficSplitList) TrafficSplitSet
Click to show internal directories.
Click to hide internal directories.