connbackfill

package
v1.169.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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. 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