text

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: 6 Imported by: 0

Documentation

Overview

Package text provides the text output in human-readable format for metadata information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobVerifyHandler

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

BlobVerifyHandler is a handler for rendering output for blob verify command in human-readable format. It implements metadata/BlobVerifyHandler.

func NewBlobVerifyHandler

func NewBlobVerifyHandler(printer *output.Printer) *BlobVerifyHandler

NewBlobVerifyHandler creates a new BlobVerifyHandler.

func (*BlobVerifyHandler) OnVerifySucceeded

func (h *BlobVerifyHandler) OnVerifySucceeded(outcomes []*notation.VerificationOutcome, blobPath string)

OnVerifySucceeded sets the successful verification result for the handler.

outcomes must not be nil or empty.

func (*BlobVerifyHandler) Render

func (h *BlobVerifyHandler) Render() error

Render prints out the verification results in human-readable format.

type VerifyHandler

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

VerifyHandler is a handler for rendering output for verify command in human-readable format.

func NewVerifyHandler

func NewVerifyHandler(printer *output.Printer) *VerifyHandler

NewVerifyHandler creates a new VerifyHandler.

func (*VerifyHandler) OnResolvingTagReference

func (h *VerifyHandler) OnResolvingTagReference(reference string)

OnResolvingTagReference outputs the tag reference warning.

func (*VerifyHandler) OnVerifySucceeded

func (h *VerifyHandler) OnVerifySucceeded(outcomes []*notation.VerificationOutcome, digestReference string)

OnVerifySucceeded sets the successful verification result for the handler.

outcomes must not be nil or empty.

func (*VerifyHandler) Render

func (h *VerifyHandler) Render() error

Render prints out the verification results in human-readable format.

Jump to

Keyboard shortcuts

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