Documentation ¶
Index ¶
- func Logger(ctx context.Context) *slog.Logger
- func NewLogger(ctx context.Context, debug bool) (context.Context, *slog.Logger)
- func NewTagStatusHintPrinter(target oras.Target, refPrefix string) oras.Target
- func NewTagStatusPrinter(target oras.Target) oras.Target
- func Print(a ...any) error
- func PrintStatus(desc ocispec.Descriptor, status string, verbose bool) error
- func PrintSuccessorStatus(ctx context.Context, desc ocispec.Descriptor, status string, ...) error
- func ShortDigest(desc ocispec.Descriptor) (digestString string)
- func StatusPrinter(status string, verbose bool) func(context.Context, ocispec.Descriptor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTagStatusHintPrinter ¶
func NewTagStatusHintPrinter(target oras.Target, refPrefix string) oras.Target
NewTagStatusHintPrinter creates a wrapper type for printing tag status and hint.
func NewTagStatusPrinter ¶
func NewTagStatusPrinter(target oras.Target) oras.Target
NewTagStatusPrinter creates a wrapper type for printing tag status.
func PrintStatus ¶
func PrintStatus(desc ocispec.Descriptor, status string, verbose bool) error
PrintStatus prints transfer status.
func PrintSuccessorStatus ¶
func PrintSuccessorStatus( ctx context.Context, desc ocispec.Descriptor, status string, fetcher content.Fetcher, committed *sync.Map, verbose bool, ) error
PrintSuccessorStatus prints transfer status of successors.
func ShortDigest ¶
func ShortDigest(desc ocispec.Descriptor) (digestString string)
ShortDigest converts the digest of the descriptor to a short form for displaying.
func StatusPrinter ¶
StatusPrinter returns a tracking function for transfer status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.