juju: github.com/juju/juju/apiserver/common/imagecommon Index | Files

package imagecommon

import "github.com/juju/juju/apiserver/common/imagecommon"

Index

Package Files

imagemetadata.go

func ParseMetadataListFromParams Uses

func ParseMetadataListFromParams(p params.CloudImageMetadataList, cfg *config.Config) []cloudimagemetadata.Metadata

ParseMetadataListFromParams translates params.CloudImageMetadataList into a collection of cloudimagemetadata.Metadata.

func Save Uses

func Save(st ImageMetadataInterface, metadata params.MetadataSaveParams) ([]params.ErrorResult, error)

Save stores given cloud image metadata using given persistence interface.

type ImageMetadataInterface Uses

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.

Package imagecommon imports 5 packages (graph) and is imported by 1 packages. Updated 2017-07-13. Refresh now. Tools for package owners.