Documentation
¶
Index ¶
- func AddMap(a map[string]string, b map[string]string)
- func CloneMap(m map[string]string) map[string]string
- func ComputeHash256(data []byte) string
- func Contains(list []string, s string) bool
- func FindAvailableDelimiter(s string) string
- func FormatLabels(m map[string]string) string
- func GeneratePassword(stringLength int) (passwd string)
- func GetArchitectureDependentEnvName(name string) string
- func GetEnvByName(name string, envs []corev1.EnvVar) string
- func GetEnvsByRegExp(regExp string) []corev1.EnvVar
- func GetGetArchitectureDependentEnvsByRegExp(regExp string) []corev1.EnvVar
- func GetImageNameAndTag(image string) (string, string)
- func GetMapOrDefault(value map[string]string, defaultValue map[string]string) map[string]string
- func GetPullPolicyFromDockerImage(dockerImage string) string
- func GetValue(value string, defaultValue string) string
- func InNamespaceEventFilter(namespace string) predicate.Predicate
- func IndexEnv(name string, envs []corev1.EnvVar) int
- func MergeMaps(maps []map[string]string) map[string]string
- func ParseMap(src string) map[string]string
- func ReadObjectInto(yamlFile string, obj interface{}) error
- func Remove(list []string, s string) []string
- func Whitelist(hostname string) (value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash256 ¶
func FindAvailableDelimiter ¶
FindAvailableDelimiter returns the first delimiter from a predefined list (comma, pipe, semicolon, colon, hash, tab) that is not present in the given string. This is useful for selecting a safe separator character when joining values that may themselves contain common delimiters. Returns an empty string if all candidate delimiters are already present in the input.
func FormatLabels ¶
Converts label map into plain string
func GeneratePassword ¶
func GetArchitectureDependentEnvName ¶
GetArchitectureDependentEnvName returns environment variable name dependending on architecture by adding "_<ARCHITECTURE>" suffix. If variable is not set then the default will be return.
func GetEnvsByRegExp ¶
func GetImageNameAndTag ¶
GetImageNameAndTag returns the image repository and tag name from the provided image Referenced from https://github.com/che-incubator/chectl/blob/main/src/util.ts
func GetMapOrDefault ¶
func InNamespaceEventFilter ¶
func MergeMaps ¶
MergeMaps merges maps into a single one. If a key is present in multiple maps, the value from the last map is used.
func ReadObjectInto ¶
Types ¶
This section is empty.