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 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 GetMap(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 IsK8SResourceServed(discoveryClient discovery.DiscoveryInterface, resourceName string) bool
- 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 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 InNamespaceEventFilter ¶
func IsK8SResourceServed ¶
func IsK8SResourceServed(discoveryClient discovery.DiscoveryInterface, resourceName string) bool
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.
Click to show internal directories.
Click to hide internal directories.