charmdownloader

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client allows access to the charmdownloader API.

func NewClient

func NewClient(caller base.APICaller) *Client

NewClient creates a new client for accessing the charmdownloader API.

func (*Client) DownloadApplicationCharms

func (c *Client) DownloadApplicationCharms(applications []names.ApplicationTag) error

DownloadApplicationCharms iterates the list of provided applications and downloads any referenced charms that have not yet been persisted to the blob store.

func (*Client) WatchApplicationsWithPendingCharms

func (c *Client) WatchApplicationsWithPendingCharms() (watcher.StringsWatcher, error)

WatchApplicationsWithPendingCharms emits the application names that reference a charm that is pending to be downloaded.

Jump to

Keyboard shortcuts

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