params

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultParallelism = ParallelismConfig{
	Blobs:  4,
	Images: 1,
}

Functions

This section is empty.

Types

type BaseParams

type BaseParams struct {
	// --registry-login + --registry-password (can be nil in this case, means anonymous) or --license depending on the operation requested
	RegistryAuth authn.Authenticator
	RegistryHost string // --registry (FQDN with port, if one is provided)
	RegistryPath string // --registry (path)

	DeckhouseRegistryRepo string // --source during pull

	BundleDir  string // images-bundle-path argument
	WorkingDir string // Temporary directory to use for all intermediate operations on OCI layouts

	Insecure            bool // --insecure
	SkipTLSVerification bool // --skip-tls-verify

	Logger Logger
}

BaseParams hold data related to pending registry mirroring operation.

type Logger

type Logger interface {
	DebugF(format string, a ...interface{})
	DebugLn(a ...interface{})

	InfoF(format string, a ...interface{})
	InfoLn(a ...interface{})

	WarnF(format string, a ...interface{})
	WarnLn(a ...interface{})

	Process(topic string, run func() error) error
}

type ParallelismConfig

type ParallelismConfig struct {
	Blobs  int
	Images int
}

type PullParams

type PullParams struct {
	BaseParams

	DoGOSTDigests         bool  // --gost-digest
	SkipPlatform          bool  // --no-platform
	SkipSecurityDatabases bool  // --no-security-db
	SkipModules           bool  // --no-modules
	BundleChunkSize       int64 // Plain bytes

	// Only one of those 2 is filled at a single time or none at all.
	SinceVersion *semver.Version // --since-version
	DeckhouseTag string          // --deckhouse-tag

	ModulesPathSuffix string // --modules-path-suffix
}

PullParams holds data related to pending mirroring-from-registry operation.

type PushParams

type PushParams struct {
	BaseParams

	Parallelism ParallelismConfig
}

PushParams holds data related to pending mirroring-to-registry operation.

Jump to

Keyboard shortcuts

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