imagemetadatamanager

package
v0.0.0-...-5175f08 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

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 provides access to cloud image metadata. It is used to find, save and update image metadata.

func NewClient

func NewClient(st base.APICallCloser, options ...Option) *Client

NewClient returns a new metadata client.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, imageId string) error

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

func (*Client) List

func (c *Client) List(
	ctx context.Context,
	stream, region string,
	bases []corebase.Base, 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(ctx context.Context, metadata []params.CloudImageMetadata) error

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

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