Back to godoc.org
github.com/juju/juju/api/imagemetadatamanager

package imagemetadatamanager

v0.0.0 (4dcf1d7)
Latest Go to latest
Published: 1 day ago | License: AGPL-3.0 | Module: github.com/juju/juju

Index

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client provides access to cloud image metadata. It is used to find, save and update image metadata.

func NewClient

func NewClient(st base.APICallCloser) *Client

NewClient returns a new metadata client.

func (*Client) Delete

func (c *Client) Delete(imageId string) error

Delete removes image metadata for given image id from stored metadata.

func (*Client) List

func (c *Client) List(
	stream, region string,
	series, arches []string,
	virtType, rootStorageType string,
) ([]params.CloudImageMetadata, error)

List returns image metadata that matches filter. Empty filter will return all image metadata.

func (*Client) Save

func (c *Client) Save(metadata []params.CloudImageMetadata) error

Save saves specified image metadata. Supports bulk saves for scenarios like cloud image metadata caching at bootstrap.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier