metadata

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package metadata contains meta information about the project.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DummyImageRef holds information about companion dummy image.
	DummyImageRef = "" //nolint:gochecknoglobals
	// SampleImageRef holds information about companion sample image.
	SampleImageRef = "" //nolint:gochecknoglobals
	// ImageBasename holds a basename of a image, so the development reference
	// could be built from it.
	ImageBasename = "" //nolint:gochecknoglobals
	// ImageBasenameSeparator holds a separator between image basename and name.
	ImageBasenameSeparator = "/" //nolint:gochecknoglobals
)
View Source
var Version = "0.0.0"

Version holds application version information.

Functions

func ImageBasenamePath added in v0.5.1

func ImageBasenamePath() string

ImageBasenamePath return a path to the image basename variable.

func ImageBasenameSeparatorPath added in v0.7.0

func ImageBasenameSeparatorPath() string

ImageBasenameSeparatorPath return a path to the image basename separator variable.

func ImagePath

func ImagePath(image Image) string

ImagePath return a path to the image variable.

func ResolveImage added in v0.5.1

func ResolveImage(image Image) string

ResolveImage will try to resolve the image reference from set values. If DummyImageRef is given it will be used, otherwise the ImageBasename and Version will be used.

func VersionPath

func VersionPath() string

VersionPath return a path to the version variable.

Types

type Image

type Image string

Image represents an image.

const (
	// DummyImage represents a dummy image.
	DummyImage Image = "dummy"
	// SampleImage represents a sample image.
	SampleImage Image = "sampleimage"
)

Jump to

Keyboard shortcuts

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