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 ¶
Config is the explicit, versioned declaration for one AgentSpecBackfill controller process.
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.
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 ¶
type StatusStore interface {
ReadTerminal(context.Context, agentspecbackfillcr.Request) (agentspecbackfillcr.Status, bool, error)
CreateTerminal(context.Context, agentspecbackfillcr.Request, agentspecbackfillcr.Status) (stored agentspecbackfillcr.Status, created bool, err error)
}
StatusStore atomically reads and conditionally writes a single canonical terminal CR status.
Click to show internal directories.
Click to hide internal directories.