engine

package
v0.0.0-...-c1c983c Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 32 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerPolicyConfig

type BrokerPolicyConfig struct {
	PolicyDir string
	AckDir    string
	Epoch     uuid.UUID
}

type Config

type Config struct {
	Incus             incusapi.Config
	Git               gitsource.Config
	Observer          observer.Options
	BrokerPolicy      BrokerPolicyConfig
	Launch            reconcile.LaunchConfig
	JournalPath       string
	ControllerID      uuid.UUID
	PollInterval      time.Duration
	InitializeJournal bool
	Apply             bool
	AllowPower        bool
	RebuildApprovals  []journal.Digest
	PlanAdoption      bool
	AdoptionApprovals []journal.Digest
	Metrics           *telemetry.Reconcile
}

type Runtime

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

func New

func New(ctx context.Context, cfg Config) (*Runtime, error)

func (*Runtime) Close

func (r *Runtime) Close() error

func (*Runtime) Run

func (r *Runtime) Run(ctx context.Context, output io.Writer) error

Run starts the COSI runtime. Output contains sanitized source and action status transitions. Cancel the context to stop before calling Close.

Jump to

Keyboard shortcuts

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