Documentation
¶
Index ¶
- func ExitCodeFromErr(err error) int
- func NewError(code Code, msg string, cause error) error
- type ActivationState
- type CatalogPolicySnapshot
- type Code
- type Delivery
- type DeliveryKind
- type EnvironmentRestrictionCode
- type Error
- type EvidenceClass
- type InstallPolicy
- type InstallState
- type InstallationRecord
- type IntegrationManifest
- type IntegrationRef
- type JournalStep
- type MigrationHint
- type NativeObjectRef
- type OperationRecord
- type ProtectionClass
- type Report
- type RequestedSourceRef
- type ResolvedSourceRef
- type TargetID
- type TargetInstallation
- type TargetReport
- type WorkspaceLock
- type WorkspaceLockIntegration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitCodeFromErr ¶
Types ¶
type ActivationState ¶
type ActivationState string
const ( ActivationNotRequired ActivationState = "not_required" ActivationNativePending ActivationState = "native_activation_pending" ActivationReloadPending ActivationState = "reload_pending" ActivationRestartPending ActivationState = "restart_pending" ActivationNewThreadPending ActivationState = "new_thread_pending" ActivationComplete ActivationState = "complete" )
type CatalogPolicySnapshot ¶
type Code ¶
type Code string
const ( ErrUsage Code = "usage" ErrSourceResolve Code = "source_resolve" ErrManifestLoad Code = "manifest_load" ErrUnsupportedTarget Code = "unsupported_target" ErrEnvironmentBlocked Code = "environment_blocked" ErrStateConflict Code = "state_conflict" ErrLockAcquire Code = "lock_acquire" ErrActivationPending Code = "activation_pending" ErrAuthPending Code = "auth_pending" ErrMutationApply Code = "mutation_apply" ErrRepairApply Code = "repair_apply" ErrEvidenceViolation Code = "evidence_violation" )
type Delivery ¶
type Delivery struct {
TargetID TargetID `json:"target_id"`
DeliveryKind DeliveryKind `json:"delivery_kind"`
Name string `json:"name"`
NativeRefHint string `json:"native_ref_hint,omitempty"`
CapabilitySurface []string `json:"capability_surface,omitempty"`
}
type DeliveryKind ¶
type DeliveryKind string
const ( DeliveryClaudeMarketplace DeliveryKind = "claude-marketplace-plugin" DeliveryCodexMarketplace DeliveryKind = "codex-marketplace-plugin" DeliveryGeminiExtension DeliveryKind = "gemini-extension" DeliveryCursorPlugin DeliveryKind = "cursor-plugin" DeliveryCursorMCP DeliveryKind = "cursor-mcp" DeliveryOpenCodePlugin DeliveryKind = "opencode-plugin" )
type EnvironmentRestrictionCode ¶
type EnvironmentRestrictionCode string
const ( RestrictionManagedPolicyBlock EnvironmentRestrictionCode = "managed_policy_block" RestrictionTrustRequired EnvironmentRestrictionCode = "trust_required" RestrictionSourceAuthRequired EnvironmentRestrictionCode = "source_auth_required" RestrictionNativeAuthRequired EnvironmentRestrictionCode = "native_auth_required" RestrictionNativeActivation EnvironmentRestrictionCode = "native_activation_required" RestrictionRestartRequired EnvironmentRestrictionCode = "restart_required" RestrictionReloadRequired EnvironmentRestrictionCode = "reload_required" RestrictionNewThreadRequired EnvironmentRestrictionCode = "new_thread_required" RestrictionSourceToolMissing EnvironmentRestrictionCode = "source_tool_missing" RestrictionSourceShapeInvalid EnvironmentRestrictionCode = "source_shape_unsupported" RestrictionReadOnlyNativeLayer EnvironmentRestrictionCode = "read_only_native_layer" RestrictionVolatileOverride EnvironmentRestrictionCode = "volatile_override_layer" )
type EvidenceClass ¶
type EvidenceClass string
const ( EvidenceConfirmed EvidenceClass = "confirmed_vendor_fact" EvidenceInference EvidenceClass = "architectural_inference" EvidencePolicy EvidenceClass = "project_policy" )
type InstallPolicy ¶
type InstallPolicy struct {
Scope string `json:"scope" yaml:"scope,omitempty"`
AutoUpdate bool `json:"auto_update" yaml:"auto_update,omitempty"`
AdoptNewTargets string `json:"adopt_new_targets" yaml:"adopt_new_targets,omitempty"`
AllowPrerelease bool `json:"allow_prerelease" yaml:"allow_prerelease,omitempty"`
}
type InstallState ¶
type InstallState string
const ( InstallPrepared InstallState = "prepared" InstallInstalled InstallState = "installed" InstallActivationPending InstallState = "activation_pending" InstallAuthPending InstallState = "auth_pending" InstallDisabled InstallState = "disabled" InstallDegraded InstallState = "degraded" InstallRemoved InstallState = "removed" )
type InstallationRecord ¶
type InstallationRecord struct {
IntegrationID string `json:"integration_id"`
RequestedSourceRef RequestedSourceRef `json:"requested_source_ref"`
ResolvedSourceRef ResolvedSourceRef `json:"resolved_source_ref"`
ResolvedVersion string `json:"resolved_version"`
SourceDigest string `json:"source_digest"`
ManifestDigest string `json:"manifest_digest"`
Policy InstallPolicy `json:"policy"`
WorkspaceRoot string `json:"workspace_root,omitempty"`
Targets map[TargetID]TargetInstallation `json:"targets"`
LastCheckedAt string `json:"last_checked_at"`
LastUpdatedAt string `json:"last_updated_at"`
}
type IntegrationManifest ¶
type IntegrationManifest struct {
IntegrationID string `json:"integration_id"`
Version string `json:"version"`
Description string `json:"description,omitempty"`
RequestedRef RequestedSourceRef `json:"requested_ref"`
ResolvedRef ResolvedSourceRef `json:"resolved_ref"`
SourceDigest string `json:"source_digest"`
ManifestDigest string `json:"manifest_digest"`
Deliveries []Delivery `json:"deliveries"`
Migration *MigrationHint `json:"migration,omitempty"`
}
type IntegrationRef ¶
type IntegrationRef struct {
Raw string
}
type JournalStep ¶
type MigrationHint ¶
type NativeObjectRef ¶
type NativeObjectRef struct {
Kind string `json:"kind"`
Name string `json:"name,omitempty"`
Path string `json:"path,omitempty"`
ProtectionClass ProtectionClass `json:"protection_class,omitempty"`
}
type OperationRecord ¶
type ProtectionClass ¶
type ProtectionClass string
const ( ProtectionUserMutable ProtectionClass = "user_mutable" ProtectionWorkspace ProtectionClass = "workspace_mutable" ProtectionRemoteDefault ProtectionClass = "remote_default" ProtectionAdminManaged ProtectionClass = "admin_managed" )
type Report ¶
type Report struct {
OperationID string `json:"operation_id,omitempty"`
Summary string `json:"summary"`
RequestedTargetCount int `json:"requested_target_count,omitempty"`
SkippedTargets []string `json:"skipped_targets,omitempty"`
Targets []TargetReport `json:"targets,omitempty"`
Warnings []string `json:"warnings,omitempty"`
}
type RequestedSourceRef ¶
type ResolvedSourceRef ¶
type TargetInstallation ¶
type TargetInstallation struct {
TargetID TargetID `json:"target_id"`
DeliveryKind DeliveryKind `json:"delivery_kind"`
CapabilitySurface []string `json:"capability_surface,omitempty"`
State InstallState `json:"state"`
NativeRef string `json:"native_ref,omitempty"`
ActivationState ActivationState `json:"activation_state,omitempty"`
InteractiveAuthState string `json:"interactive_auth_state,omitempty"`
CatalogPolicy *CatalogPolicySnapshot `json:"catalog_policy,omitempty"`
EnvironmentRestrictions []EnvironmentRestrictionCode `json:"environment_restrictions,omitempty"`
SourceAccessState string `json:"source_access_state,omitempty"`
OwnedNativeObjects []NativeObjectRef `json:"owned_native_objects,omitempty"`
AdapterMetadata map[string]any `json:"adapter_metadata,omitempty"`
}
type TargetReport ¶
type TargetReport struct {
IntegrationID string `json:"integration_id,omitempty"`
TargetID string `json:"target"`
DeliveryKind string `json:"delivery_kind,omitempty"`
CapabilitySurface []string `json:"capability_surface,omitempty"`
ActionClass string `json:"action_class,omitempty"`
State string `json:"state,omitempty"`
ActivationState string `json:"activation_state,omitempty"`
InteractiveAuthState string `json:"interactive_auth_state,omitempty"`
RestartRequired bool `json:"restart_required,omitempty"`
ReloadRequired bool `json:"reload_required,omitempty"`
NewThreadRequired bool `json:"new_thread_required,omitempty"`
CatalogPolicy *CatalogPolicySnapshot `json:"catalog_policy,omitempty"`
EnvironmentRestrictions []string `json:"environment_restrictions,omitempty"`
VolatileOverrideDetected bool `json:"volatile_override_detected,omitempty"`
TrustResolutionSource string `json:"trust_resolution_source,omitempty"`
SourceAccessState string `json:"source_access_state,omitempty"`
EvidenceKey string `json:"evidence_key,omitempty"`
ManualSteps []string `json:"manual_steps,omitempty"`
}
type WorkspaceLock ¶
type WorkspaceLock struct {
APIVersion string `json:"api_version" yaml:"api_version"`
Integrations []WorkspaceLockIntegration `json:"integrations" yaml:"integrations"`
}
type WorkspaceLockIntegration ¶
type WorkspaceLockIntegration struct {
Source string `json:"source" yaml:"source"`
Version string `json:"version,omitempty" yaml:"version,omitempty"`
Targets []string `json:"targets,omitempty" yaml:"targets,omitempty"`
Policy InstallPolicy `json:"policy,omitempty" yaml:"policy,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.