errors

package
v0.0.0-...-c3d9892 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: AGPL-3.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// NotValid indicates that the metadata provided is invalid, meaning that it
	// as several required fields empty.
	NotValid = errors.ConstError("invalid metadata")

	// NotFound is an error constant indicating that the requested metadata
	// could not be found.
	NotFound = errors.ConstError("metadata not found")

	// EmptyImageID is an error constant indicating that the image ID provided
	// is empty.
	EmptyImageID = errors.ConstError("image id is empty")

	// ImageMetadataAlreadyExists is an error constant indicating that the
	// metadata for the specified image ID already exists.
	ImageMetadataAlreadyExists = errors.ConstError("image metadata already exists")
)

Variables

This section is empty.

Functions

func NotValidMissingFields

func NotValidMissingFields(imageID string, missingFields []string) error

NotValidMissingFields returns an error indicating that certain fields are missing from the metadata for the specified image ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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