Documentation ¶
Index ¶
- Constants
- func IsCycloneDXJson(buf []byte) bool
- func IsSPDXJson(buf []byte) bool
- type Attestor
- func (a *Attestor) Attest(ctx *attestation.AttestationContext) error
- func (a *Attestor) MarshalJSON() ([]byte, error)
- func (a *Attestor) Name() string
- func (a *Attestor) Products() map[string]attestation.Product
- func (a *Attestor) RunType() attestation.RunType
- func (a *Attestor) Schema() *jsonschema.Schema
- func (a *Attestor) Subjects() map[string]cryptoutil.DigestSet
- func (a *Attestor) Type() string
- func (a *Attestor) UnmarshalJSON(data []byte) error
- type Option
- type ProductAttestor
Constants ¶
View Source
const ( ProductName = "product" ProductType = "https://witness.dev/attestations/product/v0.1" ProductRunType = attestation.ProductRunType )
Variables ¶
This section is empty.
Functions ¶
func IsCycloneDXJson ¶ added in v0.7.0
func IsSPDXJson ¶ added in v0.7.0
Types ¶
type Attestor ¶
type Attestor struct {
// contains filtered or unexported fields
}
func (*Attestor) Attest ¶
func (a *Attestor) Attest(ctx *attestation.AttestationContext) error
func (*Attestor) MarshalJSON ¶
func (*Attestor) RunType ¶
func (a *Attestor) RunType() attestation.RunType
func (*Attestor) Schema ¶ added in v0.4.0
func (a *Attestor) Schema() *jsonschema.Schema
func (*Attestor) UnmarshalJSON ¶
type ProductAttestor ¶ added in v0.4.0
type ProductAttestor interface { // Attestor Name() string Type() string RunType() attestation.RunType Attest(ctx *attestation.AttestationContext) error // Subjector Subjects() map[string]cryptoutil.DigestSet // Producter Products() map[string]attestation.Product }
Click to show internal directories.
Click to hide internal directories.