backup

package
v0.0.0-...-b15456b Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *v1beta3.Backup

func WaitForDeletion

func WaitForDeletion(ctx context.Context, backup *v1beta3.Backup, c runtimeClient.Client)

WaitForDeletion waits for the backup object to be deleted from the API server.

func WaitForReadiness

func WaitForReadiness(ctx context.Context, backup *v1beta3.Backup, timeoutMins time.Duration,
	c runtimeClient.Client,
)

WaitForReadiness waits for the backup object status condition of type "Complete" to indicate true.

Types

type Option

type Option func(*v1beta3.Backup)

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 MaxRetries

func MaxRetries(maxRetries string) Option

func SetInstanceRef

func SetInstanceRef(dsi runtimeClient.Object) Option

func SetNamespacedName

func SetNamespacedName(dsi runtimeClient.Object) Option

type S3Client

type S3Client struct {
	// contains filtered or unexported fields
}

func NewS3Client

func NewS3Client(k8sClient client.Client) (S3Client, error)

NewS3Client creates a S3Client by taking the existing backup configuration in the cluster being tested. As the location of this configuration is not a part of the public API this might break.

func (S3Client) HasPartialBackupData

func (c S3Client) HasPartialBackupData(ctx context.Context, bkp v1beta3.Backup) (bool, error)

Jump to

Keyboard shortcuts

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