Documentation ¶
Index ¶
- func EnsureInitializerAbsent(initializer corev1alpha1.LogicalClusterInitializer, ...) []corev1alpha1.LogicalClusterInitializer
- func EnsureInitializerPresent(initializer corev1alpha1.LogicalClusterInitializer, ...) []corev1alpha1.LogicalClusterInitializer
- func InitializerForReference(wtRef tenancyv1alpha1.WorkspaceTypeReference) corev1alpha1.LogicalClusterInitializer
- func InitializerForType(wt *tenancyv1alpha1.WorkspaceType) corev1alpha1.LogicalClusterInitializer
- func InitializerPresent(initializer corev1alpha1.LogicalClusterInitializer, ...) bool
- func InitializerToLabel(initializer corev1alpha1.LogicalClusterInitializer) (string, string)
- func TypeFrom(initializer corev1alpha1.LogicalClusterInitializer) (logicalcluster.Name, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureInitializerAbsent ¶
func EnsureInitializerAbsent(initializer corev1alpha1.LogicalClusterInitializer, initializers []corev1alpha1.LogicalClusterInitializer) []corev1alpha1.LogicalClusterInitializer
func EnsureInitializerPresent ¶
func EnsureInitializerPresent(initializer corev1alpha1.LogicalClusterInitializer, initializers []corev1alpha1.LogicalClusterInitializer) []corev1alpha1.LogicalClusterInitializer
func InitializerForReference ¶
func InitializerForReference(wtRef tenancyv1alpha1.WorkspaceTypeReference) corev1alpha1.LogicalClusterInitializer
InitializerForReference determines the identifier for the implicit initializer associated with the WorkspaceType referred to with the reference.
func InitializerForType ¶
func InitializerForType(wt *tenancyv1alpha1.WorkspaceType) corev1alpha1.LogicalClusterInitializer
InitializerForType determines the identifier for the implicit initializer associated with the WorkspaceType.
func InitializerPresent ¶
func InitializerPresent(initializer corev1alpha1.LogicalClusterInitializer, initializers []corev1alpha1.LogicalClusterInitializer) bool
func InitializerToLabel ¶
func InitializerToLabel(initializer corev1alpha1.LogicalClusterInitializer) (string, string)
InitializerToLabel transforms an initializer into a key-value pair to add to a label set. We use a hash to create a unique identifier from this information, prefixing the hash in order to create a value which is unlikely to collide, and adding the full hash as a value in order to make it difficult to forge the pair.
func TypeFrom ¶
func TypeFrom(initializer corev1alpha1.LogicalClusterInitializer) (logicalcluster.Name, string, error)
TypeFrom determines the WorkspaceType workspace and name from an initializer name.
Types ¶
This section is empty.