connbackfill

package
v1.97.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package connbackfill seeds connection_instances with a credential-free row for every file-configured connection, so knowledge-page references of the form mcp:connection:(kind,name) — which FK to connection_instances — resolve for connections defined only in platform.yaml. It lives outside pkg/platform so that package stays within its size budget, depending only on the toolkit enumeration (connview) and a raw database handle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, db *sql.DB, toolkits []registry.Toolkit)

Run inserts a (kind,name) row for every connection connview enumerates. It is insert-only — ON CONFLICT DO NOTHING never overwrites an admin-managed row's config, secrets, or created_by — and it writes no secrets: the file config remains the source of the real runtime configuration. The connection set is exactly what list_connections advertises (via connview), so every reference it emits resolves, including datahub, which the admin connection API does not manage. A nil db is a no-op (a stateless deployment has nothing to back the references). Per-connection errors are logged and never abort the sweep.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL