provenance

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Read is for fuzzing
	Read = readPasswordFn
)

Functions

func GenerateProvanance

func GenerateProvanance(appName, appPath,
	appSourceRepoUrl, appSourceRevision, appSourceCommitSha, appSourcePreviousCommitSha,
	target, targetDigest string, buildStartedOn, buildFinishedOn time.Time, uploadTLog bool) error

func GetPass

func GetPass(confirm bool) ([]byte, error)

func GetRepoCredentials

func GetRepoCredentials(repoUrl string) string

func GitLatestCommitSha

func GitLatestCommitSha(repoUrl string, branch string) string

func TraceProvenance

func TraceProvenance(repoUrl, previousCommitSha, currentCommitSha string)

Types

type IntotoSigner

type IntotoSigner struct {
	// contains filtered or unexported fields
}

func (*IntotoSigner) Sign

func (it *IntotoSigner) Sign(data []byte) ([]byte, string, error)

func (*IntotoSigner) Verify

func (it *IntotoSigner) Verify(_ string, data, sig []byte) error

type SignOpts

type SignOpts struct {
	Pf cosign.PassFunc
}

Jump to

Keyboard shortcuts

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