backupoptions

package
v1.53.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultBackupPath is the default path to the directory where the backup bucket is created.
	DefaultBackupPath = "dev/local-backupbuckets"
	// DefaultContainerMountPath is the default path to the directory where the backup bucket is mounted on the container.
	DefaultContainerMountPath = "/etc/gardener/local-backupbuckets"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOptions

type AddOptions struct {
	// BackupBucketPath is the path to the backupbucket.
	BackupBucketPath string
	// ContainerMountPath is the path to the directory where the backup bucket is mounted on the container.
	ContainerMountPath string
	// Controller are the controller.Options.
	Controller controller.Options
	// IgnoreOperationAnnotation specifies whether to ignore the operation annotation or not.
	IgnoreOperationAnnotation bool
}

AddOptions are options to apply when adding the backupbucket controller to the manager.

type ControllerConfig

type ControllerConfig struct {
	// BackupBucketPath is the path to the backupbucket.
	BackupBucketPath string
	// ContainerMountPath is the path to the directory where the backup bucket is mounted on the container.
	ContainerMountPath string
}

ControllerConfig is a completed controller configuration.

func (*ControllerConfig) Apply

func (c *ControllerConfig) Apply(opts *AddOptions)

Apply sets the values of this ControllerConfig in the given AddOptions.

type ControllerOptions

type ControllerOptions struct {
	// BackupBucketPath is the path to the backupbucket.
	BackupBucketPath string
	// ContainerMountPath is the path to the directory where the backup bucket is mounted on the container.
	ContainerMountPath string
	// contains filtered or unexported fields
}

ControllerOptions are command line options that can be set for controller.Options.

func (*ControllerOptions) AddFlags

func (c *ControllerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags implements Flagger.AddFlags.

func (*ControllerOptions) Complete

func (c *ControllerOptions) Complete() error

Complete implements Completer.Complete.

func (*ControllerOptions) Completed

func (c *ControllerOptions) Completed() *ControllerConfig

Completed returns the completed ControllerConfig. Only call this if `Complete` was successful.

Jump to

Keyboard shortcuts

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