sbom

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	// type of the document standard
	DocType StandardType

	// document in a specific standard JSON raw format
	Document json.RawMessage
}

func NewDocument

func NewDocument(docType StandardType, doc json.RawMessage) (*Document, error)

type StandardType

type StandardType uint64
const (
	StandardTypeNone StandardType = iota
	StandardTypeSpdx
)

func (StandardType) MarshalJSON

func (t StandardType) MarshalJSON() ([]byte, error)

func (StandardType) String

func (t StandardType) String() string

func (*StandardType) UnmarshalJSON

func (t *StandardType) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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