attestation

package
v0.0.0-...-bee9f94 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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