backups

package
v0.0.0-...-a002913 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataFromResult

func MetadataFromResult(result params.BackupsMetadataResult) *backups.Metadata

MetadataFromResult returns a new Metadata based on the result. The ID of the metadata is not set. Call meta.SetID() if that is desired. Likewise with Stored and meta.SetStored().

func ResultFromMetadata

func ResultFromMetadata(meta *backups.Metadata) params.BackupsMetadataResult

ResultFromMetadata updates the result with the information in the metadata value.

Types

type API

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

API serves backup-specific API methods.

func NewAPI

func NewAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) (*API, error)

NewAPI creates a new instance of the Backups API facade.

func (*API) Create

func (a *API) Create(args params.BackupsCreateArgs) (p params.BackupsMetadataResult, err error)

Create is the API method that requests juju to create a new backup of its state. It returns the metadata for that backup.

func (*API) FinishRestore

func (a *API) FinishRestore() error

FinishRestore implements the server side of Backups.FinishRestore.

func (*API) Info

Info provides the implementation of the API method.

func (*API) List

List provides the implementation of the API method.

func (*API) PrepareRestore

func (a *API) PrepareRestore() error

PrepareRestore implements the server side of Backups.PrepareRestore.

func (*API) Remove

func (a *API) Remove(args params.BackupsRemoveArgs) error

func (*API) Restore

func (a *API) Restore(p params.RestoreArgs) error

Restore implements the server side of Backups.Restore.

Jump to

Keyboard shortcuts

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