Documentation
¶
Index ¶
- func ValidateBackRestSchedule(scheduleType, deployment, label, backupType, storageType string) error
- func ValidatePolicySchedule(scheduleType, policy, database string) error
- func ValidateSchedule(schedule string) error
- func ValidateScheduleType(schedule string) error
- type BackRestBackupJob
- type PGBackRest
- type Policy
- type PolicyJob
- type PolicyTemplate
- type ScheduleTemplate
- type Scheduler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePolicySchedule ¶
func ValidateSchedule ¶
ValidateSchedule validates that the cron syntax is valid We use the standard format here...
func ValidateScheduleType ¶
Types ¶
type BackRestBackupJob ¶
type BackRestBackupJob struct {
// contains filtered or unexported fields
}
func (BackRestBackupJob) Run ¶
func (b BackRestBackupJob) Run()
type PGBackRest ¶
type PolicyTemplate ¶
type ScheduleTemplate ¶
type ScheduleTemplate struct {
Version string `json:"version"`
Name string `json:"name"`
Created time.Time `json:"created"`
Schedule string `json:"schedule"`
Namespace string `json:"namespace"`
Type string `json:"type"`
Cluster string `json:"cluster"`
PGBackRest `json:"pgbackrest,omitempty"`
Policy `json:"policy,omitempty"`
}
func (*ScheduleTemplate) NewBackRestSchedule ¶
func (s *ScheduleTemplate) NewBackRestSchedule() BackRestBackupJob
func (*ScheduleTemplate) NewPolicySchedule ¶
func (s *ScheduleTemplate) NewPolicySchedule() PolicyJob
Click to show internal directories.
Click to hide internal directories.