Help us shape the future of Go! Take the 2026 Go Developer Survey

v2alpha4

package
v0.28.9 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFormatter

func NewFormatter(cfg config.Config) (formats.Payloader, error)

NewFormatter returns a new v2alpha4 payloader.

Types

type Slsa

type Slsa struct {
	// contains filtered or unexported fields
}

Slsa is a v2alpha4 payloader implementation.

func (*Slsa) CreatePayload

func (s *Slsa) CreatePayload(ctx context.Context, obj interface{}) (interface{}, error)

CreatePayload returns the payload for the given object using the v2alpha4 formatter logic.

func (*Slsa) RetrieveAllArtifactURIs added in v0.21.1

func (s *Slsa) RetrieveAllArtifactURIs(ctx context.Context, obj interface{}) ([]string, error)

RetrieveAllArtifactURIs returns the full URI of all artifacts detected as subjects.

func (*Slsa) Type

func (s *Slsa) Type() config.PayloadType

Type returns the version of this payloader.

func (*Slsa) Wrap

func (s *Slsa) Wrap() bool

Wrap indicates if the resulting payload should be wrapped.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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