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 Exporter ¶
type Exporter interface {
Export(context.Context, agentspecbackfill.TerminalArchiveEvidence, time.Time) (agentspecbackfill.ArchiveReceipt, error)
}
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 ¶
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.