writer

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

func NewFactory

func NewFactory() *Factory

func (*Factory) Writer

func (f *Factory) Writer(kind string, bom bool) (InspectImageWriter, error)

type HumanReadable

type HumanReadable struct{}

func NewHumanReadable

func NewHumanReadable() *HumanReadable

func (*HumanReadable) Print

func (h *HumanReadable) Print(
	logger logging.Logger,
	generalInfo inspectimage.GeneralInfo,
	local, remote *client.ImageInfo,
	localErr, remoteErr error,
) error

type InspectImageWriter

type InspectImageWriter interface {
	Print(
		logger logging.Logger,
		sharedInfo inspectimage.GeneralInfo,
		local, remote *client.ImageInfo,
		localErr, remoteErr error,
	) error
}

type JSON

type JSON struct {
	StructuredFormat
}

func NewJSON

func NewJSON() *JSON

type JSONBOM

type JSONBOM struct {
	StructuredBOMFormat
}

func NewJSONBOM

func NewJSONBOM() *JSONBOM

type StructuredBOMFormat

type StructuredBOMFormat struct {
	MarshalFunc func(interface{}) ([]byte, error)
}

func (*StructuredBOMFormat) Print

func (w *StructuredBOMFormat) Print(
	logger logging.Logger,
	generalInfo inspectimage.GeneralInfo,
	local, remote *client.ImageInfo,
	localErr, remoteErr error,
) error

type StructuredFormat

type StructuredFormat struct {
	MarshalFunc func(interface{}) ([]byte, error)
}

func (*StructuredFormat) Print

func (w *StructuredFormat) Print(
	logger logging.Logger,
	generalInfo inspectimage.GeneralInfo,
	local, remote *client.ImageInfo,
	localErr, remoteErr error,
) error

type TOML

type TOML struct {
	StructuredFormat
}

func NewTOML

func NewTOML() *TOML

type YAML

type YAML struct {
	StructuredFormat
}

func NewYAML

func NewYAML() *YAML

type YAMLBOM

type YAMLBOM struct {
	StructuredBOMFormat
}

func NewYAMLBOM

func NewYAMLBOM() *YAMLBOM

Jump to

Keyboard shortcuts

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