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 ParseEnvironmentVariables ¶ added in v0.29.19
func ParseEnvironmentVariables()
Types ¶
Click to show internal directories.
Click to hide internal directories.