Documentation ¶
Index ¶
- Constants
- type Attestor
- func (a *Attestor) Attest(ctx *attestation.AttestationContext) error
- func (a *Attestor) BackRefs() map[string]cryptoutil.DigestSet
- func (a *Attestor) Name() string
- func (a *Attestor) RunType() attestation.RunType
- func (a *Attestor) Subjects() map[string]cryptoutil.DigestSet
- func (a *Attestor) Type() string
- type Status
- type Tag
Constants ¶
View Source
const ( Name = "git" Type = "https://witness.dev/attestations/git/v0.1" RunType = attestation.PreMaterialRunType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attestor ¶
type Attestor struct { CommitHash string `json:"commithash"` Author string `json:"author"` AuthorEmail string `json:"authoremail"` CommitterName string `json:"committername"` CommitterEmail string `json:"committeremail"` CommitDate string `json:"commitdate"` CommitMessage string `json:"commitmessage"` Status map[string]Status `json:"status,omitempty"` CommitDigest cryptoutil.DigestSet `json:"commitdigest,omitempty"` Signature string `json:"signature,omitempty"` ParentHashes []string `json:"parenthashes,omitempty"` TreeHash string `json:"treehash,omitempty"` Refs []string `json:"refs,omitempty"` Tags []Tag `json:"tags,omitempty"` }
func (*Attestor) Attest ¶
func (a *Attestor) Attest(ctx *attestation.AttestationContext) error
func (*Attestor) RunType ¶
func (a *Attestor) RunType() attestation.RunType
Click to show internal directories.
Click to hide internal directories.