Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMetadataListFromParams ¶
func ParseMetadataListFromParams(p params.CloudImageMetadataList, cfg *config.Config) []cloudimagemetadata.Metadata
ParseMetadataListFromParams translates params.CloudImageMetadataList into a collection of cloudimagemetadata.Metadata.
func Save ¶
func Save(st ImageMetadataInterface, metadata params.MetadataSaveParams) ([]params.ErrorResult, error)
Save stores given cloud image metadata using given persistence interface.
Types ¶
type ImageMetadataInterface ¶
type ImageMetadataInterface interface { // SaveMetadata persists collection of given images metadata. SaveMetadata([]cloudimagemetadata.Metadata) error // ModelConfig retrieves configuration for a current model. ModelConfig() (*config.Config, error) }
ImageMetadataInterface is an interface for manipulating images metadata.
Click to show internal directories.
Click to hide internal directories.