Documentation
¶
Index ¶
- func TerminatorForType(wt *tenancyv1alpha1.WorkspaceType) corev1alpha1.LogicalClusterTerminator
- func TerminatorToLabel(terminator corev1alpha1.LogicalClusterTerminator) (string, string)
- func TerminatorsToStrings(terminator []corev1alpha1.LogicalClusterTerminator) []string
- func TypeFrom(terminator corev1alpha1.LogicalClusterTerminator) (logicalcluster.Name, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TerminatorForType ¶
func TerminatorForType(wt *tenancyv1alpha1.WorkspaceType) corev1alpha1.LogicalClusterTerminator
TerminatorForType determines the identifier for the implicit terminator associated with the WorkspaceType.
func TerminatorToLabel ¶
func TerminatorToLabel(terminator corev1alpha1.LogicalClusterTerminator) (string, string)
TerminatorToLabel transforms a terminator 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 TerminatorsToStrings ¶
func TerminatorsToStrings(terminator []corev1alpha1.LogicalClusterTerminator) []string
TerminatorsToStrings converts a list of terminators into a list of strings.
func TypeFrom ¶
func TypeFrom(terminator corev1alpha1.LogicalClusterTerminator) (logicalcluster.Name, string, error)
TypeFrom determines the WorkspaceType workspace and name from an terminator name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.