Documentation ¶
Index ¶
- func EnsureInitializerAbsent(initializer tenancyv1alpha1.ClusterWorkspaceInitializer, ...) []tenancyv1alpha1.ClusterWorkspaceInitializer
- func EnsureInitializerPresent(initializer tenancyv1alpha1.ClusterWorkspaceInitializer, ...) []tenancyv1alpha1.ClusterWorkspaceInitializer
- func InitializerForReference(cwtr tenancyv1alpha1.ClusterWorkspaceTypeReference) tenancyv1alpha1.ClusterWorkspaceInitializer
- func InitializerForType(cwt *tenancyv1alpha1.ClusterWorkspaceType) tenancyv1alpha1.ClusterWorkspaceInitializer
- func InitializerPresent(initializer tenancyv1alpha1.ClusterWorkspaceInitializer, ...) bool
- func InitializerToLabel(initializer tenancyv1alpha1.ClusterWorkspaceInitializer) (string, string)
- func TypeFrom(initializer tenancyv1alpha1.ClusterWorkspaceInitializer) (logicalcluster.Name, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureInitializerAbsent ¶
func EnsureInitializerAbsent(initializer tenancyv1alpha1.ClusterWorkspaceInitializer, initializers []tenancyv1alpha1.ClusterWorkspaceInitializer) []tenancyv1alpha1.ClusterWorkspaceInitializer
func EnsureInitializerPresent ¶
func EnsureInitializerPresent(initializer tenancyv1alpha1.ClusterWorkspaceInitializer, initializers []tenancyv1alpha1.ClusterWorkspaceInitializer) []tenancyv1alpha1.ClusterWorkspaceInitializer
func InitializerForReference ¶
func InitializerForReference(cwtr tenancyv1alpha1.ClusterWorkspaceTypeReference) tenancyv1alpha1.ClusterWorkspaceInitializer
InitializerForReference determines the identifier for the implicit initializer associated with the ClusterWorkspaceType referred to with the reference.
func InitializerForType ¶
func InitializerForType(cwt *tenancyv1alpha1.ClusterWorkspaceType) tenancyv1alpha1.ClusterWorkspaceInitializer
InitializerForType determines the identifier for the implicit initializer associated with the ClusterWorkspaceType.
func InitializerPresent ¶
func InitializerPresent(initializer tenancyv1alpha1.ClusterWorkspaceInitializer, initializers []tenancyv1alpha1.ClusterWorkspaceInitializer) bool
func InitializerToLabel ¶
func InitializerToLabel(initializer tenancyv1alpha1.ClusterWorkspaceInitializer) (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 tenancyv1alpha1.ClusterWorkspaceInitializer) (logicalcluster.Name, string, error)
TypeFrom determines the ClusterWorkspaceType workspace and name from an initializer name.
Types ¶
This section is empty.