Documentation
¶
Index ¶
- func AllHarnesses() []registry.Harness
- type ArtifactStatus
- type IntegrationStatus
- type Options
- type Result
- func Remove(options Options) (Result, error)
- func RemoveAll(options Options) ([]Result, error)
- func RemoveAllContext(ctx context.Context, options Options) ([]Result, error)
- func RemoveContext(ctx context.Context, options Options) (Result, error)
- func Run(options Options) (Result, error)
- func RunAll(options Options) ([]Result, error)
- func RunAllContext(ctx context.Context, options Options) ([]Result, error)
- func RunContext(ctx context.Context, options Options) (Result, error)
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.
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 RemoveAllContext ¶
RemoveAllContext removes every integration while honoring caller cancellation.
func RemoveContext ¶
RemoveContext removes one integration while honoring caller cancellation.
func RunAllContext ¶
RunAllContext installs every integration while honoring caller cancellation.