runner

package
v0.0.0-...-2ea7a04 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlaveWaitInterval  = time.Second * 60
	MasterWaitInterval = time.Second * 2

	DefaultRedisServerPort = "6379"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(ctx context.Context) *cli.Command

func RebalanceSlots

func RebalanceSlots(ctx context.Context, authInfo redis.AuthInfo, address string, logger logr.Logger) error

RebalanceSlots

func RetrySetSlotStatus

func RetrySetSlotStatus(ctx context.Context, client redis.RedisClient, slotId int, nodeId string, retryCount int) (err error)

func SyncFromLocalToEtcd

func SyncFromLocalToEtcd(c *cli.Context, ctx context.Context, resourceKind string, watch bool, logger logr.Logger) error

func WatchAndSync

func WatchAndSync(ctx context.Context, client *kubernetes.Clientset, resourceKind, namespace, name, workspace, target string,
	syncInterval int64, ownerRefs []metav1.OwnerReference, logger logr.Logger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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