Documentation
¶
Index ¶
- Constants
- func WrapFlagsForSecrets(fs *pflag.FlagSet)
- type App
- type AwsS3
- type AzureBlob
- type Backup
- type BackupXDR
- type ClientPolicy
- type Common
- type Compression
- type Encryption
- type GcpStorage
- type Local
- type Operation
- type Restore
- type Root
- type SecretAgent
- type ServerBackup
- type ServiceBackupList
- type ServiceBackupRoutine
- type ServiceBackupTrigger
- type ServiceConfigCluster
- type ServiceConfigFile
- type ServiceConfigName
- type ServiceConfigPolicy
- type ServiceConfigRoutine
- type ServiceConfigStorage
- type ServiceConnection
- type ServiceRestoreJobID
- type ServiceRestoreJobs
- type ServiceRestoreRequest
- type ServiceRestoreTimestamp
Constants ¶
const ( SectionTextUsageBackup = "\nUsage:\n absctl backup [flags]" SectionTextUsageRestore = "\nUsage:\n absctl restore [flags]" SectionTextSecretAgentBackup = "\nSecret Agent Flags:\n" + "Options pertaining to the Aerospike Secret Agent.\n" + "See documentation here: https://aerospike.com/docs/tools/secret-agent.\n" + "Both backup and restore commands support getting all the cloud configuration parameters\n" + "from the Aerospike Secret Agent.\n" + "To use a secret as an option, use this format: 'secrets:<resource_name>:<secret_name>' \n" + "Example: absctl backup --azure-account-name secret:resource1:azaccount" SectionTextSecretAgentRestore = "\nSecret Agent Flags:\n" + "Options pertaining to the Aerospike Secret Agent.\n" + "See documentation here: https://aerospike.com/docs/tools/secret-agent.\n" + "Both backup and restore commands support getting all the cloud configuration parameters\n" + "from the Aerospike Secret Agent.\n" + "To use a secret as an option, use this format: 'secrets:<resource_name>:<secret_name>' \n" + "Example: absctl restore --azure-account-name secret:resource1:azaccount" SectionTextBackup = "\nBackup Flags:" SectionTextRestore = "\nBackup Flags:" SectionTextGeneral = "\nGeneral Flags:" SectionTextAerospike = "\nAerospike Client Flags:" SectionTextCompression = "\nCompression Flags:" SectionTextEncryption = "\nEncryption Flags:" SectionTextLocal = "\nLocal Storage Flags:" SectionTextAWS = "\nAWS Storage Flags:\n" + "For S3, the storage bucket name must be set with the --s3-bucket-name flag.\n" + "--directory path will only contain the folder name.\n" + "--s3-endpoint-override is used for MinIO storage instead of AWS.\n" + "Any AWS parameter can be retrieved from Secret Agent." SectionTextGCP = "\nGCP Storage Flags:\n" + "For GCP storage, the bucket name must be set with --gcp-bucket-name flag.\n" + "--directory path will only contain the folder name.\n" + "The flag --gcp-endpoint-override is optional, and is used for tests or any other GCP emulator.\n" + "Any GCP parameter can be retrieved from Secret Agent." SectionTextAzure = "\nAzure Storage Flags:\n" + "For Azure storage, the container name must be set with --azure-container-name flag.\n" + "--directory path will only contain folder name.\n" + "The flag --azure-endpoint is also mandatory, as each storage account has different service address.\n" + "For authentication, use --azure-account-name and --azure-account-key, or \n" + "--azure-tenant-id, --azure-client-id and --azure-client-secret.\n" + "Any Azure parameter can be retrieved from Secret Agent." )
Variables ¶
This section is empty.
Functions ¶
func WrapFlagsForSecrets ¶ added in v1.1.0
WrapFlagsForSecrets replaces flag Values on Aerospike connection flags with deferred wrappers that accept Secret Agent references (secrets:resource:key). Must be called after NewFlagSet() and before the flagset is parsed by cobra.
CertFlag values get a specialised wrapper that bypasses Set() after resolution (the resolved value is cert content, not a file path). All other custom types get a generic wrapper that delegates to the original Set() after resolution.
Types ¶
type App ¶
func (*App) NewFlagSet ¶
type AwsS3 ¶
func (*AwsS3) NewFlagSet ¶
type AzureBlob ¶
func NewAzureBlob ¶
func (*AzureBlob) GetAzureBlob ¶
func (*AzureBlob) NewFlagSet ¶
type Backup ¶
func (*Backup) NewFlagSet ¶
type BackupXDR ¶
func NewBackupXDR ¶
func NewBackupXDR() *BackupXDR
func (*BackupXDR) GetBackupXDR ¶
func (*BackupXDR) NewFlagSet ¶
type ClientPolicy ¶
type ClientPolicy struct {
models.ClientPolicy
}
func NewClientPolicy ¶
func NewClientPolicy() *ClientPolicy
func (*ClientPolicy) GetClientPolicy ¶
func (f *ClientPolicy) GetClientPolicy() *models.ClientPolicy
func (*ClientPolicy) NewFlagSet ¶
func (f *ClientPolicy) NewFlagSet() *pflag.FlagSet
type Common ¶
type Common struct {
// contains filtered or unexported fields
}
func (*Common) NewFlagSet ¶
type Compression ¶
type Compression struct {
models.Compression
// contains filtered or unexported fields
}
func NewCompression ¶
func NewCompression(operation Operation) *Compression
func (*Compression) GetCompression ¶
func (f *Compression) GetCompression() *models.Compression
func (*Compression) NewFlagSet ¶
func (f *Compression) NewFlagSet() *pflag.FlagSet
type Encryption ¶
type Encryption struct {
models.Encryption
// contains filtered or unexported fields
}
func NewEncryption ¶
func NewEncryption(operation Operation) *Encryption
func (*Encryption) GetEncryption ¶
func (f *Encryption) GetEncryption() *models.Encryption
func (*Encryption) NewFlagSet ¶
func (f *Encryption) NewFlagSet() *pflag.FlagSet
type GcpStorage ¶
type GcpStorage struct {
models.GcpStorage
// contains filtered or unexported fields
}
func NewGcpStorage ¶
func NewGcpStorage(operation Operation) *GcpStorage
func (*GcpStorage) GetGcpStorage ¶
func (f *GcpStorage) GetGcpStorage() *models.GcpStorage
func (*GcpStorage) NewFlagSet ¶
func (f *GcpStorage) NewFlagSet() *pflag.FlagSet
type Local ¶
func (*Local) NewFlagSet ¶
type Restore ¶
func NewRestore ¶
func NewRestore() *Restore
func (*Restore) GetRestore ¶
func (*Restore) NewFlagSet ¶
type Root ¶
func (*Root) NewFlagSet ¶
type SecretAgent ¶
type SecretAgent struct {
models.SecretAgent
}
func NewSecretAgent ¶
func NewSecretAgent() *SecretAgent
func (*SecretAgent) GetSecretAgent ¶
func (f *SecretAgent) GetSecretAgent() *models.SecretAgent
func (*SecretAgent) NewFlagSet ¶
func (f *SecretAgent) NewFlagSet() *pflag.FlagSet
type ServerBackup ¶ added in v1.1.0
type ServerBackup struct {
models.ServerBackup
}
func NewServerBackup ¶ added in v1.1.0
func NewServerBackup() *ServerBackup
func (*ServerBackup) GetIntegratedBackup ¶ added in v1.1.0
func (f *ServerBackup) GetIntegratedBackup() *models.ServerBackup
func (*ServerBackup) NewBackupCreateFlagSet ¶ added in v1.1.0
func (f *ServerBackup) NewBackupCreateFlagSet() *pflag.FlagSet
func (*ServerBackup) NewBackupListFlagSet ¶ added in v1.1.0
func (f *ServerBackup) NewBackupListFlagSet() *pflag.FlagSet
func (*ServerBackup) NewRestoreStartFlagSet ¶ added in v1.1.0
func (f *ServerBackup) NewRestoreStartFlagSet() *pflag.FlagSet
type ServiceBackupList ¶ added in v1.1.0
type ServiceBackupList struct {
models.BackupListFilter
}
ServiceBackupList holds flags for the full/incremental list commands.
func NewServiceBackupList ¶ added in v1.1.0
func NewServiceBackupList() *ServiceBackupList
func (*ServiceBackupList) NewFlagSet ¶ added in v1.1.0
func (f *ServiceBackupList) NewFlagSet() *pflag.FlagSet
type ServiceBackupRoutine ¶ added in v1.1.0
type ServiceBackupRoutine struct {
models.BackupRoutine
}
ServiceBackupRoutine holds the --name flag used by cancel and status commands.
func NewServiceBackupRoutine ¶ added in v1.1.0
func NewServiceBackupRoutine() *ServiceBackupRoutine
func (*ServiceBackupRoutine) NewFlagSet ¶ added in v1.1.0
func (f *ServiceBackupRoutine) NewFlagSet() *pflag.FlagSet
type ServiceBackupTrigger ¶ added in v1.1.0
type ServiceBackupTrigger struct {
models.BackupTrigger
}
ServiceBackupTrigger holds flags for the full/incremental start commands.
func NewServiceBackupTrigger ¶ added in v1.1.0
func NewServiceBackupTrigger() *ServiceBackupTrigger
func (*ServiceBackupTrigger) NewFlagSet ¶ added in v1.1.0
func (f *ServiceBackupTrigger) NewFlagSet() *pflag.FlagSet
type ServiceConfigCluster ¶ added in v1.1.0
type ServiceConfigCluster struct {
models.ConfigClusterFields
}
ServiceConfigCluster holds flags for the `service config clusters add|update` commands. Each leaf field of DtoAerospikeCluster is exposed as an individual flag;
func NewServiceConfigCluster ¶ added in v1.1.0
func NewServiceConfigCluster() *ServiceConfigCluster
func (*ServiceConfigCluster) NewFlagSet ¶ added in v1.1.0
func (f *ServiceConfigCluster) NewFlagSet() *pflag.FlagSet
type ServiceConfigFile ¶ added in v1.1.0
type ServiceConfigFile struct {
models.ConfigUpdate
}
ServiceConfigFile holds the --file flag for replacing the full service configuration.
func NewServiceConfigFile ¶ added in v1.1.0
func NewServiceConfigFile() *ServiceConfigFile
func (*ServiceConfigFile) NewFlagSet ¶ added in v1.1.0
func (f *ServiceConfigFile) NewFlagSet() *pflag.FlagSet
type ServiceConfigName ¶ added in v1.1.0
type ServiceConfigName struct {
models.ConfigResourceName
}
ServiceConfigName holds the --name flag for show/delete/enable/disable commands.
func NewServiceConfigName ¶ added in v1.1.0
func NewServiceConfigName() *ServiceConfigName
func (*ServiceConfigName) NewFlagSet ¶ added in v1.1.0
func (f *ServiceConfigName) NewFlagSet() *pflag.FlagSet
type ServiceConfigPolicy ¶ added in v1.1.0
type ServiceConfigPolicy struct {
models.ConfigPolicyFields
}
ServiceConfigPolicy holds flags for the `service config policies add|update` commands. Each leaf field of DtoBackupPolicy is exposed as an individual flag;
func NewServiceConfigPolicy ¶ added in v1.1.0
func NewServiceConfigPolicy() *ServiceConfigPolicy
func (*ServiceConfigPolicy) NewFlagSet ¶ added in v1.1.0
func (f *ServiceConfigPolicy) NewFlagSet() *pflag.FlagSet
type ServiceConfigRoutine ¶ added in v1.1.0
type ServiceConfigRoutine struct {
models.ConfigRoutineFields
}
ServiceConfigRoutine holds flags for the `service config routines add|update` commands. Each leaf field of DtoBackupRoutine is exposed as an individual flag;
func NewServiceConfigRoutine ¶ added in v1.1.0
func NewServiceConfigRoutine() *ServiceConfigRoutine
func (*ServiceConfigRoutine) NewFlagSet ¶ added in v1.1.0
func (f *ServiceConfigRoutine) NewFlagSet() *pflag.FlagSet
type ServiceConfigStorage ¶ added in v1.1.0
type ServiceConfigStorage struct {
models.ConfigStorageFields
}
ServiceConfigStorage holds flags for the `service config storage add|update` commands. Storage wraps exactly one of local/s3/gcp/azure provider blocks; populating any field of a provider group selects that provider.
func NewServiceConfigStorage ¶ added in v1.1.0
func NewServiceConfigStorage() *ServiceConfigStorage
func (*ServiceConfigStorage) NewFlagSet ¶ added in v1.1.0
func (f *ServiceConfigStorage) NewFlagSet() *pflag.FlagSet
type ServiceConnection ¶ added in v1.1.0
type ServiceConnection struct {
models.ServiceConnection
}
func NewServiceConnection ¶ added in v1.1.0
func NewServiceConnection() *ServiceConnection
func (*ServiceConnection) GetServiceConnection ¶ added in v1.1.0
func (f *ServiceConnection) GetServiceConnection() *models.ServiceConnection
func (*ServiceConnection) NewFlagSet ¶ added in v1.1.0
func (f *ServiceConnection) NewFlagSet() *pflag.FlagSet
type ServiceRestoreJobID ¶ added in v1.1.0
type ServiceRestoreJobID struct {
models.RestoreJobID
}
ServiceRestoreJobID holds the --job-id flag used by cancel and status commands.
func NewServiceRestoreJobID ¶ added in v1.1.0
func NewServiceRestoreJobID() *ServiceRestoreJobID
func (*ServiceRestoreJobID) NewFlagSet ¶ added in v1.1.0
func (f *ServiceRestoreJobID) NewFlagSet() *pflag.FlagSet
type ServiceRestoreJobs ¶ added in v1.1.0
type ServiceRestoreJobs struct {
models.RestoreJobsFilter
}
ServiceRestoreJobs holds flags for the jobs (list) command.
func NewServiceRestoreJobs ¶ added in v1.1.0
func NewServiceRestoreJobs() *ServiceRestoreJobs
func (*ServiceRestoreJobs) NewFlagSet ¶ added in v1.1.0
func (f *ServiceRestoreJobs) NewFlagSet() *pflag.FlagSet
type ServiceRestoreRequest ¶ added in v1.1.0
type ServiceRestoreRequest struct {
models.RestoreRequest
}
ServiceRestoreRequest holds flags for the full and incremental restore commands.
func NewServiceRestoreRequest ¶ added in v1.1.0
func NewServiceRestoreRequest() *ServiceRestoreRequest
func (*ServiceRestoreRequest) NewFlagSet ¶ added in v1.1.0
func (f *ServiceRestoreRequest) NewFlagSet() *pflag.FlagSet
type ServiceRestoreTimestamp ¶ added in v1.1.0
type ServiceRestoreTimestamp struct {
models.RestoreTimestampRequest
}
ServiceRestoreTimestamp holds flags for the timestamp restore command.
func NewServiceRestoreTimestamp ¶ added in v1.1.0
func NewServiceRestoreTimestamp() *ServiceRestoreTimestamp
func (*ServiceRestoreTimestamp) NewFlagSet ¶ added in v1.1.0
func (f *ServiceRestoreTimestamp) NewFlagSet() *pflag.FlagSet
Source Files
¶
- app.go
- aws_s3.go
- azure_blob.go
- backup.go
- backup_xdr.go
- client_policy.go
- common.go
- compression.go
- deferred_common.go
- doc_sections.go
- encryption.go
- gcp_storage.go
- local.go
- restore.go
- root.go
- secret_agent.go
- server_backup.go
- service.go
- service_backup.go
- service_config.go
- service_config_cluster.go
- service_config_policy.go
- service_config_routine.go
- service_config_storage.go
- service_restore.go