Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RestoreTypeS3 indicates that the restore shall be done to an S3 endpoint. RestoreTypeS3 = "s3" // RestoreTypeFolder indicates that the restore shall be done to a folder, // usually a RWX PVC mounted to the Pod of the restore process. RestoreTypeFolder = "folder" )
Variables ¶
View Source
var ( // Config contains the values of the user-provided configuration of the operator module, // combined with the default values as defined in operator.Command. Config = &Configuration{} )
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { DoCheck bool DoPrune bool DoRestore bool DoArchive bool BackupCommandAnnotation string BackupFileExtensionAnnotation string BackupDir string PromURL string WebhookURL string Hostname string KubeConfig string ResticBin string ResticRepository string ResticOptions string RestoreDir string RestoreS3Endpoint string RestoreS3AccessKey string RestoreS3SecretKey string RestoreSnap string RestoreType string RestoreFilter string VerifyRestore bool RestoreTrimPath bool PruneKeepLast int PruneKeepHourly int PruneKeepDaily int PruneKeepWeekly int PruneKeepMonthly int PruneKeepYearly int PruneKeepTags bool PruneKeepWithin string PruneKeepWithinHourly string PruneKeepWithinDaily string PruneKeepWithinWeekly string PruneKeepWithinMonthly string PruneKeepWithinYearly string Tags []string }
Configuration holds a strongly-typed tree of the configuration
func (*Configuration) Validate ¶
func (c *Configuration) Validate() error
Validate ensures a consistent configuration and returns an error should that not be the case
Click to show internal directories.
Click to hide internal directories.