renderer

package
v1.136.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationRenderer

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

func NewAttestationRenderer

func NewAttestationRenderer(state *crafter.VersionedCraftingState, attClient pb.AttestationServiceClient, builderVersion, builderDigest string, signer sigstoresigner.Signer, opts ...Opt) (*AttestationRenderer, error)

func (*AttestationRenderer) Render

Attestation (dsee envelope) -> { message: { Statement(in-toto): [subject, predicate] }, signature: "sig" }. NOTE: It currently only supports cosign key based signing.

func (*AttestationRenderer) RenderStatement added in v0.147.0

func (ab *AttestationRenderer) RenderStatement(ctx context.Context) (*intoto.Statement, error)

Render the in-toto statement skipping validations, dsse envelope wrapping nor signing

func (*AttestationRenderer) SetPolicyEvaluationsRef added in v1.89.0

func (ab *AttestationRenderer) SetPolicyEvaluationsRef(ref *chainloop.PolicyEvaluationsRef)

SetPolicyEvaluationsRef sets the CAS reference for the policy evaluations bundle on the underlying renderer. This must be called before Render().

type Opt

type Opt func(*AttestationRenderer)

func WithBundleOutputPath

func WithBundleOutputPath(bundlePath string) Opt

func WithLogger

func WithLogger(logger zerolog.Logger) Opt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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