Documentation ¶
Index ¶
- func CleanupBackups(ctx context.Context, p *v1beta3.BackupPolicy, c runtimeClient.Client) error
- func CreateBackup(ctx context.Context, k8sClient runtimeClient.Client, ...)
- func GenerateBackups(p *v1beta3.BackupPolicy, dsi runtimeClient.Object) []v1beta3.Backup
- func New(opts ...Option) *v1beta3.BackupPolicy
- type Option
- func RetentionConfiguration(retentionConfig *v1beta3.RetentionConfiguration) Option
- func ScheduleConfiguration(scheduleConfig v1beta3.ScheduleConfiguration) Option
- func SetEnabled(enabled bool) Option
- func SetInstanceRef(dsi runtimeClient.Object) Option
- func SetNamespacedName(namespace string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupBackups ¶
func CleanupBackups(ctx context.Context, p *v1beta3.BackupPolicy, c runtimeClient.Client) error
func CreateBackup ¶
func CreateBackup(ctx context.Context, k8sClient runtimeClient.Client, namespace, creationTime string)
func GenerateBackups ¶
func GenerateBackups(p *v1beta3.BackupPolicy, dsi runtimeClient.Object) []v1beta3.Backup
func New ¶
func New(opts ...Option) *v1beta3.BackupPolicy
Types ¶
type Option ¶
type Option func(*v1beta3.BackupPolicy)
Option represents a functional option for backup objects. To learn what a functional option is, read here: https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
func RetentionConfiguration ¶
func RetentionConfiguration(retentionConfig *v1beta3.RetentionConfiguration) Option
func ScheduleConfiguration ¶
func ScheduleConfiguration(scheduleConfig v1beta3.ScheduleConfiguration) Option
func SetEnabled ¶
func SetInstanceRef ¶
func SetInstanceRef(dsi runtimeClient.Object) Option
func SetNamespacedName ¶
Click to show internal directories.
Click to hide internal directories.