Client wraps the backups API for the client.
func MakeClient(frontend base.ClientFacade, backend base.FacadeCaller, client *httprequest.Client) *Client
MakeClient is a direct constructor function for a backups client.
NewClient returns a new backups API client.
Create sends a request to create a backup of juju's state. It returns the metadata associated with the resulting backup and a filename for download.
Download returns an io.ReadCloser for the given backup id.
Info implements the API method.
List implements the API method.
Restore performs restore using a backup id corresponding to a backup stored in the server.
func (c *Client) RestoreReader(r io.ReadSeeker, meta *params.BackupsMetadataResult, newClient ClientConnection) error
RestoreReader restores the contents of backupFile as backup.
Upload sends the backup archive to remote storage.
ClientConnection type represents a function capable of spawning a new Client connection it is used to pass around connection factories when necessary. TODO(perrito666) This is a workaround for lp:1399722 .