checkpoint

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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 ExtraInfo

type ExtraInfo struct {
	Name              string `json:"name"`
	Description       string `json:"description"`
	RetentionDuration int    `json:"retention_duration"`
}

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"`
}

type SkippedResources

type SkippedResources struct {
	ID     string `json:"id"`
	Type   string `json:"type"`
	Name   string `json:"name"`
	Code   string `json:"code"`
	Reason string `json:"reason"`
}

type Vault

type Vault struct {
	ID               string                `json:"id"`
	Name             string                `json:"name"`
	Resources        []CheckpointResources `json:"resources"`
	SkippedResources []SkippedResources    `json:"skipped_resources"`
}

Jump to

Keyboard shortcuts

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