controller

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RepoName     string
	ProjectName  string
	ComposePath  string
	WorkDir      string
	StatePath    string
	ReconcileCfg reconcile.Config
}

type Controller

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

func New

func New(ctx context.Context, watcher *git.Watcher, cfg Config, metrics *telemetry.Metrics, logger *slog.Logger) (*Controller, error)

func NewStandalone

func NewStandalone(ctx context.Context, cfg Config, metrics *telemetry.Metrics, logger *slog.Logger) (*Controller, error)

func (*Controller) Close

func (c *Controller) Close() error

func (*Controller) IsReady added in v0.2.0

func (c *Controller) IsReady() bool

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context) (*reconcile.Result, error)

func (*Controller) Run

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

func (*Controller) Sync

func (c *Controller) Sync(ctx context.Context) (*reconcile.Result, error)

Jump to

Keyboard shortcuts

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