backups

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup

type Backup struct {
	Backup *BackupCreateOpts `json:"backup" required:"true"`
}

func (*Backup) Map

func (opts *Backup) Map() (map[string]interface{}, error)

type BackupCreateOpts

type BackupCreateOpts struct {
	Name            string `json:"name" required:"true"`
	Description     string `json:"description,omitempty"`
	Instance        string `json:"instance,omitempty"`
	Cluster         string `json:"cluster,omitempty"`
	ContainerPrefix string `json:"container_prefix,omitempty"`
}

type BackupResp

type BackupResp struct {
	ID          string                     `json:"id"`
	Name        string                     `json:"name"`
	Description string                     `json:"description"`
	LocationRef string                     `json:"location_ref"`
	InstanceID  string                     `json:"instance_id"`
	ClusterID   string                     `json:"cluster_id"`
	Created     string                     `json:"created"`
	Updated     string                     `json:"updated"`
	Size        float64                    `json:"size"`
	WalSize     float64                    `json:"wal_size"`
	Status      string                     `json:"status"`
	Datastore   *datastores.DatastoreShort `json:"datastore"`
	Meta        string                     `json:"meta"`
}

type BackupRespOpts

type BackupRespOpts struct {
	Backup *BackupResp `json:"backup"`
}

type CreateOptsBuilder

type CreateOptsBuilder interface {
	Map() (map[string]interface{}, error)
}

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

func Delete

func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult)

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

func Create

func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r GetResult)

func Get

func Get(client *gophercloud.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*BackupResp, error)

Jump to

Keyboard shortcuts

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