provider

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAndRegister

func LoadAndRegister(ctx context.Context, registry *capability.Registry, cfg Config) (*Manager, LoadReport, error)

func WithInvocationScope

func WithInvocationScope(ctx context.Context, ownerID, taskID string) context.Context

WithInvocationScope binds user/task provenance to every Provider call made by the current Agent run. Provider code cannot mutate this trusted context.

Types

type AuditSink

type AuditSink interface {
	Record(context.Context, pluginv1.InvocationTrace) error
}

type Config

type Config struct {
	Enabled          bool
	Directory        string
	RegistryPath     string
	TrustStorePath   string
	AuditPath        string
	RuntimeVersion   string
	RequireSignature bool
}

type JSONLAuditSink

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

func NewJSONLAuditSink

func NewJSONLAuditSink(path string) *JSONLAuditSink

func (*JSONLAuditSink) Record

type LoadReport

type LoadReport struct {
	Loaded   []string          `json:"loaded"`
	Rejected map[string]string `json:"rejected"`
}

type Manager

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

func NewManager

func NewManager(audit AuditSink) *Manager

func (*Manager) Providers

func (m *Manager) Providers() []pluginv1.ProviderManifest

Jump to

Keyboard shortcuts

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