agentspecbackfillexportprocess

package
v0.0.0-...-804b954 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package agentspecbackfillexportprocess composes the separately-authorized terminal archive exporter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct{ PollInterval time.Duration }

Config bounds polling for one explicitly composed archive-export process.

type Exporter

Exporter conditionally retains one immutable terminal evidence bundle.

type Process

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

Process is the separate composition and scheduling seam that invokes the archive exporter.

func New

func New(config Config, source Source, exporter Exporter, sourceClock clock.Clock, wait Wait) (*Process, error)

New constructs a Process from its distinct terminal-evidence source and archive authority.

func (*Process) Run

func (process *Process) Run(ctx context.Context) error

Run schedules independent terminal-evidence export until the caller cancels its context.

func (*Process) RunOnce

func (process *Process) RunOnce(ctx context.Context) ([]agentspecbackfill.ArchiveReceipt, error)

RunOnce exports every terminal evidence item currently supplied by its narrowly scoped source.

type Source

type Source interface {
	ListTerminalEvidence(context.Context) ([]agentspecbackfill.TerminalArchiveEvidence, error)
}

Source exposes only already-terminal redacted CR evidence to the archive-export authority. It is intentionally distinct from the controller's request/status authority.

type Wait

type Wait func(context.Context, time.Duration) error

Wait waits for an explicit bounded export poll interval without ambient wall-clock time.

Jump to

Keyboard shortcuts

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