link

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "link"
	Type    = "https://in-toto.io/attestation/link/v0.3"
	RunType = attestation.PostProductRunType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	PbLink v0.Link
	// contains filtered or unexported fields
}

func New

func New() *Link

func (*Link) Attest

func (l *Link) Attest(ctx *attestation.AttestationContext) error

func (*Link) Export

func (l *Link) Export() bool

func (*Link) MarshalJSON

func (l *Link) MarshalJSON() ([]byte, error)

func (*Link) Name

func (l *Link) Name() string

func (*Link) RunType

func (l *Link) RunType() attestation.RunType

func (*Link) Schema

func (l *Link) Schema() *jsonschema.Schema

func (*Link) Subjects

func (l *Link) Subjects() map[string]cryptoutil.DigestSet

func (*Link) Type

func (l *Link) Type() string

func (*Link) UnmarshalJSON

func (l *Link) UnmarshalJSON(data []byte) error

type Option

type Option func(*Link)

func WithExport

func WithExport(export bool) Option

Jump to

Keyboard shortcuts

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