Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasHealthCheck ¶ added in v0.10.0
HasHealthCheck reports whether a connector module registered a HealthCheck hook. The detail page renders the "Check Permissions" button only when this is true so connectors without a hook do not expose a no-op action.
Types ¶
type CustomDefInfo ¶ added in v0.17.0
type CustomDefInfo struct {
DefID string
SourceLabel string // "cURL" | "MCP" | "Manual"
Dirty bool
Disabled bool
MCP bool
Connected bool // last tools/list probe OK (MCP only)
Tested bool // server has been probed at least once (MCP only)
OAuth bool // server uses the oauth scheme (per-instance accounts)
// OAuthAccount is the viewed instance's resolved identity (email /
// username from OIDC) — header chip on the detail page; empty when
// the server yields no identity (chip hidden). OAuthConnected says
// whether an access token is attached at all — drives the
// Connect vs Reconnect button independent of identity.
OAuthAccount string
OAuthConnected bool
}
CustomDefInfo decorates the connector list/detail pages when the key belongs to a custom definition: the "Custom · <source>" badge, the edit-definition link, the reload banner (Dirty), the disable toggle, and the delete-definition danger row. MCP defs additionally carry the connection status chip (Connected / Disconnected, from the server row's last probe) and the Re-sync action — cURL/manual defs have no connection to track. Nil on built-in connectors.