sync

package
v0.0.0-...-0227cab Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

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

func NewOwnerReference

func NewOwnerReference(ctx context.Context, client *kubernetes.Clientset, namespace, podName string) ([]metav1.OwnerReference, error)

NewOwnerReference

func SyncToLocal

func SyncToLocal(ctx context.Context, client *kubernetes.Clientset, namespace, name, workspace, target string, redisOptions redis.AuthInfo, logger logr.Logger) error

Sync

func WatchAndSync

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

Types

type FailoverAction

type FailoverAction string
const (
	NoFailoverAction       FailoverAction = ""
	ForceFailoverAction    FailoverAction = "FORCE"
	TakeoverFailoverAction FailoverAction = "TAKEOVER"
)

Jump to

Keyboard shortcuts

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