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 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.