Documentation ¶
Index ¶
- func AppendConfigMapFromSourceIfMissing(envFroms []corev1.EnvFromSource, envFrom corev1.EnvFromSource) []corev1.EnvFromSource
- func AppendContainerIfMissing(containers []corev1.Container, container corev1.Container) []corev1.Container
- func AppendEnvIfMissing(envs []corev1.EnvVar, env corev1.EnvVar) []corev1.EnvVar
- func AppendEnvIfMissingOverrideIfPresent(envs []corev1.EnvVar, env corev1.EnvVar) []corev1.EnvVar
- func AppendImagePullSecretIfMissing(imagePullSecrets []corev1.LocalObjectReference, ...) []corev1.LocalObjectReference
- func AppendPullSecretIfMissing(pullSecrets []corev1.LocalObjectReference, pullSecret string) []corev1.LocalObjectReference
- func AppendStringIfMissing(array []string, newEle string) []string
- func AppendVolumeIfMissing(volumes []corev1.Volume, volume corev1.Volume) []corev1.Volume
- func AppendVolumeMountIfMissing(volumeMounts []corev1.VolumeMount, volumeMount corev1.VolumeMount) []corev1.VolumeMount
- func AppendVolumeMountWithSubPathIfMissing(volumeMounts []corev1.VolumeMount, volumeMount corev1.VolumeMount) []corev1.VolumeMount
- func Base64ToBytes(base64str string) ([]byte, error)
- func BytesToBase64(b []byte) string
- func CheckIfZoneOrRegionUpdated(oldValue string, newValue string) bool
- func ContainsValue(find string, in []string) bool
- func ConvertSpec(in interface{}, out interface{}) error
- func ConvertToJsonMessage(in interface{}) (*json.RawMessage, error)
- func ConvertYamlFileToJson(file string) ([]byte, error)
- func EnsureDir(dirName string) error
- func EnvExists(envs []corev1.EnvVar, key string) bool
- func FileExists(path string) bool
- func FileToBytes(file string) ([]byte, error)
- func FindStringInArray(str string, slice []string) bool
- func GenerateRandomString(length int) string
- func GetCRDFromFile(file string) (*extv1.CustomResourceDefinition, error)
- func GetCertificateFromPEMBytes(bytes []byte) (*x509.Certificate, error)
- func GetClusterRoleBindingFromFile(file string) (*rbacv1.ClusterRoleBinding, error)
- func GetClusterRoleFromFile(file string) (*rbacv1.ClusterRole, error)
- func GetConfigMapFromFile(file string) (*corev1.ConfigMap, error)
- func GetContainerFromFile(file string) (*corev1.Container, error)
- func GetDeploymentFromFile(file string) (*appsv1.Deployment, error)
- func GetEnvValue(envs []corev1.EnvVar, key string) string
- func GetIngressFromFile(file string) (*networkingv1.Ingress, error)
- func GetIngressv1beta1FromFile(file string) (*networkingv1beta1.Ingress, error)
- func GetNetworkPolicyFromFile(file string) (*networkingv1.NetworkPolicy, error)
- func GetPVCFromFile(file string) (*corev1.PersistentVolumeClaim, error)
- func GetPodFromFile(file string) (*corev1.Pod, error)
- func GetRegion(client Client) string
- func GetResourcePatch(current, new *corev1.ResourceRequirements) (*corev1.ResourceRequirements, error)
- func GetResourceVerFromSecret(client Client, name, namespace string) (string, error)
- func GetRoleBindingFromFile(file string) (*rbacv1.RoleBinding, error)
- func GetRoleFromFile(file string) (*rbacv1.Role, error)
- func GetRouteFromFile(file string) (*routev1.Route, error)
- func GetSecretFromFile(file string) (*corev1.Secret, error)
- func GetServerVersion() (*version.Info, error)
- func GetServiceAccountFromFile(file string) (*corev1.ServiceAccount, error)
- func GetServiceFromFile(file string) (*corev1.Service, error)
- func GetZone(client Client) string
- func HealthCheck(healthURL string, cert []byte, timeout time.Duration) error
- func IgnoreAlreadyExistError(err error) error
- func IgnoreOutdatedResourceVersion(err error) error
- func IntermediateSecretExists(client Client, namespace, secretName string) bool
- func IsSecretEcert(secretName string) bool
- func IsSecretTLSCert(secretName string) bool
- func IsTCPReachable(url string) bool
- func JoinMaps(m1, m2 map[string][]byte) map[string][]byte
- func PemStringToBytes(pem string) []byte
- func ReplaceEnvIfDiff(envs []corev1.EnvVar, key, replace string) ([]corev1.EnvVar, bool)
- func SelectRandomValue(values []string) string
- func UpdateEnvVar(name string, value string, envs []corev1.EnvVar) []corev1.EnvVar
- func ValidateHSMProxyURL(endpoint string) error
- func ValidateRegion(client Client, requestedRegion string) error
- func ValidateZone(client Client, requestedZone string) error
- func ValidationChecks(typedata metav1.TypeMeta, metadata metav1.ObjectMeta, expectedKind string, ...) error
- func WriteFile(file string, buf []byte, perm os.FileMode) error
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendConfigMapFromSourceIfMissing ¶
func AppendConfigMapFromSourceIfMissing(envFroms []corev1.EnvFromSource, envFrom corev1.EnvFromSource) []corev1.EnvFromSource
func AppendEnvIfMissing ¶
func AppendImagePullSecretIfMissing ¶
func AppendImagePullSecretIfMissing(imagePullSecrets []corev1.LocalObjectReference, imagePullSecret corev1.LocalObjectReference) []corev1.LocalObjectReference
func AppendPullSecretIfMissing ¶
func AppendPullSecretIfMissing(pullSecrets []corev1.LocalObjectReference, pullSecret string) []corev1.LocalObjectReference
func AppendStringIfMissing ¶
func AppendVolumeIfMissing ¶
func AppendVolumeMountIfMissing ¶
func AppendVolumeMountIfMissing(volumeMounts []corev1.VolumeMount, volumeMount corev1.VolumeMount) []corev1.VolumeMount
func AppendVolumeMountWithSubPathIfMissing ¶
func AppendVolumeMountWithSubPathIfMissing(volumeMounts []corev1.VolumeMount, volumeMount corev1.VolumeMount) []corev1.VolumeMount
func Base64ToBytes ¶
func BytesToBase64 ¶
func ContainsValue ¶
func ConvertSpec ¶
func ConvertSpec(in interface{}, out interface{}) error
func ConvertToJsonMessage ¶
func ConvertToJsonMessage(in interface{}) (*json.RawMessage, error)
func ConvertYamlFileToJson ¶
func FileExists ¶
func FileToBytes ¶
func FindStringInArray ¶
func GenerateRandomString ¶
func GetCRDFromFile ¶
func GetCRDFromFile(file string) (*extv1.CustomResourceDefinition, error)
func GetCertificateFromPEMBytes ¶
func GetCertificateFromPEMBytes(bytes []byte) (*x509.Certificate, error)
func GetClusterRoleBindingFromFile ¶
func GetClusterRoleBindingFromFile(file string) (*rbacv1.ClusterRoleBinding, error)
func GetClusterRoleFromFile ¶
func GetClusterRoleFromFile(file string) (*rbacv1.ClusterRole, error)
func GetDeploymentFromFile ¶
func GetDeploymentFromFile(file string) (*appsv1.Deployment, error)
func GetIngressFromFile ¶
func GetIngressFromFile(file string) (*networkingv1.Ingress, error)
func GetIngressv1beta1FromFile ¶
func GetIngressv1beta1FromFile(file string) (*networkingv1beta1.Ingress, error)
func GetNetworkPolicyFromFile ¶
func GetNetworkPolicyFromFile(file string) (*networkingv1.NetworkPolicy, error)
func GetPVCFromFile ¶
func GetPVCFromFile(file string) (*corev1.PersistentVolumeClaim, error)
func GetResourcePatch ¶
func GetResourcePatch(current, new *corev1.ResourceRequirements) (*corev1.ResourceRequirements, error)
func GetRoleBindingFromFile ¶
func GetRoleBindingFromFile(file string) (*rbacv1.RoleBinding, error)
func GetServerVersion ¶
func GetServiceAccountFromFile ¶
func GetServiceAccountFromFile(file string) (*corev1.ServiceAccount, error)
func HealthCheck ¶
func HealthCheck(caURL *url.URL, cert []byte) error {
func IgnoreAlreadyExistError ¶
func IgnoreOutdatedResourceVersion ¶
Ignore benign error
func IsSecretEcert ¶
func IsSecretTLSCert ¶
func IsTCPReachable ¶
func PemStringToBytes ¶
func ReplaceEnvIfDiff ¶
func SelectRandomValue ¶
func UpdateEnvVar ¶
func ValidateHSMProxyURL ¶
func ValidateRegion ¶
func ValidateZone ¶
func ValidationChecks ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
* Copyright contributors to the Hyperledger Fabric Operator project * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright contributors to the Hyperledger Fabric Operator project * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
Click to show internal directories.
Click to hide internal directories.