utils

package
v0.0.0-...-0227cab Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisPasswordSecretKey = "password"

	// storage
	StorageProvisionerKey = "volume.beta.kubernetes.io/storage-provisioner"
	TopoLVMProvisionerKey = "topolvm.cybozu.com"
)
View Source
const (
	InstanceTypeLabel = "middleware.instance/type"
	InstanceNameLabel = "middleware.instance/name"

	RedisFailoverType = "redis-failover"
	RedisClusterType  = "distributed-redis-cluster"
)
View Source
const (
	RedisBaseName = "redis"
)

Variables

This section is empty.

Functions

func GenerateRedisSecretName

func GenerateRedisSecretName(instanceName string) string

func GetRedisClusterLabels

func GetRedisClusterLabels(instanceName, clusterName string) map[string]string

func GetRedisClusterName

func GetRedisClusterName(instanceName string) string

func GetRedisFailoverName

func GetRedisFailoverName(instanceName string) string

func GetRedisRdsLabels

func GetRedisRdsLabels(instanceName string) map[string]string

func GetRedisSentinelLabels

func GetRedisSentinelLabels(instanceName, failoverName string) map[string]string

func GetRedisStorageVolumeName

func GetRedisStorageVolumeName(instanceName string) string

func MergeLabels

func MergeLabels(vals ...map[string]string) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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