Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Checkpoint struct {
CreatedAt string `json:"created_at"`
ID string `json:"id"`
ProjectID string `json:"project_id"`
Status string `json:"status"`
Vault Vault `json:"vault"`
ExtraInfo ExtraInfo `json:"extra_info"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Checkpoint, error)
func Get ¶
func Get(client *golangsdk.ServiceClient, id string) (*Checkpoint, error)
type CheckpointParam ¶
type CheckpointParam struct {
// Describes whether automatic triggering is enabled
// Default: false
AutoTrigger bool `json:"auto_trigger,omitempty"`
// Backup description
Description string `json:"description,omitempty"`
// Whether bacup is incremental or not
// Default: true
Incremental bool `json:"incremental,omitempty"`
// Backup name
Name string `json:"name,omitempty"`
// UUID list of resources to be backed up
Resources []string `json:"resources,omitempty"`
// Additional information on Resource
ResourceDetails []Resource `json:"resource_details,omitempty"`
}
type CheckpointResources ¶
type CheckpointResources struct {
ExtraInfo string `json:"extra_info"`
ID string `json:"id"`
Name string `json:"name"`
ProtectStatus string `json:"protect_status"`
ResourceSize string `json:"resource_size"`
Type string `json:"type"`
BackupSize string `json:"backup_size"`
BackupCount string `json:"backup_count"`
}
type CreateOpts ¶
type CreateOpts struct {
// ID of the vault
VaultID string `json:"vault_id" required:"true"`
// Checkpoint parameters
Parameters CheckpointParam `json:"parameters,omitempty"`
}
type ReplicateBackups ¶ added in v0.9.4
type ReplicateOpts ¶ added in v0.9.4
type ReplicateOpts struct {
// Parameters in the request body of performing a replication
Replicate ReplicateParam `json:"replicate" required:"true"`
}
type ReplicateParam ¶ added in v0.9.4
type ReplicateParam struct {
// Parameters in the request body of performing a replication
AutoTrigger bool `json:"auto_trigger"`
// ID of the replication destination project
DestinationProjectId string `json:"destination_project_id" required:"true"`
// ID of the replication destination region
DestinationRegion string `json:"destination_region" required:"true"`
// ID of the vault in the replication destination region
DestinationVaultId string `json:"destination_vault_id" required:"true"`
// Vault ID
VaultId string `json:"vault_id" required:"true"`
}
type Replication ¶ added in v0.9.4
type Replication struct {
VaultId string `json:"vault_id"`
DestinationProjectId string `json:"destination_project_id"`
DestinationRegion string `json:"destination_region"`
DestinationVaultId string `json:"destination_vault_id"`
ProjectId string `json:"project_id"`
ProviderId string `json:"provider_id"`
SourceRegion string `json:"source_region"`
Backups []ReplicateBackups `json:"backups"`
}
func Replicate ¶ added in v0.9.4
func Replicate(client *golangsdk.ServiceClient, opts ReplicateOpts) (*Replication, error)
type Resource ¶
type Resource struct {
// ID of the resource to be backed up
ID string `json:"id"`
// Name of the resource to be backed up
Name string `json:"name,omitempty"`
// Type of the resource to be backed up
// OS::Nova::Server | OS::Cinder::Volume
Type string `json:"type,omitempty"`
ExtraInfo *ResourceExtraInfo `json:"extra_info,omitempty"`
}
type ResourceExtraInfo ¶ added in v0.9.4
type ResourceExtraInfo struct {
// IDs of the disks that will not be backed up.
ExcludeVolumes []string `json:"exclude_volumes,omitempty"`
}
type SkippedResources ¶
type Vault ¶
type Vault struct {
ID string `json:"id"`
Name string `json:"name"`
Resources []CheckpointResources `json:"resources"`
SkippedResources []SkippedResources `json:"skipped_resources"`
}
Click to show internal directories.
Click to hide internal directories.