utils

package
v0.0.0-...-5a14398 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const K8sLabelWithoutSuffixMaxLength = 62

Variables

This section is empty.

Functions

func CamelCaseToKebabCase

func CamelCaseToKebabCase(str string) string

func Contains

func Contains(slice []string, value string) bool

Contains checks if the given slice of strings contains the given string

func GetToolchainClusterName

func GetToolchainClusterName(clusterType, serverAPIEndpoint, suffix string) (string, error)

GetToolchainClusterName produces a name for ToolchainCluster object that is both deterministic and "reasonably unique". The `suffix` must be non-empty if there are multiple ToolchainCluster objects pointing to the same cluster. This needs to be determined by the caller prior to calling this method.

func KebabToCamelCase

func KebabToCamelCase(kebab string) (camelCase string)

KebabToCamelCase converts kebab case to camel case

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL