product

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Name    = "product"
	Type    = "https://witness.dev/attestations/product/v0.1"
	RunType = 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) 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

Jump to

Keyboard shortcuts

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