Documentation ¶
Index ¶
Constants ¶
View Source
const ( AnnotationAsyncTaskTransfer = "xstore/async/transfer" AnnotationAsyncTaskBackup = "xstore/async/backup" )
Annotations for async tasks.
View Source
const ( LabelName = "xstore/name" LabelRand = "xstore/rand" LabelRole = "xstore/role" LabelPod = "xstore/pod" LabelNodeRole = "xstore/node-role" LabelServiceType = "xstore/service" LabelNodeSet = "xstore/node-set" LabelGeneration = "xstore/generation" LabelPortLock = "xstore/port-lock" )
View Source
const ( RoleLeader = "leader" RoleFollower = "follower" RoleCandidate = "candidate" // Only appears in voting progress RoleLogger = "logger" RoleLearner = "learner" )
Valid roles
View Source
const ( ServiceTypeReadWrite = "readwrite" ServiceTypeReadOnly = "readonly" ServiceTypeMetrics = "metrics" ServiceTypeHeadless = "headless" )
Valid service types.
View Source
const (
AnnotationBlkioResourceLimit = "xstore/blkio"
)
View Source
const AnnotationControllerHints = "xstore/controller.hints"
View Source
const (
AnnotationGuideRand = "xstore/guide.rand"
)
AnnotationGuideRand for guiding rand generation.
View Source
const Finalizer = "xstore/finalizer"
View Source
const (
HintForbidden = "forbidden"
)
Variables ¶
This section is empty.
Functions ¶
func IsPodRoleCandidate ¶
func IsPodRoleLearner ¶
func IsPodRoleVoter ¶
func IsRoleFollower ¶
func IsRoleLeader ¶
func PodRole2DefaultRole ¶
func PodRole2DefaultRole(nodeRole polardbxv1xstore.NodeRole) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.