backups

package
v0.0.0-...-f19ae85 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client wraps the backups API for the client.

func NewClient

func NewClient(st apiState) *Client

NewClient returns a new backups API client.

func (*Client) Create

func (c *Client) Create(notes string) (*params.BackupsMetadataResult, error)

Create sends a request to create a backup of juju's state. It returns the metadata associated with the resulting backup.

func (*Client) Download

func (c *Client) Download(id string) (io.ReadCloser, error)

Download returns an io.ReadCloser for the given backup id.

func (*Client) Info

Info implements the API method.

func (*Client) List

func (c *Client) List() (*params.BackupsListResult, error)

List implements the API method.

func (*Client) Remove

func (c *Client) Remove(id string) error

func (*Client) Upload

func (c *Client) Upload(archive io.Reader, meta params.BackupsMetadataResult) (string, error)

Upload sends the backup archive to remote storage.

Jump to

Keyboard shortcuts

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