Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitConfigSet ¶
type RateLimitConfigSet 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(*ratelimit_solo_io_v1alpha1.RateLimitConfig) bool) []*ratelimit_solo_io_v1alpha1.RateLimitConfig // Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list. UnsortedList(filterResource ...func(*ratelimit_solo_io_v1alpha1.RateLimitConfig) bool) []*ratelimit_solo_io_v1alpha1.RateLimitConfig // Return the Set as a map of key to resource. Map() map[string]*ratelimit_solo_io_v1alpha1.RateLimitConfig // Insert a resource into the set. Insert(rateLimitConfig ...*ratelimit_solo_io_v1alpha1.RateLimitConfig) // Compare the equality of the keys in two sets (not the resources themselves) Equal(rateLimitConfigSet RateLimitConfigSet) bool // Check if the set contains a key matching the resource (not the resource itself) Has(rateLimitConfig ezkube.ResourceId) bool // Delete the key matching the resource Delete(rateLimitConfig ezkube.ResourceId) // Return the union with the provided set Union(set RateLimitConfigSet) RateLimitConfigSet // Return the difference with the provided set Difference(set RateLimitConfigSet) RateLimitConfigSet // Return the intersection with the provided set Intersection(set RateLimitConfigSet) RateLimitConfigSet // Find the resource with the given ID Find(id ezkube.ResourceId) (*ratelimit_solo_io_v1alpha1.RateLimitConfig, 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 RateLimitConfigSet Delta(newSet RateLimitConfigSet) sksets.ResourceDelta // Create a deep copy of the current RateLimitConfigSet Clone() RateLimitConfigSet }
func NewRateLimitConfigSet ¶
func NewRateLimitConfigSet(rateLimitConfigList ...*ratelimit_solo_io_v1alpha1.RateLimitConfig) RateLimitConfigSet
func NewRateLimitConfigSetFromList ¶
func NewRateLimitConfigSetFromList(rateLimitConfigList *ratelimit_solo_io_v1alpha1.RateLimitConfigList) RateLimitConfigSet
Click to show internal directories.
Click to hide internal directories.