incusreconcile

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	Kind   string `json:"kind"`
	Name   string `json:"name"`
	Action string `json:"action"`
}

type ExecRunner

type ExecRunner struct {
	Path string
}

func (ExecRunner) Run

func (r ExecRunner) Run(ctx context.Context, args ...string) ([]byte, error)

type Reconciler

type Reconciler struct {
	Runner Runner
}

func (Reconciler) Apply

func (r Reconciler) Apply(ctx context.Context, plan incusplan.Plan) (Result, error)

type Result

type Result struct {
	Applied bool     `json:"applied"`
	Changes []Change `json:"changes"`
}

type Runner

type Runner interface {
	Run(context.Context, ...string) ([]byte, error)
}

Runner is the narrow command boundary used by the reconciler. Keeping the boundary at the Incus CLI preserves local Unix-socket authentication while making every API exchange testable without a daemon.

Jump to

Keyboard shortcuts

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