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