Documentation
¶
Index ¶
- func ID(shard, alias string, ts time.Time) string
- type Retention
- type Runner
- func (br *Runner) BackgroundSave(ctx context.Context) error
- func (br *Runner) BackupFile() string
- func (br *Runner) BackupFileBaseName() string
- func (br *Runner) BackupFileBaseNameWithTimeSuffix(timeSuffix string) string
- func (br *Runner) BackupFileCompressed() string
- func (br *Runner) BackupFileS3Path() string
- func (br *Runner) CanBeDeleted() bool
- func (br *Runner) CheckBackup(ctx context.Context) error
- func (br *Runner) GetID() string
- func (br *Runner) IsStarted() bool
- func (br *Runner) SetChannel(ch chan event.GenericEvent)
- func (br *Runner) Start(parentCtx context.Context, l logr.Logger) error
- func (br *Runner) Status() RunnerStatus
- func (br *Runner) Stop()
- func (br *Runner) UploadBackup(ctx context.Context) error
- type RunnerStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runner ¶
type Runner struct {
Instance client.Object
ShardName string
Server *sharded.RedisServer
ScheduledFor time.Time
Timestamp time.Time
Timeout time.Duration
PollInterval time.Duration
RedisDBFile string
SSHUser string
SSHKey string
SSHPort uint32
SSHSudo bool
S3Bucket string
S3Path string
AWSAccessKeyID string
AWSSecretAccessKey string
AWSRegion string
AWSS3Endpoint *string
// contains filtered or unexported fields
}
func (*Runner) BackupFile ¶
BackupFile returns the backup file as "redis-backup_<shard>_<timestamp>.rdb"
func (*Runner) BackupFileBaseName ¶
func (*Runner) BackupFileBaseNameWithTimeSuffix ¶
func (*Runner) BackupFileCompressed ¶
func (*Runner) BackupFileS3Path ¶
func (*Runner) CanBeDeleted ¶
CanBeDeleted reports the reconciler if this backup runner key can be deleted from the map of threads
func (*Runner) SetChannel ¶
func (br *Runner) SetChannel(ch chan event.GenericEvent)
SetChannel created the communication channel for this backup runner
func (*Runner) Status ¶
func (br *Runner) Status() RunnerStatus
Status returns the RunnerStatus struct for this backup runner
Click to show internal directories.
Click to hide internal directories.