util

package
v0.0.0-...-11a0874 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseName               = "redis"
	SentinelName           = "-sentinel"
	ProxyName              = "proxy"
	ProxyNodeportName      = "proxyn"
	SentinelRoleName       = "sentinel"
	ProxyRoleName          = "redis-proxy"
	SentinelConfigFileName = "sentinel.conf"
	ProxyConfigFileName    = "proxy.conf"
	RedisConfigFileName    = "redis.conf"
	RedisName              = "-redisdb"
	RedisShutdownName      = "r-s"
	RedisRoleName          = "redis"
	AppLabel               = "redis-failover"
	HostnameTopologyKey    = "kubernetes.io/hostname"
)

Variables

This section is empty.

Functions

func GenerateName

func GenerateName(typeName, metaName string) string

func GenerateProxyName

func GenerateProxyName(typeName, metaName string) string

func GetRedisName

func GetRedisName(rf *v1alpha1.RedisFailover) string

func GetRedisNodePortSvc

func GetRedisNodePortSvc(rf *v1alpha1.RedisFailover) string

func GetRedisProxyName

func GetRedisProxyName(rp *v1alpha1.RedisProxy) string

func GetRedisProxyNodePortName

func GetRedisProxyNodePortName(rp *v1alpha1.RedisProxy) string

func GetRedisSecretName

func GetRedisSecretName(rf *v1alpha1.RedisFailover) string

func GetRedisShutdownConfigMapName

func GetRedisShutdownConfigMapName(rf *v1alpha1.RedisFailover) string

func GetRedisShutdownName

func GetRedisShutdownName(rf *v1alpha1.RedisFailover) string

func GetSentinelHeadlessSvc

func GetSentinelHeadlessSvc(rf *v1alpha1.RedisFailover) string

func GetSentinelName

func GetSentinelName(rf *v1alpha1.RedisFailover) string

func GetSentinelReadinessConfigmap

func GetSentinelReadinessConfigmap(rf *v1alpha1.RedisFailover) string

func MergeMap

func MergeMap(a_map ...map[string]string) map[string]string

MergeLabels merges all the label maps received as argument into a single new label map.

func ParseRedisMemConf

func ParseRedisMemConf(p string) (string, error)

Types

type AuthConfig

type AuthConfig struct {
	Password string
}

Jump to

Keyboard shortcuts

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