rediscluster

package
v0.0.0-...-12521ac Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlInterface

type ControlInterface interface {
	// UpdateRedis implements the control logic for StatefulSet creation, update, and deletion
	UpdateRedisCluster(*v1alpha1.RedisCluster) error
}

ControlInterface implements the control logic for updating Rediss and their children StatefulSets. It is implemented as an interface to allow for extensions that provide different semantics. Currently, there is only one implementation.

func NewDefaultRedisControl

func NewDefaultRedisControl(
	rcControl controller.RedisClusterControlInterface,
	replicaMemberManager manager.Manager,
	replicaHAMemberManager manager.Manager,
	redisClusterMemberManager manager.Manager,
	reclaimPolicyManager manager.Manager,
	metaManager manager.Manager,
	recorder record.EventRecorder) ControlInterface

NewDefaultRedisControl returns a new instance of the default implementation ControlInterface that implements the documented semantics for Rediss.

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller controls Rediss.

func NewController

func NewController(
	kubeCli kubernetes.Interface,
	cli versioned.Interface,
	informerFactory informers.SharedInformerFactory,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	autoFailover bool,
) *Controller

NewController creates a Redis controller.

func (*Controller) Run

func (rcc *Controller) Run(workers int, stopCh <-chan struct{})

Run runs the Redis controller.

Jump to

Keyboard shortcuts

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