attestation

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestation

type Attestation struct {
	intoto.StatementHeader
	// Predicate contains type specific metadata.
	Predicate vex.VEX `json:"predicate"`
}

func New

func New() *Attestation

func (*Attestation) AddSubjects

func (att *Attestation) AddSubjects(subs []intoto.Subject) error

AddSubjects adds a list of intoto subjects to the attestation

func (*Attestation) ToJSON

func (att *Attestation) ToJSON(w io.Writer) error

ToJSON writes the attestation as JSON to the io.Writer w

Jump to

Keyboard shortcuts

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