attest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommitRef = "refs/attestations/commits"
	TreeRef   = "refs/attestations/trees"
)

Variables

This section is empty.

Functions

func WriteFile

func WriteFile(ctx context.Context, repo *git.Repository, refName string, sha plumbing.Hash, path, attType string) (plumbing.Hash, error)

WriteFile writes the given file + a DSSE signed attestation to the corresponding attestation ref. The SHA of the created commit is returned.

Types

type Encoder

type Encoder interface {
	Encode(o plumbing.EncodedObject) error
}

Jump to

Keyboard shortcuts

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