Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API provides backup-specific API methods.
func NewAPI ¶
func NewAPI( controllerConfigService ControllerConfigService, authorizer facade.Authorizer, machineTag names.Tag, dataDir, logDir string, ) (*API, error)
NewAPI creates a new instance of the Backups API facade.
func (*API) Create ¶
func (a *API) Create(context.Context, params.BackupsCreateArgs) (params.BackupsMetadataResult, error)
Create is the API method that requests juju to create a new backup of its state.
type ControllerConfigService ¶
type ControllerConfigService interface { // ControllerConfig returns the controller config. ControllerConfig(context.Context) (controller.Config, error) }
ControllerConfigService is an interface that provides the controller config.
Click to show internal directories.
Click to hide internal directories.