Documentation
¶
Index ¶
- func GetDRCommand() *cobra.Command
- type AuthentikBackupConfig
- type AuthentikBackupConfigCNPG
- type AuthentikBackupConfigS3
- type AuthentikDRCommand
- type AuthentikRestoreConfig
- type AuthentikRestoreConfigCNPG
- type ClusterDRCommand
- type ClusterDREventCommand
- type ClusterDREventCommandRun
- type ConfigBTI
- type ConfigBackupVolume
- type ConfigIssuer
- type DRBackupCommand
- type DRCommand
- type DREventCommand
- type DREventGenerateSchemaCommand
- type DRRestoreCommand
- type MockDRBackupCommand
- type MockDRBackupCommand_Expecter
- type MockDRBackupCommand_GetBackupCommand_Call
- func (_c *MockDRBackupCommand_GetBackupCommand_Call) Return(_a0 DREventCommand) *MockDRBackupCommand_GetBackupCommand_Call
- func (_c *MockDRBackupCommand_GetBackupCommand_Call) Run(run func()) *MockDRBackupCommand_GetBackupCommand_Call
- func (_c *MockDRBackupCommand_GetBackupCommand_Call) RunAndReturn(run func() DREventCommand) *MockDRBackupCommand_GetBackupCommand_Call
- type MockDRBackupCommand_Name_Call
- type MockDRCommand
- type MockDRCommand_Expecter
- type MockDRCommand_Name_Call
- type MockDREventCommand
- type MockDREventCommand_ConfigureFlags_Call
- func (_c *MockDREventCommand_ConfigureFlags_Call) Return() *MockDREventCommand_ConfigureFlags_Call
- func (_c *MockDREventCommand_ConfigureFlags_Call) Run(run func(cmd *cobra.Command)) *MockDREventCommand_ConfigureFlags_Call
- func (_c *MockDREventCommand_ConfigureFlags_Call) RunAndReturn(run func(*cobra.Command)) *MockDREventCommand_ConfigureFlags_Call
- type MockDREventCommand_Expecter
- type MockDREventCommand_Run_Call
- type MockDREventGenerateSchemaCommand
- func (_m *MockDREventGenerateSchemaCommand) ConfigureFlags(cmd *cobra.Command)
- func (_m *MockDREventGenerateSchemaCommand) EXPECT() *MockDREventGenerateSchemaCommand_Expecter
- func (_m *MockDREventGenerateSchemaCommand) GenerateConfigSchema() ([]byte, error)
- func (_m *MockDREventGenerateSchemaCommand) Run() error
- type MockDREventGenerateSchemaCommand_ConfigureFlags_Call
- func (_c *MockDREventGenerateSchemaCommand_ConfigureFlags_Call) Return() *MockDREventGenerateSchemaCommand_ConfigureFlags_Call
- func (_c *MockDREventGenerateSchemaCommand_ConfigureFlags_Call) Run(run func(cmd *cobra.Command)) *MockDREventGenerateSchemaCommand_ConfigureFlags_Call
- func (_c *MockDREventGenerateSchemaCommand_ConfigureFlags_Call) RunAndReturn(run func(*cobra.Command)) *MockDREventGenerateSchemaCommand_ConfigureFlags_Call
- type MockDREventGenerateSchemaCommand_Expecter
- func (_e *MockDREventGenerateSchemaCommand_Expecter) ConfigureFlags(cmd interface{}) *MockDREventGenerateSchemaCommand_ConfigureFlags_Call
- func (_e *MockDREventGenerateSchemaCommand_Expecter) GenerateConfigSchema() *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
- func (_e *MockDREventGenerateSchemaCommand_Expecter) Run() *MockDREventGenerateSchemaCommand_Run_Call
- type MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
- func (_c *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) Return(_a0 []byte, _a1 error) *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
- func (_c *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) Run(run func()) *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
- func (_c *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) RunAndReturn(run func() ([]byte, error)) *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
- type MockDREventGenerateSchemaCommand_Run_Call
- func (_c *MockDREventGenerateSchemaCommand_Run_Call) Return(_a0 error) *MockDREventGenerateSchemaCommand_Run_Call
- func (_c *MockDREventGenerateSchemaCommand_Run_Call) Run(run func()) *MockDREventGenerateSchemaCommand_Run_Call
- func (_c *MockDREventGenerateSchemaCommand_Run_Call) RunAndReturn(run func() error) *MockDREventGenerateSchemaCommand_Run_Call
- type MockDRRestoreCommand
- type MockDRRestoreCommand_Expecter
- type MockDRRestoreCommand_GetRestoreCommand_Call
- func (_c *MockDRRestoreCommand_GetRestoreCommand_Call) Return(_a0 DREventCommand) *MockDRRestoreCommand_GetRestoreCommand_Call
- func (_c *MockDRRestoreCommand_GetRestoreCommand_Call) Run(run func()) *MockDRRestoreCommand_GetRestoreCommand_Call
- func (_c *MockDRRestoreCommand_GetRestoreCommand_Call) RunAndReturn(run func() DREventCommand) *MockDRRestoreCommand_GetRestoreCommand_Call
- type MockDRRestoreCommand_Name_Call
- type TeleportBackupConfig
- type TeleportBackupConfigClusterConfig
- type TeleportBackupConfigClustersConfig
- type TeleportConfigAuditSessionLogs
- type TeleportDRCommand
- type TeleportRestoreClusterConfig
- type TeleportRestoreClustersConfig
- type TeleportRestoreConfig
- type VaultWardenBackupConfig
- type VaultWardenDRCommand
- type VaultWardenRestoreConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDRCommand ¶
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"` }
type AuthentikBackupConfigCNPG ¶ added in v0.0.6
type AuthentikBackupConfigCNPG struct { Name string `yaml:"name" jsonschema:"required"` ServingCertIssuerName string `yaml:"servingCertIssuerName" jsonschema:"required"` ClientCACertIssuerName string `yaml:"clientCACertIssuerName" 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"` ClientCertIssuer ConfigIssuer `yaml:"clientCertIssuer" jsonschema:"required"` PostgresUserCertOptions cnpgrestore.CNPGRestoreOptionsCert `yaml:"postgresUserCert,omitempty"` }
type ClusterDRCommand ¶ added in v0.0.5
type ClusterDRCommand[TBackupConfig, TRestoreConfig interface{}] struct {
// contains filtered or unexported fields
}
func NewClusterDRCommand ¶ added in v0.0.5
func NewClusterDRCommand[TBackupConfig, TRestoreConfig interface{}](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 interface{}] 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 interface{}](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 interface{}] 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"` ServiceSearchDomains []string `yaml:"serviceSearchDomains,omitempty"` }
type ConfigBackupVolume ¶ added in v0.0.6
type ConfigIssuer ¶ added in v0.0.7
type DRBackupCommand ¶ added in v0.0.2
type DRBackupCommand interface { DRCommand GetBackupCommand() DREventCommand }
type DREventCommand ¶ added in v0.0.2
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 MockDRBackupCommand ¶ added in v0.0.2
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 (_m *MockDRBackupCommand) EXPECT() *MockDRBackupCommand_Expecter
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
func (_e *MockDRBackupCommand_Expecter) GetBackupCommand() *MockDRBackupCommand_GetBackupCommand_Call
GetBackupCommand is a helper method to define mock.On call
func (*MockDRBackupCommand_Expecter) Name ¶ added in v0.0.2
func (_e *MockDRBackupCommand_Expecter) Name() *MockDRBackupCommand_Name_Call
Name is a helper method to define mock.On call
type MockDRBackupCommand_GetBackupCommand_Call ¶ added in v0.0.2
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 (_c *MockDRBackupCommand_GetBackupCommand_Call) Return(_a0 DREventCommand) *MockDRBackupCommand_GetBackupCommand_Call
func (*MockDRBackupCommand_GetBackupCommand_Call) Run ¶ added in v0.0.2
func (_c *MockDRBackupCommand_GetBackupCommand_Call) Run(run func()) *MockDRBackupCommand_GetBackupCommand_Call
func (*MockDRBackupCommand_GetBackupCommand_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockDRBackupCommand_GetBackupCommand_Call) RunAndReturn(run func() DREventCommand) *MockDRBackupCommand_GetBackupCommand_Call
type MockDRBackupCommand_Name_Call ¶ added in v0.0.2
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 (_c *MockDRBackupCommand_Name_Call) Return(_a0 string) *MockDRBackupCommand_Name_Call
func (*MockDRBackupCommand_Name_Call) Run ¶ added in v0.0.2
func (_c *MockDRBackupCommand_Name_Call) Run(run func()) *MockDRBackupCommand_Name_Call
func (*MockDRBackupCommand_Name_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockDRBackupCommand_Name_Call) RunAndReturn(run func() string) *MockDRBackupCommand_Name_Call
type MockDRCommand ¶ added in v0.0.2
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
func (_e *MockDRCommand_Expecter) Name() *MockDRCommand_Name_Call
Name is a helper method to define mock.On call
type MockDRCommand_Name_Call ¶ added in v0.0.2
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 (_c *MockDRCommand_Name_Call) Return(_a0 string) *MockDRCommand_Name_Call
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
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 (_m *MockDREventCommand) EXPECT() *MockDREventCommand_Expecter
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
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 (_c *MockDREventCommand_ConfigureFlags_Call) Return() *MockDREventCommand_ConfigureFlags_Call
func (*MockDREventCommand_ConfigureFlags_Call) Run ¶ added in v0.0.2
func (_c *MockDREventCommand_ConfigureFlags_Call) Run(run func(cmd *cobra.Command)) *MockDREventCommand_ConfigureFlags_Call
func (*MockDREventCommand_ConfigureFlags_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockDREventCommand_ConfigureFlags_Call) RunAndReturn(run func(*cobra.Command)) *MockDREventCommand_ConfigureFlags_Call
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
func (_e *MockDREventCommand_Expecter) Run() *MockDREventCommand_Run_Call
Run is a helper method to define mock.On call
type MockDREventCommand_Run_Call ¶ added in v0.0.2
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 (_c *MockDREventCommand_Run_Call) Return(_a0 error) *MockDREventCommand_Run_Call
func (*MockDREventCommand_Run_Call) Run ¶ added in v0.0.2
func (_c *MockDREventCommand_Run_Call) Run(run func()) *MockDREventCommand_Run_Call
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
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 (_m *MockDREventGenerateSchemaCommand) EXPECT() *MockDREventGenerateSchemaCommand_Expecter
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
func (_m *MockDREventGenerateSchemaCommand) Run() error
Run provides a mock function with no fields
type MockDREventGenerateSchemaCommand_ConfigureFlags_Call ¶ added in v0.0.2
MockDREventGenerateSchemaCommand_ConfigureFlags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigureFlags'
func (*MockDREventGenerateSchemaCommand_ConfigureFlags_Call) Run ¶ added in v0.0.2
func (_c *MockDREventGenerateSchemaCommand_ConfigureFlags_Call) Run(run func(cmd *cobra.Command)) *MockDREventGenerateSchemaCommand_ConfigureFlags_Call
func (*MockDREventGenerateSchemaCommand_ConfigureFlags_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockDREventGenerateSchemaCommand_ConfigureFlags_Call) RunAndReturn(run func(*cobra.Command)) *MockDREventGenerateSchemaCommand_ConfigureFlags_Call
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
func (_e *MockDREventGenerateSchemaCommand_Expecter) ConfigureFlags(cmd interface{}) *MockDREventGenerateSchemaCommand_ConfigureFlags_Call
ConfigureFlags is a helper method to define mock.On call
- cmd *cobra.Command
func (*MockDREventGenerateSchemaCommand_Expecter) GenerateConfigSchema ¶ added in v0.0.2
func (_e *MockDREventGenerateSchemaCommand_Expecter) GenerateConfigSchema() *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
GenerateConfigSchema is a helper method to define mock.On call
func (*MockDREventGenerateSchemaCommand_Expecter) Run ¶ added in v0.0.2
func (_e *MockDREventGenerateSchemaCommand_Expecter) Run() *MockDREventGenerateSchemaCommand_Run_Call
Run is a helper method to define mock.On call
type MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call ¶ added in v0.0.2
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 (_c *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) Return(_a0 []byte, _a1 error) *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
func (*MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) Run ¶ added in v0.0.2
func (_c *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) Run(run func()) *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
func (*MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call) RunAndReturn(run func() ([]byte, error)) *MockDREventGenerateSchemaCommand_GenerateConfigSchema_Call
type MockDREventGenerateSchemaCommand_Run_Call ¶ added in v0.0.2
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 (_c *MockDREventGenerateSchemaCommand_Run_Call) Return(_a0 error) *MockDREventGenerateSchemaCommand_Run_Call
func (*MockDREventGenerateSchemaCommand_Run_Call) Run ¶ added in v0.0.2
func (_c *MockDREventGenerateSchemaCommand_Run_Call) Run(run func()) *MockDREventGenerateSchemaCommand_Run_Call
func (*MockDREventGenerateSchemaCommand_Run_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockDREventGenerateSchemaCommand_Run_Call) RunAndReturn(run func() error) *MockDREventGenerateSchemaCommand_Run_Call
type MockDRRestoreCommand ¶ added in v0.0.2
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 (_m *MockDRRestoreCommand) EXPECT() *MockDRRestoreCommand_Expecter
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
func (_e *MockDRRestoreCommand_Expecter) GetRestoreCommand() *MockDRRestoreCommand_GetRestoreCommand_Call
GetRestoreCommand is a helper method to define mock.On call
func (*MockDRRestoreCommand_Expecter) Name ¶ added in v0.0.2
func (_e *MockDRRestoreCommand_Expecter) Name() *MockDRRestoreCommand_Name_Call
Name is a helper method to define mock.On call
type MockDRRestoreCommand_GetRestoreCommand_Call ¶ added in v0.0.2
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 (_c *MockDRRestoreCommand_GetRestoreCommand_Call) Return(_a0 DREventCommand) *MockDRRestoreCommand_GetRestoreCommand_Call
func (*MockDRRestoreCommand_GetRestoreCommand_Call) Run ¶ added in v0.0.2
func (_c *MockDRRestoreCommand_GetRestoreCommand_Call) Run(run func()) *MockDRRestoreCommand_GetRestoreCommand_Call
func (*MockDRRestoreCommand_GetRestoreCommand_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockDRRestoreCommand_GetRestoreCommand_Call) RunAndReturn(run func() DREventCommand) *MockDRRestoreCommand_GetRestoreCommand_Call
type MockDRRestoreCommand_Name_Call ¶ added in v0.0.2
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 (_c *MockDRRestoreCommand_Name_Call) Return(_a0 string) *MockDRRestoreCommand_Name_Call
func (*MockDRRestoreCommand_Name_Call) Run ¶ added in v0.0.2
func (_c *MockDRRestoreCommand_Name_Call) Run(run func()) *MockDRRestoreCommand_Name_Call
func (*MockDRRestoreCommand_Name_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockDRRestoreCommand_Name_Call) RunAndReturn(run func() string) *MockDRRestoreCommand_Name_Call
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"` ServingCertIssuerName string `yaml:"servingCertIssuerName" jsonschema:"required"` ClientCACertIssuerName string `yaml:"clientCACertIssuerName" 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"` }
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"` ClientCertIssuer ConfigIssuer `yaml:"clientCertIssuer" 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 { disasterrecovery.VaultWardenBackupOptions `yaml:",inline"` // TODO test if these can be moved to an embedded "required" struct Namespace string `yaml:"namespace" jsonschema:"required"` BackupName string `yaml:"backupName" jsonschema:"required"` DataPVCName string `yaml:"dataPVCName" jsonschema:"required"` CNPGClusterName string `yaml:"cnpgClusterName" jsonschema:"required"` ServingCertIssuerName string `yaml:"servingCertIssuerName" jsonschema:"required"` ClientCACertIssuerName string `yaml:"clientCACertIssuerName" jsonschema:"required"` }
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 { disasterrecovery.VaultWardenRestoreOptions `yaml:",inline"` // TODO test if these can be moved to an embedded "required" struct Namespace string `yaml:"namespace" jsonschema:"required"` BackupName string `yaml:"backupName" jsonschema:"required"` DataPVCName string `yaml:"dataPVCName" jsonschema:"required"` CNPGClusterName string `yaml:"cnpgClusterName" jsonschema:"required"` ServingCertName string `yaml:"servingCertName" jsonschema:"required"` ClientCertIssuerName string `yaml:"clientCertIssuerName" jsonschema:"required"` }