Documentation ¶
Index ¶
- Constants
- type Option
- type SBOMAttestor
- func (a *SBOMAttestor) Attest(ctx *attestation.AttestationContext) error
- func (a *SBOMAttestor) Export() bool
- func (a *SBOMAttestor) MarshalJSON() ([]byte, error)
- func (a *SBOMAttestor) Name() string
- func (a *SBOMAttestor) RunType() attestation.RunType
- func (a *SBOMAttestor) Schema() *jsonschema.Schema
- func (a *SBOMAttestor) Subjects() map[string]cryptoutil.DigestSet
- func (a *SBOMAttestor) Type() string
- func (a *SBOMAttestor) UnmarshalJSON(data []byte) error
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 SBOMAttestor ¶
type SBOMAttestor struct { SBOMDocument interface{} // contains filtered or unexported fields }
func NewSBOMAttestor ¶
func NewSBOMAttestor() *SBOMAttestor
func (*SBOMAttestor) Attest ¶
func (a *SBOMAttestor) Attest(ctx *attestation.AttestationContext) error
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
Click to show internal directories.
Click to hide internal directories.