Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllHarnesses ¶
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 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 RemoveContext ¶
RemoveContext removes one integration while honoring caller cancellation.