display

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTagManifestStatusPrinter

func NewTagManifestStatusPrinter(target oras.Target) oras.Target

NewTagManifestStatusPrinter creates a wrapper type for printing tag status.

func Print

func Print(a ...any) error

Print objects to display concurrent-safely

func PrintStatus added in v0.14.0

func PrintStatus(desc ocispec.Descriptor, status string, verbose bool) error

PrintStatus prints transfer status.

func PrintSuccessorStatus added in v0.14.0

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 added in v0.14.0

func StatusPrinter(status string, verbose bool) func(context.Context, ocispec.Descriptor) error

StatusPrinter returns a tracking function for transfer status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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