Documentation ¶
Index ¶
- func BuildOwnerReferences(obj client.Object) (refs []metav1.OwnerReference)
- func BuildOwnerReferencesWithParents(obj client.Object) (refs []metav1.OwnerReference)
- func CheckRule(aclRules string) error
- func CheckUserRuleUpdate(ruleSource string) error
- func ConvertMemoryUnit(p string) (string, error)
- func GenerateObjectSig(data interface{}, salt string) (string, error)
- func GenerateRedisRandPassword() string
- func GenerateRedisRebuildAnnotation() map[string]string
- func GetClaimName(backupDestination string) string
- func GetContainerByName(pod *corev1.PodSpec, name string) *corev1.Container
- func GetPullPolicy(policies ...corev1.PullPolicy) corev1.PullPolicy
- func GetServicePortByName(svc *corev1.Service, name string) *corev1.ServicePort
- func GetVolumeByName(vols []corev1.Volume, name string) *corev1.Volume
- func GetVolumeClaimTemplatesByName(vols []corev1.PersistentVolumeClaim, name string) *corev1.PersistentVolumeClaim
- func LoadCertConfigFromSecret(secret *corev1.Secret) (*tls.Config, error)
- func ObjectKey(namespace, name string) client.ObjectKey
- func ParsePodIndex(name string) (index int, err error)
- func ParseRedisMemConf(p string) (string, error)
- func RetryOnTimeout(f func() error, step int) error
- func UnifyValueUnit(v string) string
- type AuthConfig
- type SignaturableObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOwnerReferences ¶
func BuildOwnerReferences(obj client.Object) (refs []metav1.OwnerReference)
func BuildOwnerReferencesWithParents ¶
func BuildOwnerReferencesWithParents(obj client.Object) (refs []metav1.OwnerReference)
func CheckUserRuleUpdate ¶
func GenerateObjectSig ¶
func GenerateRedisRandPassword ¶
func GenerateRedisRandPassword() string
func GetClaimName ¶
split storage name, example: pvc/redisfailover-persistent-keep-data-rfr-redis-sentinel-demo-0
func GetContainerByName ¶
GetContainerByName
func GetPullPolicy ¶
func GetPullPolicy(policies ...corev1.PullPolicy) corev1.PullPolicy
func GetServicePortByName ¶
func GetServicePortByName(svc *corev1.Service, name string) *corev1.ServicePort
func GetVolumeByName ¶
GetVolumes
func GetVolumeClaimTemplatesByName ¶
func GetVolumeClaimTemplatesByName(vols []corev1.PersistentVolumeClaim, name string) *corev1.PersistentVolumeClaim
GetVolumeClaimTemplatesByName
func ParsePodIndex ¶
func ParseRedisMemConf ¶
func RetryOnTimeout ¶
func UnifyValueUnit ¶
UnifyValueUnit value convert, not care the config itself
Types ¶
type AuthConfig ¶
type SignaturableObject ¶
Click to show internal directories.
Click to hide internal directories.