imagecommon

package
v0.0.0-...-e653fdf Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 1

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

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.

Jump to

Keyboard shortcuts

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