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: 7 Imported by: 1

README

in-toto Type Data Documentation

This document provides a definition for each field that is not otherwise described in the in-toto schema. This document also notes any additional information about the values associated with each field such as the format in which the data is stored and any necessary transformations.

Attestation: authenticated, machine-readable metadata about one or more software artifacts. SLSA definition

  • The Attestation value ought to be a Base64-encoded JSON object.
  • The in-toto Attestation specification provides detailed guidance on understanding and parsing this JSON object.

AttestationType: Identifies the type of attestation being made, such as a provenance attestation or a vulnerability scan attestation. AttestationType's value, even when prefixed with an http, is not necessarily a working URL.

How do you identify an object as an in-toto object?

The "Body" field will include an "IntotoObj" field.

Documentation

Index

Constants

View Source
const (
	KIND = "intoto"
)

Variables

Functions

func New

func New() types.TypeImpl

Types

type BaseIntotoType

type BaseIntotoType struct {
	types.RekorType
}

func (*BaseIntotoType) CreateProposedEntry

func (it *BaseIntotoType) CreateProposedEntry(ctx context.Context, version string, props types.ArtifactProperties) (models.ProposedEntry, error)

func (BaseIntotoType) DefaultVersion

func (it BaseIntotoType) DefaultVersion() string

func (*BaseIntotoType) IsSupportedVersion

func (it *BaseIntotoType) IsSupportedVersion(proposedVersion string) bool

IsSupportedVersion returns true if the version can be inserted into the log, and false if not

func (BaseIntotoType) SupportedVersions

func (it BaseIntotoType) SupportedVersions() []string

SupportedVersions returns the supported versions for this type in the order of preference

func (BaseIntotoType) UnmarshalEntry

func (it BaseIntotoType) UnmarshalEntry(pe models.ProposedEntry) (types.EntryImpl, error)

type ProposedIntotoEntryIterator

type ProposedIntotoEntryIterator struct {
	models.ProposedEntry
	// contains filtered or unexported fields
}

func (ProposedIntotoEntryIterator) Get

func (ProposedIntotoEntryIterator) GetNext

func (ProposedIntotoEntryIterator) HasNext

func (p ProposedIntotoEntryIterator) HasNext() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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