Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomResourceDefinitionSet ¶
type CustomResourceDefinitionSet 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(*apiextensions_k8s_io_v1beta1.CustomResourceDefinition) bool) []*apiextensions_k8s_io_v1beta1.CustomResourceDefinition // Return the Set as a map of key to resource. Map() map[string]*apiextensions_k8s_io_v1beta1.CustomResourceDefinition // Insert a resource into the set. Insert(customResourceDefinition ...*apiextensions_k8s_io_v1beta1.CustomResourceDefinition) // Compare the equality of the keys in two sets (not the resources themselves) Equal(customResourceDefinitionSet CustomResourceDefinitionSet) bool // Check if the set contains a key matching the resource (not the resource itself) Has(customResourceDefinition ezkube.ResourceId) bool // Delete the key matching the resource Delete(customResourceDefinition ezkube.ResourceId) // Return the union with the provided set Union(set CustomResourceDefinitionSet) CustomResourceDefinitionSet // Return the difference with the provided set Difference(set CustomResourceDefinitionSet) CustomResourceDefinitionSet // Return the intersection with the provided set Intersection(set CustomResourceDefinitionSet) CustomResourceDefinitionSet // Find the resource with the given ID Find(id ezkube.ResourceId) (*apiextensions_k8s_io_v1beta1.CustomResourceDefinition, error) // Get the length of the set Length() int }
func NewCustomResourceDefinitionSet ¶
func NewCustomResourceDefinitionSet(customResourceDefinitionList ...*apiextensions_k8s_io_v1beta1.CustomResourceDefinition) CustomResourceDefinitionSet
func NewCustomResourceDefinitionSetFromList ¶
func NewCustomResourceDefinitionSetFromList(customResourceDefinitionList *apiextensions_k8s_io_v1beta1.CustomResourceDefinitionList) CustomResourceDefinitionSet
Click to show internal directories.
Click to hide internal directories.