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 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
Click to show internal directories.
Click to hide internal directories.