product

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ProductName    = "product"
	ProductType    = "https://witness.dev/attestations/product/v0.1"
	ProductRunType = attestation.ProductRunType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestor

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

func New

func New(opts ...Option) *Attestor

func (*Attestor) Attest

func (a *Attestor) Attest(ctx *attestation.AttestationContext) error

func (*Attestor) MarshalJSON

func (a *Attestor) MarshalJSON() ([]byte, error)

func (*Attestor) Name

func (a *Attestor) Name() string

func (*Attestor) Products

func (a *Attestor) Products() map[string]attestation.Product

func (*Attestor) RunType

func (a *Attestor) RunType() attestation.RunType

func (*Attestor) Schema added in v0.4.0

func (a *Attestor) Schema() *jsonschema.Schema

func (*Attestor) Subjects

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

func (*Attestor) Type

func (a *Attestor) Type() string

func (*Attestor) UnmarshalJSON

func (a *Attestor) UnmarshalJSON(data []byte) error

type Option

type Option func(*Attestor)

func WithExcludeGlob

func WithExcludeGlob(glob string) Option

func WithIncludeGlob

func WithIncludeGlob(glob string) Option

type ProductAttestor added in v0.4.0

type ProductAttestor interface {
	// Attestor
	Name() string
	Type() string
	RunType() attestation.RunType
	Attest(ctx *attestation.AttestationContext) error

	// Subjector
	Subjects() map[string]cryptoutil.DigestSet

	// Producter
	Products() map[string]attestation.Product
}

Jump to

Keyboard shortcuts

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