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 *common.Resources, authorizer common.Authorizer, ) (*API, error)
NewAPI returns a new cloud image metadata API facade.
func (*API) List ¶
func (api *API) List(filter params.ImageMetadataFilter) (params.ListCloudImageMetadataResult, error)
List returns all found cloud image metadata that satisfy given filter. Returned list contains metadata for custom images first, then public.
func (*API) Save ¶
func (api *API) Save(metadata params.MetadataSaveParams) (params.ErrorResults, error)
Save stores given cloud image metadata. It supports bulk calls.
func (*API) UpdateFromPublishedImages ¶
UpdateFromPublishedImages retrieves currently published image metadata and updates stored ones accordingly.
Click to show internal directories.
Click to hide internal directories.