Documentation ¶
Index ¶
- Constants
- func Format() sbom.Format
- type OutputFormat
- func (f OutputFormat) Decode(_ io.Reader) (*sbom.SBOM, error)
- func (f OutputFormat) Encode(output io.Writer, s sbom.SBOM) error
- func (f OutputFormat) ID() sbom.FormatID
- func (f OutputFormat) IDs() []sbom.FormatID
- func (f *OutputFormat) SetTemplatePath(filePath string)
- func (f OutputFormat) String() string
- func (f OutputFormat) Validate(_ io.Reader) error
- func (f OutputFormat) Version() string
Constants ¶
View Source
const ID sbom.FormatID = "template"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OutputFormat ¶
type OutputFormat struct {
// contains filtered or unexported fields
}
implementation of sbom.Format interface to make use of format options
func (OutputFormat) ID ¶
func (f OutputFormat) ID() sbom.FormatID
func (OutputFormat) IDs ¶ added in v0.71.0
func (f OutputFormat) IDs() []sbom.FormatID
func (*OutputFormat) SetTemplatePath ¶
func (f *OutputFormat) SetTemplatePath(filePath string)
SetTemplatePath sets path for template file
func (OutputFormat) String ¶ added in v0.71.0
func (f OutputFormat) String() string
func (OutputFormat) Version ¶ added in v0.71.0
func (f OutputFormat) Version() string
Click to show internal directories.
Click to hide internal directories.