template

package
v0.0.0-...-0710af2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ID sbom.FormatID = "template"

Variables

This section is empty.

Functions

func Format

func Format() sbom.Format

Types

type OutputFormat

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

implementation of sbom.Format interface to make use of format options

func (OutputFormat) Decode

func (f OutputFormat) Decode(_ io.Reader) (*sbom.SBOM, error)

func (OutputFormat) Encode

func (f OutputFormat) Encode(output io.Writer, s sbom.SBOM) error

func (OutputFormat) ID

func (f OutputFormat) ID() sbom.FormatID

func (OutputFormat) IDs

func (f OutputFormat) IDs() []sbom.FormatID

func (*OutputFormat) SetTemplatePath

func (f *OutputFormat) SetTemplatePath(filePath string)

SetTemplatePath sets path for template file

func (OutputFormat) String

func (f OutputFormat) String() string

func (OutputFormat) Validate

func (f OutputFormat) Validate(_ io.Reader) error

func (OutputFormat) Version

func (f OutputFormat) Version() string

Jump to

Keyboard shortcuts

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