disasterrecovery

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: AGPL-3.0 Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDRCommand

func GetDRCommand() *cobra.Command

Types

type AuthentikBackupConfig added in v0.0.6

type AuthentikBackupConfig struct {
	Namespace          string                                 `yaml:"namespace" jsonschema:"required"`
	BackupName         string                                 `yaml:"backupName" jsonschema:"required"`
	Cluster            AuthentikBackupConfigCNPG              `yaml:"cluster" jsonschema:"required"`
	S3                 AuthentikBackupConfigS3                `yaml:"s3" jsonschema:"required"`
	BackupVolume       ConfigBackupVolume                     `yaml:"backupVolume" jsonschema:"omitempty"`
	BackupSnapshot     disasterrecovery.OptionsBackupSnapshot `yaml:"backupSnapshot" jsonschema:"omitempty"`
	BackupToolInstance ConfigBTI                              `yaml:"backupToolInstance,omitempty"`
	CleanupTimeout     helpers.MaxWaitTime                    `yaml:"cleanupTimeout,omitempty"`
}

func (AuthentikBackupConfig) Validate added in v0.0.21

func (c AuthentikBackupConfig) Validate() error

type AuthentikBackupConfigCNPG added in v0.0.6

type AuthentikBackupConfigCNPG struct {
	Name                string                            `yaml:"name" jsonschema:"required"`
	CloneClusterOptions clonedcluster.CloneClusterOptions `yaml:"clusterCloning,omitempty"`
}

type AuthentikBackupConfigS3 added in v0.0.6

type AuthentikBackupConfigS3 struct {
	S3Path      string         `yaml:"s3Path" jsonschema:"required"`
	Credentials s3.Credentials `yaml:"credentials" jsonschema:"required"`
}

type AuthentikDRCommand added in v0.0.6

type AuthentikDRCommand struct {
	*ClusterDRCommand[AuthentikBackupConfig, AuthentikRestoreConfig]
}

func NewAuthentikDRCommand added in v0.0.6

func NewAuthentikDRCommand() *AuthentikDRCommand

type AuthentikRestoreConfig added in v0.0.6

type AuthentikRestoreConfig struct {
	Namespace          string                     `yaml:"namespace" jsonschema:"required"`
	BackupName         string                     `yaml:"backupName" jsonschema:"required"`
	Cluster            AuthentikRestoreConfigCNPG `yaml:"cluster" jsonschema:"required"`
	S3                 AuthentikBackupConfigS3    `yaml:"s3" jsonschema:"required"`
	BackupToolInstance ConfigBTI                  `yaml:"backupToolInstance,omitempty"`
	CleanupTimeout     helpers.MaxWaitTime        `yaml:"cleanupTimeout,omitempty"`
}

type AuthentikRestoreConfigCNPG added in v0.0.6

type AuthentikRestoreConfigCNPG struct {
	Name                    string                             `yaml:"name" jsonschema:"required"`
	ServingCertName         string                             `yaml:"servingCertName" jsonschema:"required"`
	ClientCAIssuer          cmmeta.IssuerReference             `yaml:"clientCAIssuer" jsonschema:"required"`
	PostgresUserCertOptions cnpgrestore.CNPGRestoreOptionsCert `yaml:"postgresUserCert,omitempty"`
}

type ClusterDRCommand added in v0.0.5

type ClusterDRCommand[TBackupConfig, TRestoreConfig any] struct {
	// contains filtered or unexported fields
}

func NewClusterDRCommand added in v0.0.5

func NewClusterDRCommand[TBackupConfig, TRestoreConfig any](name string, backupCommand ClusterDREventCommandRun[TBackupConfig], restoreCommand ClusterDREventCommandRun[TRestoreConfig]) *ClusterDRCommand[TBackupConfig, TRestoreConfig]

func (*ClusterDRCommand[TBackupConfig, TRestoreConfig]) GetBackupCommand added in v0.0.5

func (cdrc *ClusterDRCommand[TBackupConfig, TRestoreConfig]) GetBackupCommand() DREventCommand

func (*ClusterDRCommand[TBackupConfig, TRestoreConfig]) GetRestoreCommand added in v0.0.5

func (cdrc *ClusterDRCommand[TBackupConfig, TRestoreConfig]) GetRestoreCommand() DREventCommand

func (*ClusterDRCommand[TBackupConfig, TRestoreConfig]) Name added in v0.0.5

func (cdrc *ClusterDRCommand[TBackupConfig, TRestoreConfig]) Name() string

type ClusterDREventCommand added in v0.0.5

type ClusterDREventCommand[TConfig any] struct {
	// contains filtered or unexported fields
}

Used for cluster-targeted disaster recovery operations. Others (like managing ZFS backups on tape) will follow a different process.

func NewClusterDREventCommand added in v0.0.5

func NewClusterDREventCommand[TConfig any](name string, run ClusterDREventCommandRun[TConfig]) *ClusterDREventCommand[TConfig]

func (*ClusterDREventCommand[TConfig]) ConfigureFlags added in v0.0.5

func (cdrec *ClusterDREventCommand[TConfig]) ConfigureFlags(cmd *cobra.Command)

func (*ClusterDREventCommand[TConfig]) GenerateConfigSchema added in v0.0.5

func (cdrec *ClusterDREventCommand[TConfig]) GenerateConfigSchema() ([]byte, error)

func (*ClusterDREventCommand[TConfig]) Run added in v0.0.5

func (cdrec *ClusterDREventCommand[TConfig]) Run() error

type ClusterDREventCommandRun added in v0.0.5

type ClusterDREventCommandRun[TConfig any] func(ctx *contexts.Context, config TConfig, kubeCluster kubecluster.ClientInterface) error

type ConfigBTI added in v0.0.6

type ConfigBTI struct {
	CreationOptions backuptoolinstance.CreateBackupToolInstanceOptions `yaml:",inline"`
}

type ConfigBackupVolume added in v0.0.6

type ConfigBackupVolume struct {
	Size         resource.Quantity `yaml:"size, omitempty"`
	StorageClass string            `yaml:"storageClass, omitempty"`
	// SnapshotLabels are added to the backup snapshot, in addition to the labels set by backup-tool.
	SnapshotLabels map[string]string `yaml:"snapshotLabels,omitempty"`
}

func (ConfigBackupVolume) Validate added in v0.0.21

func (cbv ConfigBackupVolume) Validate(backupName, drType string) error

Validate checks the labels that will be applied to the DR volume and its backup snapshot.

type DRBackupCommand added in v0.0.2

type DRBackupCommand interface {
	DRCommand
	GetBackupCommand() DREventCommand
}

type DRCommand

type DRCommand interface {
	Name() string
}

type DREventCommand added in v0.0.2

type DREventCommand interface {
	Run() error
	ConfigureFlags(cmd *cobra.Command)
}

type DREventGenerateSchemaCommand added in v0.0.2

type DREventGenerateSchemaCommand interface {
	DREventCommand
	GenerateConfigSchema() ([]byte, error)
}

type DRRestoreCommand added in v0.0.2

type DRRestoreCommand interface {
	DRCommand
	GetRestoreCommand() DREventCommand
}

type GenericDRCommand added in v0.0.15

The generic app's config types already carry every field (and jsonschema tag) the CLI needs, so unlike the per-app commands there is no separate cmd-level config wrapper to embed — GenericBackupConfig and GenericRestoreConfig are used directly as the command's config types.

func NewGenericDRCommand added in v0.0.15

func NewGenericDRCommand() *GenericDRCommand

type MockDRBackupCommand added in v0.0.2

type MockDRBackupCommand struct {
	mock.Mock
}

MockDRBackupCommand is an autogenerated mock type for the DRBackupCommand type

func NewMockDRBackupCommand added in v0.0.2

func NewMockDRBackupCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDRBackupCommand

NewMockDRBackupCommand creates a new instance of MockDRBackupCommand. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockDRBackupCommand) EXPECT added in v0.0.2

func (*MockDRBackupCommand) GetBackupCommand added in v0.0.2

func (_m *MockDRBackupCommand) GetBackupCommand() DREventCommand

GetBackupCommand provides a mock function with no fields

func (*MockDRBackupCommand) Name added in v0.0.2

func (_m *MockDRBackupCommand) Name() string

Name provides a mock function with no fields

type MockDRBackupCommand_Expecter added in v0.0.2

type MockDRBackupCommand_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDRBackupCommand_Expecter) GetBackupCommand added in v0.0.2

GetBackupCommand is a helper method to define mock.On call

func (*MockDRBackupCommand_Expecter) Name added in v0.0.2

Name is a helper method to define mock.On call

type MockDRBackupCommand_GetBackupCommand_Call added in v0.0.2

type MockDRBackupCommand_GetBackupCommand_Call struct {
	*mock.Call
}

MockDRBackupCommand_GetBackupCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBackupCommand'

func (*MockDRBackupCommand_GetBackupCommand_Call) Return added in v0.0.2

func (*MockDRBackupCommand_GetBackupCommand_Call) Run added in v0.0.2

func (*MockDRBackupCommand_GetBackupCommand_Call) RunAndReturn added in v0.0.2

type MockDRBackupCommand_Name_Call added in v0.0.2

type MockDRBackupCommand_Name_Call struct {
	*mock.Call
}

MockDRBackupCommand_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*MockDRBackupCommand_Name_Call) Return added in v0.0.2

func (*MockDRBackupCommand_Name_Call) Run added in v0.0.2

func (*MockDRBackupCommand_Name_Call) RunAndReturn added in v0.0.2

type MockDRCommand added in v0.0.2

type MockDRCommand struct {
	mock.Mock
}

MockDRCommand is an autogenerated mock type for the DRCommand type

func NewMockDRCommand added in v0.0.2

func NewMockDRCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDRCommand

NewMockDRCommand creates a new instance of MockDRCommand. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockDRCommand) EXPECT added in v0.0.2

func (_m *MockDRCommand) EXPECT() *MockDRCommand_Expecter

func (*MockDRCommand) Name added in v0.0.2

func (_m *MockDRCommand) Name() string

Name provides a mock function with no fields

type MockDRCommand_Expecter added in v0.0.2

type MockDRCommand_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDRCommand_Expecter) Name added in v0.0.2

Name is a helper method to define mock.On call

type MockDRCommand_Name_Call added in v0.0.2

type MockDRCommand_Name_Call struct {
	*mock.Call
}

MockDRCommand_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*MockDRCommand_Name_Call) Return added in v0.0.2

func (*MockDRCommand_Name_Call) Run added in v0.0.2

func (_c *MockDRCommand_Name_Call) Run(run func()) *MockDRCommand_Name_Call

func (*MockDRCommand_Name_Call) RunAndReturn added in v0.0.2

func (_c *MockDRCommand_Name_Call) RunAndReturn(run func() string) *MockDRCommand_Name_Call

type MockDREventCommand added in v0.0.2

type MockDREventCommand struct {
	mock.Mock
}

MockDREventCommand is an autogenerated mock type for the DREventCommand type

func NewMockDREventCommand added in v0.0.2

func NewMockDREventCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDREventCommand

NewMockDREventCommand creates a new instance of MockDREventCommand. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockDREventCommand) ConfigureFlags added in v0.0.2

func (_m *MockDREventCommand) ConfigureFlags(cmd *cobra.Command)

ConfigureFlags provides a mock function with given fields: cmd

func (*MockDREventCommand) EXPECT added in v0.0.2

func (*MockDREventCommand) Run added in v0.0.2

func (_m *MockDREventCommand) Run() error

Run provides a mock function with no fields

type MockDREventCommand_ConfigureFlags_Call added in v0.0.2

type MockDREventCommand_ConfigureFlags_Call struct {
	*mock.Call
}

MockDREventCommand_ConfigureFlags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigureFlags'

func (*MockDREventCommand_ConfigureFlags_Call) Return added in v0.0.2

func (*MockDREventCommand_ConfigureFlags_Call) Run added in v0.0.2

func (*MockDREventCommand_ConfigureFlags_Call) RunAndReturn added in v0.0.2

type MockDREventCommand_Expecter added in v0.0.2

type MockDREventCommand_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDREventCommand_Expecter) ConfigureFlags added in v0.0.2

func (_e *MockDREventCommand_Expecter) ConfigureFlags(cmd interface{}) *MockDREventCommand_ConfigureFlags_Call

ConfigureFlags is a helper method to define mock.On call

  • cmd *cobra.Command

func (*MockDREventCommand_Expecter) Run added in v0.0.2

Run is a helper method to define mock.On call

type MockDREventCommand_Run_Call added in v0.0.2

type MockDREventCommand_Run_Call struct {
	*mock.Call
}

MockDREventCommand_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*MockDREventCommand_Run_Call) Return added in v0.0.2

func (*MockDREventCommand_Run_Call) Run added in v0.0.2

func (*MockDREventCommand_Run_Call) RunAndReturn added in v0.0.2

func (_c *MockDREventCommand_Run_Call) RunAndReturn(run func() error) *MockDREventCommand_Run_Call

type MockDREventGenerateSchemaCommand added in v0.0.2

type MockDREventGenerateSchemaCommand struct {
	mock.Mock
}

MockDREventGenerateSchemaCommand is an autogenerated mock type for the DREventGenerateSchemaCommand type

func NewMockDREventGenerateSchemaCommand added in v0.0.2

func NewMockDREventGenerateSchemaCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDREventGenerateSchemaCommand

NewMockDREventGenerateSchemaCommand creates a new instance of MockDREventGenerateSchemaCommand. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockDREventGenerateSchemaCommand) ConfigureFlags added in v0.0.2

func (_m *MockDREventGenerateSchemaCommand) ConfigureFlags(cmd *cobra.Command)

ConfigureFlags provides a mock function with given fields: cmd

func (*MockDREventGenerateSchemaCommand) EXPECT added in v0.0.2

func (*MockDREventGenerateSchemaCommand) GenerateConfigSchema added in v0.0.2

func (_m *MockDREventGenerateSchemaCommand) GenerateConfigSchema() ([]byte, error)

GenerateConfigSchema provides a mock function with no fields

func (*MockDREventGenerateSchemaCommand) Run added in v0.0.2

Run provides a mock function with no fields

type MockDREventGenerateSchemaCommand_ConfigureFlags_Call added in v0.0.2

type MockDREventGenerateSchemaCommand_ConfigureFlags_Call struct {
	*mock.Call
}

MockDREventGenerateSchemaCommand_ConfigureFlags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigureFlags'

func (*MockDREventGenerateSchemaCommand_ConfigureFlags_Call) Return added in v0.0.2

func (*MockDREventGenerateSchemaCommand_ConfigureFlags_Call) Run added in v0.0.2

func (*MockDREventGenerateSchemaCommand_ConfigureFlags_Call) RunAndReturn added in v0.0.2

type MockDREventGenerateSchemaCommand_Expecter added in v0.0.2

type MockDREventGenerateSchemaCommand_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDREventGenerateSchemaCommand_Expecter) ConfigureFlags added in v0.0.2

ConfigureFlags is a helper method to define mock.On call

  • cmd *cobra.Command

func (*MockDREventGenerateSchemaCommand_Expecter) GenerateConfigSchema added in v0.0.2

GenerateConfigSchema is a helper method to define mock.On call

func (*MockDREventGenerateSchemaCommand_Expecter) Run added in v0.0.2

Run is a helper method to define mock.On call

type MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call added in v0.0.2

type MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call struct {
	*mock.Call
}

MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateConfigSchema'

func (*MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) Return added in v0.0.2

func (*MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) Run added in v0.0.2

func (*MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) RunAndReturn added in v0.0.2

type MockDREventGenerateSchemaCommand_Run_Call added in v0.0.2

type MockDREventGenerateSchemaCommand_Run_Call struct {
	*mock.Call
}

MockDREventGenerateSchemaCommand_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*MockDREventGenerateSchemaCommand_Run_Call) Return added in v0.0.2

func (*MockDREventGenerateSchemaCommand_Run_Call) Run added in v0.0.2

func (*MockDREventGenerateSchemaCommand_Run_Call) RunAndReturn added in v0.0.2

type MockDRRestoreCommand added in v0.0.2

type MockDRRestoreCommand struct {
	mock.Mock
}

MockDRRestoreCommand is an autogenerated mock type for the DRRestoreCommand type

func NewMockDRRestoreCommand added in v0.0.2

func NewMockDRRestoreCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDRRestoreCommand

NewMockDRRestoreCommand creates a new instance of MockDRRestoreCommand. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockDRRestoreCommand) EXPECT added in v0.0.2

func (*MockDRRestoreCommand) GetRestoreCommand added in v0.0.2

func (_m *MockDRRestoreCommand) GetRestoreCommand() DREventCommand

GetRestoreCommand provides a mock function with no fields

func (*MockDRRestoreCommand) Name added in v0.0.2

func (_m *MockDRRestoreCommand) Name() string

Name provides a mock function with no fields

type MockDRRestoreCommand_Expecter added in v0.0.2

type MockDRRestoreCommand_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDRRestoreCommand_Expecter) GetRestoreCommand added in v0.0.2

GetRestoreCommand is a helper method to define mock.On call

func (*MockDRRestoreCommand_Expecter) Name added in v0.0.2

Name is a helper method to define mock.On call

type MockDRRestoreCommand_GetRestoreCommand_Call added in v0.0.2

type MockDRRestoreCommand_GetRestoreCommand_Call struct {
	*mock.Call
}

MockDRRestoreCommand_GetRestoreCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRestoreCommand'

func (*MockDRRestoreCommand_GetRestoreCommand_Call) Return added in v0.0.2

func (*MockDRRestoreCommand_GetRestoreCommand_Call) Run added in v0.0.2

func (*MockDRRestoreCommand_GetRestoreCommand_Call) RunAndReturn added in v0.0.2

type MockDRRestoreCommand_Name_Call added in v0.0.2

type MockDRRestoreCommand_Name_Call struct {
	*mock.Call
}

MockDRRestoreCommand_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*MockDRRestoreCommand_Name_Call) Return added in v0.0.2

func (*MockDRRestoreCommand_Name_Call) Run added in v0.0.2

func (*MockDRRestoreCommand_Name_Call) RunAndReturn added in v0.0.2

type TeleportBackupConfig added in v0.0.5

type TeleportBackupConfig struct {
	Namespace           string                                 `yaml:"namespace" jsonschema:"required"`
	BackupName          string                                 `yaml:"backupName" jsonschema:"required"`
	CNPGClusters        TeleportBackupConfigClustersConfig     `yaml:"cnpgClusters" jsonschema:"required"`
	AuditSessionLogs    TeleportConfigAuditSessionLogs         `yaml:"auditSessionLogs,omitempty"`
	BackupVolume        ConfigBackupVolume                     `yaml:"backupVolume" jsonschema:"omitempty"`
	BackupSnapshot      disasterrecovery.OptionsBackupSnapshot `yaml:"backupSnapshot" jsonschema:"omitempty"`
	CloneClusterOptions clonedcluster.CloneClusterOptions      `yaml:"clusterCloning,omitempty"`
	BackupToolInstance  ConfigBTI                              `yaml:"backupToolInstance,omitempty"`
	CleanupTimeout      helpers.MaxWaitTime                    `yaml:"cleanupTimeout,omitempty"`
}

func (TeleportBackupConfig) Validate added in v0.0.21

func (c TeleportBackupConfig) Validate() error

type TeleportBackupConfigClusterConfig added in v0.0.5

type TeleportBackupConfigClusterConfig struct {
	CNPGClusterName string `yaml:"name" jsonschema:"required"`
}

type TeleportBackupConfigClustersConfig added in v0.0.5

type TeleportBackupConfigClustersConfig struct {
	Core  TeleportBackupConfigClusterConfig `yaml:"core" jsonschema:"required"`
	Audit TeleportBackupConfigClusterConfig `yaml:"audit,omitempty"`
}

type TeleportConfigAuditSessionLogs added in v0.0.5

type TeleportConfigAuditSessionLogs struct {
	S3Path      string         `yaml:"s3Path,omitempty"`
	Credentials s3.Credentials `yaml:"credentials,omitempty"`
}

type TeleportDRCommand added in v0.0.5

type TeleportDRCommand struct {
	*ClusterDRCommand[TeleportBackupConfig, TeleportRestoreConfig]
}

func NewTeleportDRCommand added in v0.0.5

func NewTeleportDRCommand() *TeleportDRCommand

type TeleportRestoreClusterConfig added in v0.0.5

type TeleportRestoreClusterConfig struct {
	Name            string                             `yaml:"name" jsonschema:"required"`
	ServingCertName string                             `yaml:"servingCertName" jsonschema:"required"`
	ClientCAIssuer  cmmeta.IssuerReference             `yaml:"clientCAIssuer" jsonschema:"required"`
	ClusterUserCert cnpgrestore.CNPGRestoreOptionsCert `yaml:"clusterUserCert,omitempty"`
}

type TeleportRestoreClustersConfig added in v0.0.5

type TeleportRestoreClustersConfig struct {
	Core  TeleportRestoreClusterConfig `yaml:"core" jsonschema:"required"`
	Audit TeleportRestoreClusterConfig `yaml:"audit,omitempty"`
}

type TeleportRestoreConfig added in v0.0.5

type TeleportRestoreConfig struct {
	Namespace          string                         `yaml:"namespace" jsonschema:"required"`
	BackupName         string                         `yaml:"backupName" jsonschema:"required"`
	CNPGClusters       TeleportRestoreClustersConfig  `yaml:"cnpgClusters" jsonschema:"required"`
	AuditSessionLogs   TeleportConfigAuditSessionLogs `yaml:"auditSessionLogs,omitempty"`
	BackupToolInstance ConfigBTI                      `yaml:"backupToolInstance,omitempty"`
	CleanupTimeout     helpers.MaxWaitTime            `yaml:"cleanupTimeout,omitempty"`
}

type VaultWardenBackupConfig

type VaultWardenBackupConfig struct {
	Namespace          string                                 `yaml:"namespace" jsonschema:"required"`
	BackupName         string                                 `yaml:"backupName" jsonschema:"required"`
	DataPVCName        string                                 `yaml:"dataPVCName" jsonschema:"required"`
	Cluster            VaultWardenBackupConfigCNPG            `yaml:"cluster" jsonschema:"required"`
	BackupVolume       ConfigBackupVolume                     `yaml:"backupVolume" jsonschema:"omitempty"`
	BackupSnapshot     disasterrecovery.OptionsBackupSnapshot `yaml:"backupSnapshot" jsonschema:"omitempty"`
	BackupToolInstance ConfigBTI                              `yaml:"backupToolInstance,omitempty"`
	CleanupTimeout     helpers.MaxWaitTime                    `yaml:"cleanupTimeout,omitempty"`
}

func (VaultWardenBackupConfig) Validate added in v0.0.21

func (c VaultWardenBackupConfig) Validate() error

type VaultWardenBackupConfigCNPG added in v0.0.17

type VaultWardenBackupConfigCNPG struct {
	Name                string                            `yaml:"name" jsonschema:"required"`
	CloneClusterOptions clonedcluster.CloneClusterOptions `yaml:"clusterCloning,omitempty"`
}

type VaultWardenDRCommand added in v0.0.2

type VaultWardenDRCommand struct {
	*ClusterDRCommand[VaultWardenBackupConfig, VaultWardenRestoreConfig]
}

func NewVaultWardenDRCommand added in v0.0.2

func NewVaultWardenDRCommand() *VaultWardenDRCommand

type VaultWardenRestoreConfig added in v0.0.2

type VaultWardenRestoreConfig struct {
	Namespace          string                       `yaml:"namespace" jsonschema:"required"`
	BackupName         string                       `yaml:"backupName" jsonschema:"required"`
	DataPVCName        string                       `yaml:"dataPVCName" jsonschema:"required"`
	Cluster            VaultWardenRestoreConfigCNPG `yaml:"cluster" jsonschema:"required"`
	BackupToolInstance ConfigBTI                    `yaml:"backupToolInstance,omitempty"`
	CleanupTimeout     helpers.MaxWaitTime          `yaml:"cleanupTimeout,omitempty"`
}

type VaultWardenRestoreConfigCNPG added in v0.0.17

type VaultWardenRestoreConfigCNPG struct {
	Name                    string                             `yaml:"name" jsonschema:"required"`
	ServingCertName         string                             `yaml:"servingCertName" jsonschema:"required"`
	ClientCAIssuer          cmmeta.IssuerReference             `yaml:"clientCAIssuer" jsonschema:"required"`
	PostgresUserCertOptions cnpgrestore.CNPGRestoreOptionsCert `yaml:"postgresUserCert,omitempty"`
}

Jump to

Keyboard shortcuts

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