slsa

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "slsa"
	Type    = "https://slsa.dev/provenance/v1.0"
	RunType = attestation.PostProductRunType

	BuildType        = "https://witness.dev/[email protected]"
	DefaultBuilderId = "https://witness.dev/[email protected]"
	GHABuilderId     = "https://witness.dev/[email protected]"
	GLCBuilderId     = "https://witness.dev/[email protected]"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Provenance)

func WithExport

func WithExport(export bool) Option

type Provenance

type Provenance struct {
	PbProvenance prov.Provenance
	// contains filtered or unexported fields
}

func New

func New() *Provenance

func (*Provenance) Attest

func (*Provenance) Export

func (p *Provenance) Export() bool

func (*Provenance) MarshalJSON

func (p *Provenance) MarshalJSON() ([]byte, error)

func (*Provenance) Name

func (p *Provenance) Name() string

func (*Provenance) RunType

func (p *Provenance) RunType() attestation.RunType

func (*Provenance) Schema

func (p *Provenance) Schema() *jsonschema.Schema

func (*Provenance) Subjects

func (p *Provenance) Subjects() map[string]cryptoutil.DigestSet

func (*Provenance) Type

func (p *Provenance) Type() string

func (*Provenance) UnmarshalJSON

func (p *Provenance) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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