material

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name    = "material"
	Type    = "https://witness.dev/attestations/material/v0.1"
	RunType = attestation.MaterialRunType
)

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) Materials

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

func (*Attestor) Name

func (a *Attestor) Name() string

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) Type

func (a *Attestor) Type() string

func (*Attestor) UnmarshalJSON

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

type MaterialAttestor added in v0.4.0

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

	// Materialer
	Materials() map[string]cryptoutil.DigestSet
}

type Option

type Option func(*Attestor)

Jump to

Keyboard shortcuts

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