backups

package
v0.0.0-...-0ce4854 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

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(caller base.APICallCloser, options ...Option) *Client

NewClient returns a new backups API client.

func (*Client) Create

func (c *Client) Create(ctx context.Context, notes string, noDownload bool) (*params.BackupsMetadataResult, error)

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.

func (*Client) Download

func (c *Client) Download(ctx context.Context, filename string) (io.ReadCloser, error)

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

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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