imagemetadatamanager

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API is the concrete implementation of the api end point for loud image metadata manipulations.

func NewAPI

func NewAPI(
	st *state.State,
	resources facade.Resources,
	authorizer facade.Authorizer,
) (*API, error)

NewAPI returns a new cloud image metadata API facade.

func (*API) Delete

func (api *API) Delete(images params.MetadataImageIds) (params.ErrorResults, error)

Delete deletes cloud image metadata for given image ids. It supports bulk calls.

func (*API) List

List returns all found cloud image metadata that satisfy given filter. Returned list contains metadata ordered by priority.

func (*API) Save

func (api *API) Save(metadata params.MetadataSaveParams) (params.ErrorResults, error)

Save stores given cloud image metadata. It supports bulk calls.

type Model

type Model interface {
	CloudRegion() string
}

Jump to

Keyboard shortcuts

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