Documentation
¶
Index ¶
Constants ¶
View Source
const ( Name = "lockfiles" Type = "https://witness.dev/attestations/lockfiles/v0.1" RunType = attestation.PreMaterialRunType )
Variables ¶
This section is empty.
Functions ¶
func NewLockfilesAttestor ¶
func NewLockfilesAttestor() attestation.Attestor
Types ¶
type Attestor ¶
type Attestor struct {
Lockfiles []LockfileInfo `json:"lockfiles"`
}
Attestor implements the lockfiles attestation type
func (*Attestor) Attest ¶
func (a *Attestor) Attest(ctx *attestation.AttestationContext) error
Attest captures the contents of common lockfiles
func (*Attestor) RunType ¶
func (o *Attestor) RunType() attestation.RunType
RunType implements attestation.Attestor.
func (*Attestor) Schema ¶
func (o *Attestor) Schema() *jsonschema.Schema
// Schema implements attestation.Attestor.
type LockfileInfo ¶
type LockfileInfo struct { Filename string `json:"filename"` Content string `json:"content"` Digest cryptoutil.DigestSet `json:"digest"` }
LockfileInfo stores information about a lockfile
Click to show internal directories.
Click to hide internal directories.