agentspecbackfillprocess

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: 9 Imported by: 0

Documentation

Overview

Package agentspecbackfillprocess composes the AgentSpecBackfill controller from explicit, narrow ports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ControllerImageDigest string
	WatchRetry            time.Duration
}

Config is the explicit, versioned declaration for one AgentSpecBackfill controller process.

func ParseConfig

func ParseConfig(input io.Reader) (Config, error)

ParseConfig decodes exactly one strict controller process configuration without ambient Kubernetes settings.

type Controller

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

Controller runs canonical AgentSpecBackfill reconciliation through injected infrastructure ports.

func New

func New(config Config, source Source, statuses StatusStore, reader agentspecbackfill.FrozenLegacyReader, verifier agentspecbackfill.ImmutableContentVerifier, sourceClock clock.Clock, wait Wait) (*Controller, error)

New constructs a Controller from every required explicit process dependency.

func (*Controller) ReconcileWire

func (controller *Controller) ReconcileWire(ctx context.Context, wire []byte) (agentspecbackfill.Status, error)

ReconcileWire parses and reconciles exactly one canonical immutable CR wire.

func (*Controller) Run

func (controller *Controller) Run(ctx context.Context) error

Run reconciles listed requests, then recovers a cancellable watch until the caller cancels it.

type Source

type Source interface {
	List(context.Context) ([][]byte, error)
	Watch(context.Context) (Watch, error)
}

Source lists canonical immutable request wires and opens a cancellable change watch.

type StatusStore

StatusStore atomically reads and conditionally writes a single canonical terminal CR status.

type Wait

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

Wait waits for bounded watch recovery without an implicit wall-clock dependency.

type Watch

type Watch interface {
	Next(context.Context) ([]byte, error)
	Close() error
}

Watch reads canonical immutable request wires until it is closed or fails.

Jump to

Keyboard shortcuts

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