imagemetadata

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 4 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 {
	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) 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) ([]params.ErrorResult, error)

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

func (*Client) UpdateFromPublishedImages

func (c *Client) UpdateFromPublishedImages() error

UpdateFromPublishedImages retrieves currently published image metadata and updates stored ones accordingly. This method is primarily intended for a worker.

Jump to

Keyboard shortcuts

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