sigstore

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 15 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// DefaultRekorAddr is the default rekor base URL.
	DefaultRekorAddr = "https://rekor.sigstore.dev"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fulcio

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

Fulcio is used to sign provenance statements using Fulcio.

func NewDefaultFulcio

func NewDefaultFulcio() *Fulcio

NewDefaultFulcio creates a new Fulcio instance using the public Fulcio server and public sigstore OIDC issuer.

func NewFulcio

func NewFulcio(fulcioAddr, oidcIssuer, oidcClientID string) *Fulcio

NewFulcio creates a new Fulcio instance.

func (*Fulcio) Sign

Sign signs the given provenance statement and returns the signed attestation.

type Rekor

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

Rekor implements TransparencyLog.

func NewDefaultRekor

func NewDefaultRekor() *Rekor

NewDefaultRekor returns a new Rekor instance for the Rekor public instance.

func NewRekor

func NewRekor(rekorAddr string) *Rekor

NewRekor returns a new Rekor instance.

func (*Rekor) Upload

func (r *Rekor) Upload(ctx context.Context, att signing.Attestation) (signing.LogEntry, error)

Upload uploads the signed attestation to the rekor transparency log.

Jump to

Keyboard shortcuts

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