Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attestation ¶
type Attestation struct { intoto.StatementHeader Predicate SLSAPredicate `json:"predicate"` }
func New ¶
func New() *Attestation
func (*Attestation) SLSA ¶
func (att *Attestation) SLSA() *Attestation
func (*Attestation) Sign ¶
func (att *Attestation) Sign() ([]byte, error)
func (*Attestation) ToJSON ¶
func (att *Attestation) ToJSON() ([]byte, error)
type SLSAPredicate ¶
type SLSAPredicate slsa.ProvenancePredicate
func NewSLSAPredicate ¶
func NewSLSAPredicate() SLSAPredicate
NewSLSAPredicate returns a new SLSA predicate fully initialized
func (*SLSAPredicate) AddMaterial ¶
func (pred *SLSAPredicate) AddMaterial(uri string, hashes map[string]string)
AddMaterial add an entry to the materials
Click to show internal directories.
Click to hide internal directories.