registries

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func DockerCheckImages

func DockerCheckImages(ctx context.Context) error

DockerCheckImages checks if all container images used in charts belong to the rancher namespace

func DockerCheckRCTags

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

DockerCheckRCTags checks for any images that have RC tags

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) 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, username, password 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

Types

type TokenReponse

type TokenReponse struct {
	Token string `json:"token"`
}

TokenReponse is the response body for the Docker Hub API Login endpoint

type TokenRequest

type TokenRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

TokenRequest is the request body for the Docker Hub API Login endpoint

Jump to

Keyboard shortcuts

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