Documentation
¶
Index ¶
- func LoadValkeyReplication(ctx context.Context, client clientset.ClientSet, inst types.FailoverInstance, ...) (types.Replication, error)
- func NewValkeyReplication(ctx context.Context, client clientset.ClientSet, inst types.FailoverInstance, ...) (types.Replication, error)
- type Failover
- func (s *Failover) Arch() core.Arch
- func (s *Failover) Definition() *v1alpha1.Failover
- func (s *Failover) IsACLAppliedToAll() bool
- func (s *Failover) IsACLUserExists() bool
- func (s *Failover) IsBindedSentinel() bool
- func (s *Failover) IsInService() bool
- func (s *Failover) IsReady() bool
- func (s *Failover) IsResourceFullfilled(ctx context.Context) (bool, error)
- func (c *Failover) IsStandalone() bool
- func (c *Failover) Issuer() *certmetav1.ObjectReference
- func (s *Failover) LoadUsers(ctx context.Context)
- func (c *Failover) Logger() logr.Logger
- func (s *Failover) Masters() []types.ValkeyNode
- func (s *Failover) Monitor() types.FailoverMonitor
- func (s *Failover) NamespacedName() client.ObjectKey
- func (s *Failover) Nodes() []types.ValkeyNode
- func (s *Failover) RawNodes(ctx context.Context) ([]corev1.Pod, error)
- func (s *Failover) Refresh(ctx context.Context) (err error)
- func (s *Failover) Restart(ctx context.Context, annotationKeyVal ...string) error
- func (s *Failover) Selector() map[string]string
- func (c *Failover) SendEventf(eventtype, reason, messageFmt string, args ...any)
- func (s *Failover) TLSConfig() *tls.Config
- func (s *Failover) UpdateStatus(ctx context.Context, st types.InstanceStatus, msg string) error
- func (s *Failover) Users() (us types.Users)
- func (s *Failover) Version() version.ValkeyVersion
- type ValkeyReplication
- func (s *ValkeyReplication) Definition() *appv1.StatefulSet
- func (s *ValkeyReplication) IsReady() bool
- func (s *ValkeyReplication) Master() types.ValkeyNode
- func (s *ValkeyReplication) NamespacedName() client.ObjectKey
- func (s *ValkeyReplication) Nodes() []types.ValkeyNode
- func (s *ValkeyReplication) Refresh(ctx context.Context) error
- func (s *ValkeyReplication) Replicas() []types.ValkeyNode
- func (s *ValkeyReplication) Restart(ctx context.Context, annotationKeyVal ...string) error
- func (s *ValkeyReplication) Status() *appv1.StatefulSetStatus
- func (s *ValkeyReplication) Version() version.ValkeyVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadValkeyReplication ¶
func NewValkeyReplication ¶
func NewValkeyReplication(ctx context.Context, client clientset.ClientSet, inst types.FailoverInstance, sts *appv1.StatefulSet, logger logr.Logger) (types.Replication, error)
Types ¶
type Failover ¶
func NewFailover ¶
func (*Failover) Definition ¶
func (*Failover) IsACLAppliedToAll ¶
func (*Failover) IsACLUserExists ¶
func (*Failover) IsBindedSentinel ¶
func (*Failover) IsInService ¶
func (*Failover) IsResourceFullfilled ¶
func (*Failover) IsStandalone ¶
func (*Failover) Issuer ¶
func (c *Failover) Issuer() *certmetav1.ObjectReference
func (*Failover) Masters ¶
func (s *Failover) Masters() []types.ValkeyNode
func (*Failover) Monitor ¶
func (s *Failover) Monitor() types.FailoverMonitor
func (*Failover) NamespacedName ¶
func (*Failover) Nodes ¶
func (s *Failover) Nodes() []types.ValkeyNode
func (*Failover) SendEventf ¶
func (*Failover) UpdateStatus ¶
func (*Failover) Version ¶
func (s *Failover) Version() version.ValkeyVersion
type ValkeyReplication ¶
type ValkeyReplication struct {
appv1.StatefulSet
// contains filtered or unexported fields
}
func (*ValkeyReplication) Definition ¶
func (s *ValkeyReplication) Definition() *appv1.StatefulSet
func (*ValkeyReplication) IsReady ¶
func (s *ValkeyReplication) IsReady() bool
func (*ValkeyReplication) Master ¶
func (s *ValkeyReplication) Master() types.ValkeyNode
func (*ValkeyReplication) NamespacedName ¶
func (s *ValkeyReplication) NamespacedName() client.ObjectKey
func (*ValkeyReplication) Nodes ¶
func (s *ValkeyReplication) Nodes() []types.ValkeyNode
func (*ValkeyReplication) Replicas ¶
func (s *ValkeyReplication) Replicas() []types.ValkeyNode
func (*ValkeyReplication) Restart ¶
func (s *ValkeyReplication) Restart(ctx context.Context, annotationKeyVal ...string) error
func (*ValkeyReplication) Status ¶
func (s *ValkeyReplication) Status() *appv1.StatefulSetStatus
func (*ValkeyReplication) Version ¶
func (s *ValkeyReplication) Version() version.ValkeyVersion
Click to show internal directories.
Click to hide internal directories.