regsync

package
v0.0.0-...-6eef95b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MaxSupportedConfigVersion int = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Version int        `yaml:"version,omitempty"`
	Hosts   []Host     `yaml:"creds,omitempty"`
	Sync    []SyncItem `yaml:"sync,omitempty"`
}

func Load

func Load(r io.Reader) (Document, error)

Load returns a Document ready for Sync items to be added. If r is not nil, it will be parsed and Hosts (auths) will be copied from it.

func (Document) Run

func (d Document) Run(ctx context.Context, output io.Writer, debug bool) (err error)

type ErrUnsupportedConfigVersion

type ErrUnsupportedConfigVersion int

func (ErrUnsupportedConfigVersion) Error

type Host

type Host struct {
	Name       string `yaml:"registry"`
	CredHelper string `yaml:"credHelper"`
	RepoAuth   bool   `yaml:"repoAuth"`
}

type SyncItem

type SyncItem struct {
	Source string `yaml:"source"`
	Target string `yaml:"target"`
	Type   string `yaml:"type"`
}

Jump to

Keyboard shortcuts

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