Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterResourceSet ¶
type ClusterResourceSet 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(*things_test_io_v1.ClusterResource) bool) []*things_test_io_v1.ClusterResource // Return the Set as a map of key to resource. Map() map[string]*things_test_io_v1.ClusterResource // Insert a resource into the set. Insert(clusterResource ...*things_test_io_v1.ClusterResource) // Compare the equality of the keys in two sets (not the resources themselves) Equal(clusterResourceSet ClusterResourceSet) bool // Check if the set contains a key matching the resource (not the resource itself) Has(clusterResource ezkube.ResourceId) bool // Delete the key matching the resource Delete(clusterResource ezkube.ResourceId) // Return the union with the provided set Union(set ClusterResourceSet) ClusterResourceSet // Return the difference with the provided set Difference(set ClusterResourceSet) ClusterResourceSet // Return the intersection with the provided set Intersection(set ClusterResourceSet) ClusterResourceSet // Find the resource with the given ID Find(id ezkube.ResourceId) (*things_test_io_v1.ClusterResource, error) // Get the length of the set Length() int }
func NewClusterResourceSet ¶
func NewClusterResourceSet(clusterResourceList ...*things_test_io_v1.ClusterResource) ClusterResourceSet
func NewClusterResourceSetFromList ¶
func NewClusterResourceSetFromList(clusterResourceList *things_test_io_v1.ClusterResourceList) ClusterResourceSet
type PaintSet ¶
type PaintSet 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(*things_test_io_v1.Paint) bool) []*things_test_io_v1.Paint // Return the Set as a map of key to resource. Map() map[string]*things_test_io_v1.Paint // Insert a resource into the set. Insert(paint ...*things_test_io_v1.Paint) // Compare the equality of the keys in two sets (not the resources themselves) Equal(paintSet PaintSet) bool // Check if the set contains a key matching the resource (not the resource itself) Has(paint ezkube.ResourceId) bool // Delete the key matching the resource Delete(paint ezkube.ResourceId) // Return the union with the provided set Union(set PaintSet) PaintSet // Return the difference with the provided set Difference(set PaintSet) PaintSet // Return the intersection with the provided set Intersection(set PaintSet) PaintSet // Find the resource with the given ID Find(id ezkube.ResourceId) (*things_test_io_v1.Paint, error) // Get the length of the set Length() int }
func NewPaintSet ¶
func NewPaintSet(paintList ...*things_test_io_v1.Paint) PaintSet
func NewPaintSetFromList ¶
func NewPaintSetFromList(paintList *things_test_io_v1.PaintList) PaintSet
Click to show internal directories.
Click to hide internal directories.