Documentation ¶
Index ¶
- func EnvOverride(dst, src []corev1.EnvVar) []corev1.EnvVar
- func EnvVarCheck(dst, src []corev1.EnvVar) bool
- func EnvVarSet(env corev1.EnvVar, envList []corev1.EnvVar) bool
- func Find(slice []string, val string) (int, bool)
- func GenerateKeystore(commonName string, password []byte) ([]byte, error)
- func GeneratePassword(length int) []byte
- func GenerateTruststore(caBundle []byte) ([]byte, error)
- func GeneratedPimPwdMd5(username string, password string) string
- func GetEnvVar(envName string, env []corev1.EnvVar) int
- func GetNamespacedName(object metav1.Object) types.NamespacedName
- func IsValidKeyStore(keystoreCN string, keyStorePassword, keyStoreData []byte) (bool, error)
- func IsValidKeyStoreSecret(secret corev1.Secret, keystoreCN string, keyStorePassword []byte) (bool, error)
- func IsValidTruststore(caBundle, keyStoreData []byte) (bool, error)
- func IsValidTruststoreSecret(secret corev1.Secret, caBundle []byte) (bool, error)
- func ValidateRouteHostname(r string) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvOverride ¶
EnvOverride replaces or appends the provided EnvVar to the collection
func EnvVarCheck ¶
EnvVarCheck checks whether the src and dst []EnvVar have the same values
func GenerateKeystore ¶
GenerateKeystore returns a Java Keystore with a self-signed certificate
func GeneratePassword ¶
GeneratePassword returns an alphanumeric password of the length provided
func GenerateTruststore ¶
GenerateTruststore returns a Java Truststore with a Trusted CA bundle
func GeneratedPimPwdMd5 ¶
GeneratedPimPwdMd5 to mask the process instance password
func GetNamespacedName ¶
func GetNamespacedName(object metav1.Object) types.NamespacedName
func IsValidKeyStore ¶
func IsValidKeyStoreSecret ¶
func IsValidTruststore ¶
func IsValidTruststoreSecret ¶
func ValidateRouteHostname ¶
ValidateRouteHostname validates the hostname provided by the user see: https://github.com/openshift/router/blob/release-4.6/pkg/router/controller/unique_host.go#L231
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.