Versions in this module Expand all Collapse all v0 v0.25.0 Apr 24, 2026 Changes in this version + const ModeDryRun + const ModeExecute + const OutcomeBlocked + const OutcomeFailed + const OutcomeSuccess + var ErrUnknownFixer = errors.New("diagnostics: unknown fixer key") + func FixerKeys() []string + func Has(c Code) bool + func Register(key string, f FixerFunc) + func WrapConfigDeprecatedField(err error) error + func WrapConfigMissingSecret(err error) error + func WrapConfigParseError(err error) error + func WrapDockerDaemonDown(err error) error + func WrapDockerImagePullFailed(err error) error + func WrapDockerNoPermission(err error) error + func WrapError(code Code, err error) error + func WrapOAuthDiscoveryFailed(err error) error + func WrapOAuthRefresh403(err error) error + func WrapOAuthRefreshExpired(err error) error + func WrapQuarantinePendingApproval(err error) error + func WrapQuarantineToolChanged(err error) error + type CatalogEntry struct + Code Code + Deprecated bool + DocsURL string + FixSteps []FixStep + ReplacedBy Code + Severity Severity + UserMessage string + func All() []CatalogEntry + func Get(c Code) (CatalogEntry, bool) + type ClassifierHints struct + ServerID string + Transport string + type Code string + const ConfigDeprecatedField + const ConfigMissingSecret + const ConfigParseError + const DockerDaemonDown + const DockerImagePullFailed + const DockerNoPermission + const DockerSnapAppArmor + const HTTPConnRefuse + const HTTPDNSFailed + const HTTPForbidden + const HTTPNotFound + const HTTPServerErr + const HTTPTLSFailed + const HTTPUnauth + const NetworkOffline + const NetworkProxyMisconfig + const OAuthCallbackMismatch + const OAuthCallbackTimeout + const OAuthDiscoveryFailed + const OAuthRefresh403 + const OAuthRefreshExpired + const QuarantinePendingApproval + const QuarantineToolChanged + const STDIOExitNonzero + const STDIOHandshakeInvalid + const STDIOHandshakeTimeout + const STDIOSpawnEACCES + const STDIOSpawnENOENT + const UnknownUnclassified + func Classify(err error, hints ClassifierHints) Code + func DiagnoseHTTPStatus(status int) Code + type DiagnosticError struct + Cause string + CauseType string + Code Code + DetectedAt time.Time + ServerID string + Severity Severity + type FixRequest struct + Mode string + ServerID string + type FixResult struct + FailureMsg string + Outcome string + Preview string + func InvokeFixer(ctx context.Context, key string, req FixRequest) (FixResult, error) + type FixStep struct + Command string + Destructive bool + FixerKey string + Label string + Type FixStepType + URL string + type FixStepType string + const FixStepButton + const FixStepCommand + const FixStepLink + type FixerFunc func(ctx context.Context, req FixRequest) (FixResult, error) + type Severity string + const SeverityError + const SeverityInfo + const SeverityWarn