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

workloadattestor

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository added in v1.0.0

type Repository struct {
	WorkloadAttestors []WorkloadAttestor
}

func (*Repository) AddWorkloadAttestor added in v1.0.0

func (repo *Repository) AddWorkloadAttestor(workloadattestor WorkloadAttestor)

func (*Repository) Clear added in v1.0.0

func (repo *Repository) Clear()

func (*Repository) GetWorkloadAttestors added in v1.0.0

func (repo *Repository) GetWorkloadAttestors() []WorkloadAttestor

func (*Repository) SetWorkloadAttestors added in v1.0.0

func (repo *Repository) SetWorkloadAttestors(workloadAttestors ...WorkloadAttestor)

type V1 added in v1.0.0

func (*V1) Attest added in v1.0.0

func (v1 *V1) Attest(ctx context.Context, pid int) ([]*common.Selector, error)

Attest invokes the plugin's PID-based Attest RPC. Older plugins implement only this RPC; newer plugins may instead implement only AttestReference. To bridge both styles, if Attest returns Unimplemented, we pack the PID as a WorkloadPIDReference and retry through AttestReference.

func (*V1) AttestReference added in v1.15.2

func (v1 *V1) AttestReference(ctx context.Context, ref *anypb.Any) ([]*common.Selector, error)

AttestReference invokes the plugin's reference-based AttestReference RPC. If the plugin returns Unimplemented and the supplied reference is a WorkloadPIDReference, we fall back to the legacy PID-based Attest. Other reference types surface the Unimplemented error directly because there's no equivalent legacy path.

type WorkloadAttestor

type WorkloadAttestor interface {
	catalog.PluginInfo

	Attest(ctx context.Context, pid int) ([]*common.Selector, error)
	AttestReference(ctx context.Context, reference *anypb.Any) ([]*common.Selector, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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