Documentation ¶
Index ¶
- Constants
- type Option
- type Provenance
- func (p *Provenance) Attest(ctx *attestation.AttestationContext) error
- func (p *Provenance) Export() bool
- func (p *Provenance) MarshalJSON() ([]byte, error)
- func (p *Provenance) Name() string
- func (p *Provenance) RunType() attestation.RunType
- func (p *Provenance) Schema() *jsonschema.Schema
- func (p *Provenance) Subjects() map[string]cryptoutil.DigestSet
- func (p *Provenance) Type() string
- func (p *Provenance) UnmarshalJSON(data []byte) error
Constants ¶
View Source
const ( Name = "slsa" Type = "https://slsa.dev/provenance/v1.0" RunType = attestation.PostProductRunType BuildType = "https://witness.dev/[email protected]" DefaultBuilderId = "https://witness.dev/[email protected]" GHABuilderId = "https://witness.dev/[email protected]" GLCBuilderId = "https://witness.dev/[email protected]" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provenance ¶
type Provenance struct { PbProvenance prov.Provenance // contains filtered or unexported fields }
func New ¶
func New() *Provenance
func (*Provenance) Attest ¶
func (p *Provenance) Attest(ctx *attestation.AttestationContext) error
func (*Provenance) Export ¶
func (p *Provenance) Export() bool
func (*Provenance) MarshalJSON ¶
func (p *Provenance) MarshalJSON() ([]byte, error)
func (*Provenance) Name ¶
func (p *Provenance) Name() string
func (*Provenance) RunType ¶
func (p *Provenance) RunType() attestation.RunType
func (*Provenance) Schema ¶
func (p *Provenance) Schema() *jsonschema.Schema
func (*Provenance) Subjects ¶
func (p *Provenance) Subjects() map[string]cryptoutil.DigestSet
func (*Provenance) Type ¶
func (p *Provenance) Type() string
func (*Provenance) UnmarshalJSON ¶
func (p *Provenance) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.