Documentation ¶
Index ¶
- func Build(opts ...Option) *hivev1.Checkpoint
- type Builder
- type Option
- func Generic(opt generic.Option) Option
- func WithLastBackupChecksum(lastBackupChecksum string) Option
- func WithLastBackupRef(lastBackupRef hivev1.BackupReference) Option
- func WithLastBackupTime(lastBackupTime metav1.Time) Option
- func WithResourceVersion(resourceVersion string) Option
- func WithTypeMeta() Option
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 ¶
Generic allows common functions applicable to all objects to be used as Options to Build
func WithLastBackupChecksum ¶
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 ¶
WithLastBackupTime sets the last time a backup object was created.
func WithResourceVersion ¶ added in v1.0.2
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.
Click to show internal directories.
Click to hide internal directories.