attestation

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 17 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 {
	ovattest.Attestation

	// Sign is boolean that signals if the attestation has been signed
	Signed bool `json:"-"`

	// signatureData embeds the signed attestaion, the certificate used to sign
	// it and the transparency log inclusion proof
	SignatureData *SignatureData `json:"-"`
}

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 intercepts the openves to json call and if the attestation is signed writes the signed data to io.Writer w instead of the original attestation.

type SignatureData added in v0.2.6

type SignatureData struct {
	// CertData of the cert used to sign the attestation encodeded in PEM
	CertData []byte `json:"-"`

	// Chain contains the intermediate certificate chain of the attestation's cert
	Chain []byte `json:"-"`

	// Entry contains the proof of inclusion to the transparency log
	Entry *models.LogEntryAnon `json:"-"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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