image

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Production registry root URL
	ProdRegistry = "registry.k8s.io"

	// Staging repository root URL prefix
	StagingRepoPrefix = "gcr.io/k8s-staging-"

	// The suffix of the default image repository to promote images from
	// i.e., gcr.io/<staging-prefix>-<staging-suffix>
	// e.g., gcr.io/k8s-staging-foo
	StagingRepoSuffix = "kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestList

type ManifestList []struct {
	Name string `json:"name"`

	// A digest to tag(s) map used in the promoter manifest e.g.,
	// "sha256:ef9493aff21f7e368fb3968b46ff2542b0f6863a5de2b9bc58d8d151d8b0232c": ["v1.17.12-rc.0", "foo", "bar"]
	DMap map[string][]string `json:"dmap"`
}

ManifestList abstracts the manifest used by the image promoter

func NewManifestListFromFile

func NewManifestListFromFile(manifestPath string) (imagesList *ManifestList, err error)

NewManifestListFromFile parses an image promoter manifest file

func (*ManifestList) Parse

func (imagesList *ManifestList) Parse(yamlCode []byte) error

Parse reads yaml code into an ImagePromoterManifest object

func (*ManifestList) ToYAML

func (imagesList *ManifestList) ToYAML() ([]byte, error)

ToYAML serializes an image list into an YAML file. We serialize the data by hand to emulate the way it's done by the image promoter

func (*ManifestList) Write

func (imagesList *ManifestList) Write(filePath string) error

Write writes the promoter image list into an YAML file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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