sentinel

package
v0.0.0-...-3430a5a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REDIS_CONFIG_REWRITE_SIGNATURE = "# Generated by CONFIG REWRITE"
)

Variables

View Source
var (
	ErrFailoverRetry = errors.New("failover retry")
	ErrFailoverAbort = errors.New("failover abort")
)

Functions

func Access

func Access(ctx context.Context, client *kubernetes.Clientset, namespace, podName, ipfamily string, serviceType corev1.ServiceType, logger logr.Logger) error

func Failover

func Failover(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, logger logr.Logger) error

func MergeConfig

func MergeConfig(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, logger logr.Logger) error

MergeConfig merge sentinel local and cached config

func NewCommand

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

func Shutdown

func Shutdown(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, logger logr.Logger) error

Shutdown

Types

type HealOptions

type HealOptions struct {
	Namespace  string
	PodName    string
	Workspace  string
	TargetName string
	Prefix     string
}

Jump to

Keyboard shortcuts

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