Documentation
¶
Index ¶
- type AdapterPlan
- type ApplyInput
- type ApplyResult
- type Capabilities
- type Clock
- type Command
- type CommandResult
- type EvidenceEntry
- type EvidenceRegistry
- type FileSystem
- type InspectInput
- type InspectResult
- type LockManager
- type ManifestLoader
- type OperationJournal
- type PathInfo
- type PlanInstallInput
- type PlanRemoveInput
- type PlanToggleInput
- type PlanUpdateInput
- type ProcessRunner
- type RepairInput
- type ResolvedSource
- type SafeFileMutationInput
- type SafeFileMutationResult
- type SafeFileMutator
- type SourceResolver
- type StateFile
- type StateStore
- type TargetAdapter
- type ToggleTargetAdapter
- type UnlockFunc
- type WorkspaceLockStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterPlan ¶
type ApplyInput ¶
type ApplyInput struct {
Plan AdapterPlan
Manifest domain.IntegrationManifest
ResolvedSource *ResolvedSource
Policy domain.InstallPolicy
Inspect InspectResult
Record *domain.InstallationRecord
}
type ApplyResult ¶
type ApplyResult struct {
TargetID domain.TargetID
State domain.InstallState
ActivationState domain.ActivationState
InteractiveAuthState string
OwnedNativeObjects []domain.NativeObjectRef
Warnings []string
ManualSteps []string
RestartRequired bool
ReloadRequired bool
NewThreadRequired bool
SourceAccessState string
EnvironmentRestrictions []domain.EnvironmentRestrictionCode
VolatileOverrideDetected bool
EvidenceClass domain.EvidenceClass
AdapterMetadata map[string]any
}
type Capabilities ¶
type Capabilities struct {
InstallMode string
SupportsNativeUpdate bool
SupportsNativeRemove bool
SupportsLinkMode bool
SupportsAutoUpdatePolicy bool
SupportsScopeUser bool
SupportsScopeProject bool
SupportsScopeLocal bool
SupportsRepair bool
RequiresRestart bool
RequiresReload bool
RequiresNewThread bool
MayTriggerInteractiveAuth bool
SupportedSourceKinds []string
EvidenceKey string
}
type CommandResult ¶
type EvidenceEntry ¶
type EvidenceRegistry ¶
type EvidenceRegistry interface {
Get(context.Context, string) (EvidenceEntry, error)
List(context.Context) ([]EvidenceEntry, error)
}
type FileSystem ¶
type InspectInput ¶
type InspectInput struct {
IntegrationID string
Record *domain.InstallationRecord
Scope string
}
type InspectResult ¶
type InspectResult struct {
TargetID domain.TargetID
Installed bool
State domain.InstallState
ActivationState domain.ActivationState
InteractiveAuthState string
CatalogPolicy *domain.CatalogPolicySnapshot
ConfigPrecedenceContext []string
EnvironmentRestrictions []domain.EnvironmentRestrictionCode
VolatileOverrideDetected bool
TrustResolutionSource string
SourceAccessState string
OwnedNativeObjects []domain.NativeObjectRef
ObservedNativeObjects []domain.NativeObjectRef
SettingsFiles []string
Warnings []string
EvidenceClass domain.EvidenceClass
}
type LockManager ¶
type LockManager interface {
Acquire(context.Context, string) (UnlockFunc, error)
}
type ManifestLoader ¶
type ManifestLoader interface {
Load(context.Context, ResolvedSource) (domain.IntegrationManifest, error)
}
type OperationJournal ¶
type PlanInstallInput ¶
type PlanInstallInput struct {
Manifest domain.IntegrationManifest
Policy domain.InstallPolicy
Inspect InspectResult
}
type PlanRemoveInput ¶
type PlanRemoveInput struct {
Record domain.InstallationRecord
Inspect InspectResult
}
type PlanToggleInput ¶
type PlanToggleInput struct {
Record domain.InstallationRecord
Inspect InspectResult
}
type PlanUpdateInput ¶
type PlanUpdateInput struct {
CurrentRecord domain.InstallationRecord
NextManifest domain.IntegrationManifest
Inspect InspectResult
}
type ProcessRunner ¶
type ProcessRunner interface {
Run(context.Context, Command) (CommandResult, error)
}
type RepairInput ¶
type RepairInput struct {
Record domain.InstallationRecord
Inspect InspectResult
Manifest *domain.IntegrationManifest
ResolvedSource *ResolvedSource
}
type ResolvedSource ¶
type ResolvedSource struct {
Kind string
Requested domain.RequestedSourceRef
Resolved domain.ResolvedSourceRef
LocalPath string
// Structured provenance fields let standard-first consumers preserve a
// stable source identity while tracking the immutable resolved revision.
CanonicalSource string
Repository string
PackageSubpath string
ResolvedRevision string
// Cleanup is an opaque, resolver-owned capability. Callers must never
// construct cleanup paths from package or persisted state data.
Cleanup func() error
SourceDigest string
ExecutableFiles []string
ImportRoots []string
FailureClass string
}
type SafeFileMutationInput ¶
type SafeFileMutationResult ¶
type SafeFileMutator ¶
type SafeFileMutator interface {
MutateFile(context.Context, SafeFileMutationInput) (SafeFileMutationResult, error)
}
type SourceResolver ¶
type SourceResolver interface {
Resolve(context.Context, domain.IntegrationRef) (ResolvedSource, error)
}
type StateFile ¶
type StateFile struct {
SchemaVersion int `json:"schema_version"`
Installations []domain.InstallationRecord `json:"installations"`
}
type StateStore ¶
type TargetAdapter ¶
type TargetAdapter interface {
ID() domain.TargetID
Capabilities(context.Context) (Capabilities, error)
Inspect(context.Context, InspectInput) (InspectResult, error)
PlanInstall(context.Context, PlanInstallInput) (AdapterPlan, error)
ApplyInstall(context.Context, ApplyInput) (ApplyResult, error)
PlanUpdate(context.Context, PlanUpdateInput) (AdapterPlan, error)
ApplyUpdate(context.Context, ApplyInput) (ApplyResult, error)
PlanRemove(context.Context, PlanRemoveInput) (AdapterPlan, error)
ApplyRemove(context.Context, ApplyInput) (ApplyResult, error)
Repair(context.Context, RepairInput) (ApplyResult, error)
}
type ToggleTargetAdapter ¶
type ToggleTargetAdapter interface {
PlanEnable(context.Context, PlanToggleInput) (AdapterPlan, error)
ApplyEnable(context.Context, ApplyInput) (ApplyResult, error)
PlanDisable(context.Context, PlanToggleInput) (AdapterPlan, error)
ApplyDisable(context.Context, ApplyInput) (ApplyResult, error)
}
type UnlockFunc ¶
type UnlockFunc func() error
type WorkspaceLockStore ¶
Click to show internal directories.
Click to hide internal directories.