restore

package
v0.0.0-...-f588f65 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

func WaitForReadiness

func WaitForReadiness(ctx context.Context, restore *v1beta3.Restore, c runtimeClient.Client)

Types

type Option

type Option func(*v1beta3.Restore)

Option represents a functional option for restore objects. To learn what a functional option is, read here: https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis

func SetBackupName

func SetBackupName(backupName string) Option

func SetInstanceRef

func SetInstanceRef(dsi runtimeClient.Object) Option

func SetNamespacedName

func SetNamespacedName(dsi runtimeClient.Object) Option

TODO: Make two separate options for name and namespace. We only need to pass string as parameters

Jump to

Keyboard shortcuts

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