regsync

package
v1.4.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateConfigFile

func GenerateConfigFile() error

GenerateConfigFile creates a regsync config file out of the current branch.

func GenerateFilteredImageTagMap added in v0.5.0

func GenerateFilteredImageTagMap(filter map[string][]string) (map[string][]string, error)

GenerateFilteredImageTagMap returns a map of container images and their tags

func GenerateImageTagMap added in v0.4.5

func GenerateImageTagMap() (map[string][]string, error)

GenerateImageTagMap returns a map of container images and their tags

Types

type Config added in v1.4.6

type Config struct {
	Version  int         `yaml:"version"`  // If needed
	Creds    interface{} `yaml:"creds"`    // If needed
	Defaults interface{} `yaml:"defaults"` // If needed
	Sync     []SyncEntry `yaml:"sync"`
}

Config represents the regsync.yaml file

type SyncEntry added in v1.4.6

type SyncEntry struct {
	Source string `yaml:"source"` // image name
	Target string `yaml:"target"` // If needed
	Type   string `yaml:"type"`   // If needed
	Tags   Tags   `yaml:"tags"`   // existing tags
}

SyncEntry represents a single entry in the regsync.yaml file

type Tags added in v1.4.6

type Tags struct {
	Allow []string `yaml:"allow"`
	Deny  []string `yaml:"deny"` // If needed
}

Tags represents the tags in the regsync.yaml file related to a single entry at the prime registry

Jump to

Keyboard shortcuts

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