shared

package
v0.0.0-...-d1d8335 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvOverride

func EnvOverride(dst, src []corev1.EnvVar) []corev1.EnvVar

EnvOverride replaces or appends the provided EnvVar to the collection

func EnvVarCheck

func EnvVarCheck(dst, src []corev1.EnvVar) bool

EnvVarCheck checks whether the src and dst []EnvVar have the same values

func EnvVarSet

func EnvVarSet(env corev1.EnvVar, envList []corev1.EnvVar) bool

func Find

func Find(slice []string, val string) (int, bool)

func GenerateKeystore

func GenerateKeystore(commonName string, password []byte) ([]byte, error)

GenerateKeystore returns a Java Keystore with a self-signed certificate

func GeneratePassword

func GeneratePassword(length int) []byte

GeneratePassword returns an alphanumeric password of the length provided

func GenerateTruststore

func GenerateTruststore(caBundle []byte) ([]byte, error)

GenerateTruststore returns a Java Truststore with a Trusted CA bundle

func GeneratedPimPwdMd5

func GeneratedPimPwdMd5(username string, password string) string

GeneratedPimPwdMd5 to mask the process instance password

func GetEnvVar

func GetEnvVar(envName string, env []corev1.EnvVar) int

GetEnvVar returns the position of the EnvVar found by name

func GetNamespacedName

func GetNamespacedName(object metav1.Object) types.NamespacedName

func IsValidKeyStore

func IsValidKeyStore(keystoreCN string, keyStorePassword, keyStoreData []byte) (bool, error)

func IsValidKeyStoreSecret

func IsValidKeyStoreSecret(secret corev1.Secret, keystoreCN string, keyStorePassword []byte) (bool, error)

func IsValidTruststore

func IsValidTruststore(caBundle, keyStoreData []byte) (bool, error)

func IsValidTruststoreSecret

func IsValidTruststoreSecret(secret corev1.Secret, caBundle []byte) (bool, error)

func ValidateRouteHostname

func ValidateRouteHostname(r string) field.ErrorList

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.

Jump to

Keyboard shortcuts

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