Documentation
¶
Overview ¶
Package git provides higher level funcs for signing and verifying Git commits. Functions here generally tie together low level signature writing and Sigstore components together into useful abstractions for working with Git objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Claim ¶
type Claim struct {
Key ClaimCondition
Value bool
}
Claim is a k/v pair representing the status of a given ClaimCondition.
func NewClaim ¶
func NewClaim(c ClaimCondition, ok bool) Claim
type ClaimCondition ¶
type ClaimCondition string
const ( ClaimValidatedSignature ClaimCondition = "Validated Git signature" ClaimValidatedRekorEntry ClaimCondition = "Validated Rekor entry" )
type VerificationSummary ¶
type VerificationSummary struct {
// Certificate used to sign the commit.
Cert *x509.Certificate
// Rekor log entry of the commit.
LogEntry *models.LogEntryAnon
// List of claims about what succeeded / failed during validation.
// This can be used to get details on what succeeded / failed during
// validation. This is not an exhaustive list - claims may be missing
// if validation ended early.
Claims []Claim
}
Click to show internal directories.
Click to hide internal directories.