registries

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StagingURL of SUSE Staging registry
	StagingURL string = "stgregistry.suse.com/"
	// DockerURL of images
	DockerURL string = "docker.io/"
)

Variables

View Source
var (
	// uaString is meant to resemble the User-Agent sent by browsers with requests.
	// See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
	UaString = fmt.Sprintf("cosign/%s (%s; %s)", version.GetVersionInfo().GitVersion, runtime.GOOS, runtime.GOARCH)
)

Functions

func DockerCheckRCTags

func DockerCheckRCTags(ctx context.Context, repoRoot string) map[string][]string

DockerCheckRCTags checks for any images that have RC tags

func DockerScan added in v1.6.7

func DockerScan(ctx context.Context) error

DockerScan lists the repository tags from the local assets/ folder, compares them against the corresponding Docker Hub repository tags, and reports any discrepancies. It returns an error if an image tag from the assets/ folder is not found on Docker Hub, or if a repository is not in the `rancher` namespace.

func GenerateFilteredImageTagMap

func GenerateFilteredImageTagMap(ctx context.Context, filter map[string][]string) (map[string][]string, error)

GenerateFilteredImageTagMap returns a map of container images and their tags

func Scan

func Scan(ctx context.Context, primeRegistry string) error

Scan will untar and map all images/tags dependencies, scan the staging registry, prime registry and if they are available there, it will create 2 yaml files:

  • dockerToPrime.yaml
  • stagingToPrime.yaml

Which will be used by another process to sync images/tags to Prime registry.

func Sync

func Sync(ctx context.Context, primeUser, primePass, primeURL, dockerUser, dockerPass, stagingUser, stagingPass string) error

Sync will load the sync yaml files and iterate through each image/tags copying and pushing without overwriting anything. There can be 2 sources:

  • Docker Hub
  • Staging Registry

There is only one destination:

  • Prime Registry

func SyncCustom added in v1.9.1

func SyncCustom(ctx context.Context, primeUser, primePass, primeURL, stagingUser, stagingPass, customPath string, debug bool) error

SyncCustom will be used for manual releases in Prime Charts until we define a proper process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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