types

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostgresStratKey    = "postgres"
	RedisStratKey       = "redis"
	BlobstorageStratKey = "blobstorage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StartTime

type StartTime struct {
	Time time.Time
	Day  time.Weekday
}

type StrategyProvider

type StrategyProvider interface {
	ReconcileStrategyMap(context.Context, client.Client, *StrategyTimeConfig) error
}

type StrategyTimeConfig

type StrategyTimeConfig struct {
	BackupStartTime      StartTime
	MaintenanceStartTime StartTime
}

func NewStrategyTimeConfig

func NewStrategyTimeConfig(backupHour int, backupMinute int, maintenanceDay time.Weekday, maintenanceHour int, maintenanceMinute int) *StrategyTimeConfig

func (*StrategyTimeConfig) SetBackupTime

func (t *StrategyTimeConfig) SetBackupTime(hour int, minute int)

func (*StrategyTimeConfig) SetMaintenanceTime

func (t *StrategyTimeConfig) SetMaintenanceTime(day time.Weekday, hour int, minute int)

Jump to

Keyboard shortcuts

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