Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + type Admitted interface + List func(ctx context.Context) ([]admission.Record, error) + type Agent struct + HasNext bool + Hostname string + MachineID string + type Config struct + Admitted Admitted + Bucket string + Grace time.Duration + KV KV + Keys *pki.Manager + Logger *slog.Logger + Now func() time.Time + Seen Seen + type KV interface + KVCreate func(ctx context.Context, bucket string, key string, value []byte) (uint64, error) + KVGet func(ctx context.Context, bucket string, key string) (jetstream.KeyValueEntry, error) + KVUpdate func(ctx context.Context, bucket string, key string, value []byte, revision uint64) (uint64, error) + type Rotation struct + func New(cfg Config) *Rotation + func (r *Rotation) Load(ctx context.Context) error + func (r *Rotation) Run(ctx context.Context) error + func (r *Rotation) Start(ctx context.Context) (Status, error) + func (r *Rotation) Status(ctx context.Context) (Status, error) + func (r *Rotation) Step(ctx context.Context) (bool, error) + type Seen interface + AgentsLastSeen func(ctx context.Context) (map[string]time.Time, error) + ListAgents func(ctx context.Context) ([]job.AgentInfo, error) + type Status struct + Agents []Agent + Current string + Next string + StartedAt time.Time + SwitchBy time.Time