image

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageSourceRepositoryEnvKey = "IMAGE_SOURCE_REPOSITORY"
	ImageSourceTagSuffixEnvKey  = "IMAGE_SOURCE_TAG_SUFFIX"
)

Variables

This section is empty.

Functions

func GetImage

func GetImage(ctx context.Context, component string, options ...Option) (string, error)

func RegisterImageName

func RegisterImageName(component, imageName string, harborVersions ...string)

func RegisterRepository

func RegisterRepository(component, repository string, harborVersions ...string)

func RegisterTag

func RegisterTag(component, tag string, harborVersions ...string)

Types

type Option

type Option func(*Options)

func WithHarborVersion

func WithHarborVersion(version string) Option

func WithImageFromSpec

func WithImageFromSpec(imageFromSpec string) Option

func WithRepository

func WithRepository(repository string) Option

func WithTagSuffix

func WithTagSuffix(tagSuffix string) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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