util

package
v1.3.43 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPkgUrl

func GetPkgUrl(url string) string

GetPkgUrl normalizes the --pkg-url flag value, adding https:// when the scheme is missing. --pkg-url remains supported for explicit-credential flows; when it is omitted, hc derives the package endpoint from --api-url or the saved login config (see cmdutils.ResolvePkgURL).

func ParseDestinationRegistryPath

func ParseDestinationRegistryPath(registryPath string) (string, string, string)

ParseDestinationRegistryPath parses a destination ar path into its components

func ProgressBar

func ProgressBar(current, total int, width int) string

ProgressBar returns a string representing a progress bar

func Safe

func Safe[T any](p *T) T

func SetupLogging

func SetupLogging(logDir string, logLevel string) error

SetupLogging configures logging to file and stdout

func ValidateMapping

func ValidateMapping(sourceRegistry, destinationRegistry string) error

ValidateMapping validates a ar mapping

Types

This section is empty.

Directories

Path Synopsis
printer
Package printer provides output formatting utilities for the CLI
Package printer provides output formatting utilities for the CLI
progress
Package progress provides progress reporting functionality
Package progress provides progress reporting functionality
vcs

Jump to

Keyboard shortcuts

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