Documentation ¶
Index ¶
- func Backup(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, ...) error
- func BgSave(redisPassword, appendCommands, svcName string, logger logr.Logger)
- func CopyFile(sourceFile, destinationFile string, logger logr.Logger) error
- func ExecBgSave(cliCmd *exec.Cmd, podName string, logger logr.Logger) error
- func ExecLastSave(cliCmd *exec.Cmd, podName string, logger logr.Logger) (string, error)
- func ExtractMyselfSlots(data string) string
- func FileExists(filename string) bool
- func FileToString(filename string) (string, error)
- func GenerateRandomCode(length int) (string, error)
- func KubectlExec(podName, containerName string, logger logr.Logger, command *exec.Cmd) (string, error)
- func KubectlRedisDump(podName, clusterIndex string, logger logr.Logger) error
- func NewCommand(ctx context.Context) *cli.Command
- func Pull(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, ...) error
- func PushFile2S3(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, ...) error
- func ReadFileToString(filename string) string
- func RenameCluster(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, ...) error
- func Restore(ctx context.Context, c *cli.Context, logger logr.Logger) error
- func ScheduleCreateRedisBackup(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, ...) error
- func SplitAndTrimSpace(s string) []string
- type NodeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecLastSave ¶
func ExtractMyselfSlots ¶
func FileExists ¶
func FileToString ¶
func GenerateRandomCode ¶
func KubectlExec ¶
func KubectlRedisDump ¶
func NewCommand ¶
func PushFile2S3 ¶
func ReadFileToString ¶
func RenameCluster ¶
func SplitAndTrimSpace ¶
Types ¶
type NodeInfo ¶
type NodeInfo struct { Name string `json:"name,omitempty"` Host string `json:"host,omitempty"` Port int64 `json:"port,omitempty"` Replicate string `json:"replicate,omitempty"` SLotsCount int64 `json:"slots_count,omitempty"` Slots [][]int64 `json:"slots,omitempty"` Flags string `json:"flags,omitempty"` CurrentEpoch int64 `json:"current_epoch,omitempty"` }
Click to show internal directories.
Click to hide internal directories.