lockfiles

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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) Name

func (a *Attestor) Name() string

Name returns the name of the attestation type

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.

func (*Attestor) Subjects

func (a *Attestor) Subjects() map[string]cryptoutil.DigestSet

func (*Attestor) Type

func (o *Attestor) Type() string

Type 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

Jump to

Keyboard shortcuts

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