Documentation
¶
Overview ¶
Package print implements the pretty printing of OCI artifacts
Index ¶
- func All(ctx context.Context, out io.Writer, storage content.ReadOnlyGraphStorage, ...) error
- func Bytes(bytes int64) string
- func Predecessors(ctx context.Context, out io.Writer, storage content.ReadOnlyGraphStorage, ...) error
- func ShortDigest(d digest.Digest) string
- func Successors(ctx context.Context, out io.Writer, fetcher content.Fetcher, ...) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All(ctx context.Context, out io.Writer, storage content.ReadOnlyGraphStorage, node ocispec.Descriptor, options Options) error
All will print the successors an predecessors of the given descriptor.
func Predecessors ¶
func Predecessors(ctx context.Context, out io.Writer, storage content.ReadOnlyGraphStorage, desc ocispec.Descriptor, options Options) error
Predecessors the successors of the given descriptor.
func ShortDigest ¶
func ShortDigest(d digest.Digest) string
ShortDigest returns a compact representation of a digest (dropping information for brevity).
Types ¶
Click to show internal directories.
Click to hide internal directories.