intoto

package
v1.3.7-yckms.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

View Source
const (
	APIVERSION = "0.0.2"
)

Variables

This section is empty.

Functions

func NewEntry

func NewEntry() types.EntryImpl

Types

type V002Entry

type V002Entry struct {
	IntotoObj models.IntotoV002Schema
	// contains filtered or unexported fields
}

func (V002Entry) APIVersion

func (v V002Entry) APIVersion() string

func (V002Entry) ArtifactHash

func (v V002Entry) ArtifactHash() (string, error)

func (*V002Entry) AttestationKey

func (v *V002Entry) AttestationKey() string

AttestationKey returns the digest of the attestation that was uploaded, to be used to lookup the attestation from storage

func (*V002Entry) AttestationKeyValue

func (v *V002Entry) AttestationKeyValue() (string, []byte)

AttestationKeyValue returns both the key and value to be persisted into attestation storage

func (*V002Entry) Canonicalize

func (v *V002Entry) Canonicalize(_ context.Context) ([]byte, error)

func (V002Entry) CreateFromArtifactProperties

func (v V002Entry) CreateFromArtifactProperties(_ context.Context, props types.ArtifactProperties) (models.ProposedEntry, error)

func (V002Entry) IndexKeys

func (v V002Entry) IndexKeys() ([]string, error)

func (V002Entry) Insertable

func (v V002Entry) Insertable() (bool, error)

func (*V002Entry) Unmarshal

func (v *V002Entry) Unmarshal(pe models.ProposedEntry) error

func (V002Entry) Verifiers

func (v V002Entry) Verifiers() ([]pki.PublicKey, error)

Jump to

Keyboard shortcuts

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