deploymentattempts

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package deploymentattempts backfills canonical deployment attempts and continuously repairs the activation crash window.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interval  time.Duration
	BatchSize int64
}

func DefaultConfig

func DefaultConfig() Config

type Controller

type Controller struct {
	Log     *slog.Logger
	Store   entity.Store
	Tracker *deploylifecycle.Tracker
	Config  Config
	// contains filtered or unexported fields
}

func (*Controller) Ready

func (c *Controller) Ready() <-chan struct{}

Ready closes after the first complete migration and reconciliation sweep with no skipped records. Consumers that expose canonical deployment data may wait on it without making the controller's ongoing repair loop part of their own lifecycle.

func (*Controller) SetProgressReporter

func (c *Controller) SetProgressReporter(report func(Progress))

SetProgressReporter attaches runtime diagnostics before Start is called.

func (*Controller) Start

func (c *Controller) Start(ctx context.Context)

func (*Controller) Step

func (c *Controller) Step(ctx context.Context) error

Step processes one bounded page. It is public so tests and operators can drive convergence without waiting for the loop.

func (*Controller) Stop

func (c *Controller) Stop()

type Progress

type Progress struct {
	Phase      string
	Cursor     string
	PassFailed bool
	Ready      bool
	LastError  string
}

Progress reports the controller's current migration scan position.

Jump to

Keyboard shortcuts

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