util

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeatureStatusEnabled  = "enabled"
	FeatureStatusDisabled = "disabled"
)
View Source
const (
	OneDaySeconds = 24 * 60 * 60
)

Variables

This section is empty.

Functions

func GetBackupConfig

func GetBackupConfig(cluster *kstonev1alpha1.EtcdCluster) (*backup.Config, error)

func IncrFailedInspectionCounter

func IncrFailedInspectionCounter(clusterName string, featureName kstonev1alpha1.KStoneFeature)

func IsFeatureGateEnabled

func IsFeatureGateEnabled(annotations map[string]string, name kstonev1alpha1.KStoneFeature) bool

Types

type ConsistencyType

type ConsistencyType string
const (
	ConsistencyKeyTotal             ConsistencyType = "keyTotal"
	ConsistencyRevision             ConsistencyType = "revision"
	ConsistencyIndex                ConsistencyType = "index"
	ConsistencyRaftRaftAppliedIndex ConsistencyType = "raftAppliedIndex"
	ConsistencyRaftIndex            ConsistencyType = "raftIndex"
)

Jump to

Keyboard shortcuts

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