checkpoint

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(opts ...Option) *hivev1.Checkpoint

Build runs each of the functions passed in to generate the object.

Types

type Builder added in v1.0.5

type Builder interface {
	Build(opts ...Option) *hivev1.Checkpoint

	Options(opts ...Option) Builder

	GenericOptions(opts ...generic.Option) Builder
}

func BasicBuilder added in v1.0.5

func BasicBuilder() Builder

func FullBuilder added in v1.0.5

func FullBuilder(namespace, name string, typer runtime.ObjectTyper) Builder

type Option

type Option func(*hivev1.Checkpoint)

Option defines a function signature for any function that wants to be passed into Build

func Generic

func Generic(opt generic.Option) Option

Generic allows common functions applicable to all objects to be used as Options to Build

func WithLastBackupChecksum

func WithLastBackupChecksum(lastBackupChecksum string) Option

WithLastBackupChecksum sets the checksum for all Hive objects backed up in the last backup object.

func WithLastBackupRef

func WithLastBackupRef(lastBackupRef hivev1.BackupReference) Option

WithLastBackupRef sets the name of the last backup object created.

func WithLastBackupTime

func WithLastBackupTime(lastBackupTime metav1.Time) Option

WithLastBackupTime sets the last time a backup object was created.

func WithResourceVersion added in v1.0.2

func WithResourceVersion(resourceVersion string) Option

WithResourceVersion sets the specified resource version on the supplied object.

func WithTypeMeta added in v1.0.2

func WithTypeMeta() Option

WithTypeMeta populates the type meta for the object.

Jump to

Keyboard shortcuts

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