attestation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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"`
	Signed    bool    `json:"-"`
	// contains filtered or unexported fields
}

func New

func New() *Attestation

func (*Attestation) AddImageSubjects

func (att *Attestation) AddImageSubjects(imageRefs []string) error

func (*Attestation) Sign

func (att *Attestation) Sign() error

Sign the attestation

func (*Attestation) ToJSON

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

ToJSON returns the attestation as a JSON byte array

Jump to

Keyboard shortcuts

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