Documentation ¶
Index ¶
- Constants
- func DescriptorAttrs(desc ocispec.Descriptor) []any
- func DescriptorGroup(desc ocispec.Descriptor) slog.Attr
- func ErrAttr(err error) slog.Attr
- func OCIPlatformValue(plat *ocispec.Platform) slog.Attr
- func WithLogging(logger *slog.Logger, level slog.Level, opts *oras.CopyGraphOptions) oras.CopyGraphOptions
Constants ¶
View Source
const ErrKey = "err"
ErrKey is the slog attribute key used for errors in log messages.
Variables ¶
This section is empty.
Functions ¶
func DescriptorAttrs ¶
func DescriptorAttrs(desc ocispec.Descriptor) []any
DescriptorAttrs formats a descriptor as a list of attributes.
func DescriptorGroup ¶
func DescriptorGroup(desc ocispec.Descriptor) slog.Attr
DescriptorGroup formats an OCI descriptor for logging.
func OCIPlatformValue ¶
OCIPlatformValue formats an OCI platform for logging.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.