sbom

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "sbom"
	Type    = "https://witness.dev/attestations/sbom/v0.1"
	RunType = attestation.PostProductRunType

	SPDXPredicateType      = "https://spdx.dev/Document"
	SPDXMimeType           = "application/spdx+json"
	CycloneDxPredicateType = "https://cyclonedx.org/bom"
	CycloneDxMimeType      = "application/vnd.cyclonedx+json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*SBOMAttestor)

func WithExport

func WithExport(export bool) Option

type SBOMAttestor

type SBOMAttestor struct {
	SBOMDocument interface{}
	// contains filtered or unexported fields
}

func NewSBOMAttestor

func NewSBOMAttestor() *SBOMAttestor

func (*SBOMAttestor) Attest

func (*SBOMAttestor) Export

func (a *SBOMAttestor) Export() bool

func (*SBOMAttestor) MarshalJSON

func (a *SBOMAttestor) MarshalJSON() ([]byte, error)

func (*SBOMAttestor) Name

func (a *SBOMAttestor) Name() string

func (*SBOMAttestor) RunType

func (a *SBOMAttestor) RunType() attestation.RunType

func (*SBOMAttestor) Schema

func (a *SBOMAttestor) Schema() *jsonschema.Schema

func (*SBOMAttestor) Subjects

func (a *SBOMAttestor) Subjects() map[string]cryptoutil.DigestSet

func (*SBOMAttestor) Type

func (a *SBOMAttestor) Type() string

func (*SBOMAttestor) UnmarshalJSON

func (a *SBOMAttestor) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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