json

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobInspectHandler

type BlobInspectHandler struct {
	// contains filtered or unexported fields
}

BlobInspectHandler is a handler for inspecting metadata information and rendering it in JSON format. It implements the metadata.BlobInspectHandler interface.

func NewBlobInspectHandler

func NewBlobInspectHandler(printer *output.Printer) *BlobInspectHandler

NewBlobInspectHandler creates a BlobInspectHandler to inspect signature and print in JSON format.

func (*BlobInspectHandler) OnEnvelopeParsed

func (h *BlobInspectHandler) OnEnvelopeParsed(nodeName, signatureMediaType string, envelope coresignature.Envelope) error

OnEnvelopeParsed sets the parsed envelope for the handler.

func (*BlobInspectHandler) Render

func (h *BlobInspectHandler) Render() error

Render prints out the metadata information in JSON format.

type InspectHandler

type InspectHandler struct {
	// contains filtered or unexported fields
}

InspectHandler is the handler for inspecting metadata information and rendering it in JSON format. It implements the metadata.InspectHandler interface.

func NewInspectHandler

func NewInspectHandler(printer *output.Printer) *InspectHandler

NewInspectHandler creates an Inspecthandler to inspect signatures and print in JSON format.

func (*InspectHandler) InspectSignature

func (h *InspectHandler) InspectSignature(manifestDesc, signatureDesc ocispec.Descriptor, envelope coresignature.Envelope) error

InspectSignature inspects a signature to get it ready to be rendered.

func (*InspectHandler) OnReferenceResolved

func (h *InspectHandler) OnReferenceResolved(_, mediaType string)

OnReferenceResolved sets the artifact reference and media type for the handler.

The reference is no-op for this handler.

func (*InspectHandler) Render

func (h *InspectHandler) Render() error

Render renders signatures metadata information in JSON format.

Jump to

Keyboard shortcuts

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