intoto

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 5

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 definiton

  • 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 added in v0.3.0

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

func (BaseIntotoType) DefaultVersion added in v0.3.0

func (it BaseIntotoType) DefaultVersion() string

func (*BaseIntotoType) IsSupportedVersion added in v0.12.0

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 added in v0.12.0

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 added in v0.12.1

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

func (ProposedIntotoEntryIterator) Get added in v0.12.1

func (ProposedIntotoEntryIterator) GetNext added in v0.12.1

func (ProposedIntotoEntryIterator) HasNext added in v0.12.1

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