Documentation
¶
Overview ¶
Package notes implements an attestation storage backend that reads from git commit notes
Index ¶
- type Backend
- func (b *Backend) GetCommitProvenance(ctx context.Context, branch *models.Branch, commit *models.Commit) (*attestation.Statement, *provenance.SourceProvenancePred, error)
- func (b *Backend) GetCommitVsa(ctx context.Context, branch *models.Branch, commit *models.Commit) (*attestation.Statement, *vpb.VerificationSummary, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) GetCommitProvenance ¶
func (b *Backend) GetCommitProvenance(ctx context.Context, branch *models.Branch, commit *models.Commit) (*attestation.Statement, *provenance.SourceProvenancePred, error)
GetCommitProvenance gets the provenance attestation of a commit in a branch
func (*Backend) GetCommitVsa ¶
func (b *Backend) GetCommitVsa(ctx context.Context, branch *models.Branch, commit *models.Commit) (*attestation.Statement, *vpb.VerificationSummary, error)
GetCommitVsa retrieves a VSA by looking into the specified commit notes
Click to show internal directories.
Click to hide internal directories.