install

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllHarnesses

func AllHarnesses() []registry.Harness

AllHarnesses returns a snapshot of the installable harness catalog.

Types

type ArtifactStatus

type ArtifactStatus string

ArtifactStatus describes whether a managed integration artifact is absent, up to date, an older managed generation, or owned by somebody else.

const (
	ArtifactMissing ArtifactStatus = "missing"
	ArtifactCurrent ArtifactStatus = "current"
	ArtifactStale   ArtifactStatus = "stale"
	ArtifactForeign ArtifactStatus = "foreign"
)

func ClassifyArtifact

func ClassifyArtifact(path string) (ArtifactStatus, error)

ClassifyArtifact inspects a generated artifact without modifying it. It is intentionally format-agnostic: managed ownership is established by the marker or source metadata and generation is established by the version.

type IntegrationStatus

type IntegrationStatus struct {
	Harness  registry.Harness `json:"harness"`
	Status   ArtifactStatus   `json:"status"`
	Paths    []string         `json:"paths"`
	Message  string           `json:"message"`
	NextStep string           `json:"next_step,omitempty"`
}

IntegrationStatus describes the managed artifacts for one harness integration.

func Inspect

func Inspect(harnessID registry.Harness, binary string) (IntegrationStatus, error)

Inspect reports whether a harness integration or its shim fallback is current.

func InspectContext

func InspectContext(ctx context.Context, harnessID registry.Harness, binary string) (IntegrationStatus, error)

InspectContext reports whether a harness integration is current, honoring cancellation while consulting native harness CLIs.

type Options

type Options struct {
	Harness      registry.Harness
	Binary       string
	TargetBinary string
	DryRun       bool
	Force        bool
	UseShim      bool
}

type Result

type Result struct {
	Harness  string `json:"harness"`
	Path     string `json:"path"`
	Changed  bool   `json:"changed"`
	Message  string `json:"message"`
	NextStep string `json:"next_step,omitempty"`
	Snippet  string `json:"snippet,omitempty"`
	Error    string `json:"error,omitempty"`
}

func Remove

func Remove(options Options) (Result, error)

Remove deletes only artifacts owned by aht for one harness.

func RemoveAll

func RemoveAll(options Options) ([]Result, error)

RemoveAll deletes owned artifacts for every installable harness.

func RemoveAllContext

func RemoveAllContext(ctx context.Context, options Options) ([]Result, error)

RemoveAllContext removes every integration while honoring caller cancellation.

func RemoveContext

func RemoveContext(ctx context.Context, options Options) (Result, error)

RemoveContext removes one integration while honoring caller cancellation.

func Run

func Run(options Options) (Result, error)

func RunAll

func RunAll(options Options) ([]Result, error)

func RunAllContext

func RunAllContext(ctx context.Context, options Options) ([]Result, error)

RunAllContext installs every integration while honoring caller cancellation.

func RunContext

func RunContext(ctx context.Context, options Options) (Result, error)

RunContext installs one integration while honoring caller cancellation.

Jump to

Keyboard shortcuts

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