install

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 19 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.

func (ArtifactStatus) IsValid added in v1.3.0

func (s ArtifactStatus) IsValid() bool

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 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 RunContext

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

RunContext installs one integration while honoring caller cancellation.

func Upgrade added in v1.3.1

func Upgrade(ctx context.Context, binary string, dryRun bool) ([]Result, error)

Upgrade refreshes existing AHT-owned integrations through their native install plans. It does not select new harnesses or switch a shim to a native adapter.

Jump to

Keyboard shortcuts

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