backuppolicy

package
v0.0.0-...-c0f6e96 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 SetEnabled(enabled bool) Option

func SetInstanceRef

func SetInstanceRef(dsi runtimeClient.Object) Option

func SetNamespacedName

func SetNamespacedName(namespace string) Option

Jump to

Keyboard shortcuts

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