packages

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Defines a Presenter interface for displaying catalog results to an io.Writer as well as a helper utility to obtain a specific Presenter implementation given user configuration.

Index

Constants

This section is empty.

Variables

Functions

func Presenter

func Presenter(option PresenterOption, config PresenterConfig) presenter.Presenter

Presenter returns a presenter for images or directories

Types

type PresenterConfig

type PresenterConfig struct {
	SourceMetadata source.Metadata
	Catalog        *pkg.Catalog
	Distro         *distro.Distro
	Scope          source.Scope
}

type PresenterOption

type PresenterOption string
const (
	UnknownPresenterOption      PresenterOption = "UnknownPresenterOption"
	JSONPresenterOption         PresenterOption = "json"
	TextPresenterOption         PresenterOption = "text"
	TablePresenterOption        PresenterOption = "table"
	CycloneDxPresenterOption    PresenterOption = "cyclonedx"
	SPDXTagValuePresenterOption PresenterOption = "spdx-tag-value"
	SPDXJSONPresenterOption     PresenterOption = "spdx-json"
)

func ParsePresenterOption

func ParsePresenterOption(userStr string) PresenterOption

Jump to

Keyboard shortcuts

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