template

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 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(reader 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) SetTemplatePath

func (f *OutputFormat) SetTemplatePath(filePath string)

SetTemplatePath sets path for template file

func (OutputFormat) Validate

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

Jump to

Keyboard shortcuts

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