backups

package
v0.0.0-...-6248505 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 9 Imported by: 3

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

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.

Jump to

Keyboard shortcuts

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