sync

package
v1.3.8-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncBlobUploadDir = ".sync"
)

Variables

This section is empty.

Functions

func OneImage

func OneImage(cfg Config, storeController storage.StoreController,
	repo, tag string, isArtifact bool, log log.Logger) error

func Run

func Run(cfg Config, storeController storage.StoreController, wtgrp *goSync.WaitGroup, logger log.Logger) error

func StripRegistryTransport added in v1.3.8

func StripRegistryTransport(url string) string

sync needs transport to be stripped to not be wrongly interpreted as an image reference at a non-fully qualified registry (hostname as image and port as tag).

Types

type Config

type Config struct {
	Enable          *bool
	CredentialsFile string
	Registries      []RegistryConfig
}

type Content

type Content struct {
	Prefix string
	Tags   *Tags
}

type Credentials

type Credentials struct {
	Username string
	Password string
}

type CredentialsFile

type CredentialsFile map[string]Credentials

key is registry address.

type ReferenceList added in v1.3.8

type ReferenceList struct {
	References []notation.Descriptor `json:"references"`
}

type RegistryConfig

type RegistryConfig struct {
	URLs         []string
	PollInterval time.Duration
	Content      []Content
	TLSVerify    *bool
	OnDemand     bool
	CertDir      string
	MaxRetries   *int
	RetryDelay   *time.Duration
}

type Tags

type Tags struct {
	Regex  *string
	Semver *bool
}

Jump to

Keyboard shortcuts

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