Help us shape the future of Go! Take the 2026 Go Developer Survey

push

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TempDir string

	RegistryHost      string
	RegistryPath      string
	RegistryUsername  string
	RegistryPassword  string
	ModulesPathSuffix string

	Insecure         bool
	TLSSkipVerify    bool
	ImagesBundlePath string
	Files            []string

	// Packages holds the resolved list of tar/chunked package archive paths to push,
	// assembled from the bundle directory argument and/or the --file flag.
	Packages []string

	MirrorTimeout time.Duration = -1
)

CLI Parameters.

Shared state passed between the command's hooks, relying on cobra's PreRun -> Run -> PostRun ordering:

  • PreRunE (parseAndValidateParameters) writes RegistryHost and RegistryPath from the registry argument, plus Packages, TempDir and ImagesBundlePath via resolvePackages.
  • RunE (NewPusher().Execute()) reads them to build the push params and the push service options.
  • PostRunE reads TempDir to remove the temporary directory.

The remaining vars are bound to flags by addFlags before Run.

Functions

func NewCommand

func NewCommand() *cobra.Command

func ParseEnvironmentVariables added in v0.29.19

func ParseEnvironmentVariables()

Types

type Pusher added in v0.20.10

type Pusher struct {
	// contains filtered or unexported fields
}

Pusher handles the push operation for Deckhouse distribution

func NewPusher added in v0.20.10

func NewPusher() *Pusher

NewPusher creates a new Pusher instance

func (*Pusher) Execute added in v0.20.10

func (p *Pusher) Execute() error

Execute runs the full push process

Directories

Path Synopsis
Package errdetect classifies registry errors for d8 mirror push with push-specific causes and solutions.
Package errdetect classifies registry errors for d8 mirror push with push-specific causes and solutions.

Jump to

Keyboard shortcuts

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