MCPcopy
hub / github.com/k3s-io/kine

github.com/k3s-io/kine @v0.16.3 sqlite

repository ↗ · DeepWiki ↗ · release v0.16.3 ↗
603 symbols 1,973 edges 73 files 106 documented · 18%
README

Kine (Kine is not etcd)

Kine is an etcdshim that translates etcd API to: - SQLite - Postgres - MySQL/MariaDB - NATS

Features

  • Can be ran standalone so any k8s (not just K3s) can use Kine
  • Implements a subset of etcdAPI (not usable at all for general purpose etcd)
  • Translates etcdTX calls into the desired API (Create, Update, Delete)

See an example.

Developer Documentation

A high level flow diagram and overview of code structure is available at docs/flow.md.

Extension points exported contracts — how you extend this code

Backend (Interface)
(no doc) [5 implementers]
pkg/server/types.go
BackoffManager (Interface)
BackoffManager is a simple interval manager with timer reuse, inpsired by k8s.io/apimachinery/util/wait.BackoffManager. [1 …
pkg/util/wait.go
Constructor (FuncType)
Constructor is a function that takes a context, waitgroup, and config and returns a leaderElect bool, a server.Backend a
pkg/drivers/registry.go
Client (Interface)
(no doc) [1 implementers]
pkg/client/client.go
Log (Interface)
(no doc) [1 implementers]
pkg/logstructured/logstructured.go
RegistererGatherer (Interface)
(no doc)
pkg/metrics/registry.go
ConnectFunc (FuncType)
(no doc)
pkg/broadcaster/broadcaster.go
Dialect (Interface)
(no doc) [1 implementers]
pkg/server/types.go

Core symbols most depended-on inside this repo

Create
called by 79
pkg/client/client.go
Get
called by 51
pkg/client/client.go
BucketRevision
called by 32
pkg/drivers/nats/kv.go
New
called by 31
pkg/query/query.go
Add
called by 30
pkg/drivers/nats/expire_watcher.go
Update
called by 28
pkg/client/client.go
List
called by 26
pkg/client/client.go
CurrentRevision
called by 22
pkg/server/types.go

Shape

Method 330
Function 201
Struct 55
Interface 9
FuncType 7
TypeAlias 1

Languages

Go99%
Python1%

Modules by API surface

pkg/drivers/nats/kv.go48 symbols
pkg/server/types.go47 symbols
pkg/drivers/generic/generic.go30 symbols
pkg/logstructured/logstructured.go29 symbols
pkg/drivers/memory/memory_test.go29 symbols
pkg/logstructured/sqllog/sql.go25 symbols
pkg/drivers/memory/memory.go24 symbols
pkg/drivers/nats/expire_watcher.go23 symbols
pkg/drivers/nats/backend.go20 symbols
pkg/client/client.go20 symbols
pkg/drivers/t4/backend.go19 symbols
pkg/server/watch.go16 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

filippo.io/edwards25519v1.2.0 · 1×
github.com/DataDog/zstdv1.4.5 · 1×
github.com/Rican7/retryv0.3.1 · 1×
github.com/antithesishq/antithesis-sdk-gov0.7.0 · 1×
github.com/beorn7/perksv1.0.1 · 1×
github.com/blang/semver/v4v4.0.0 · 1×
github.com/cespare/xxhash/v2v2.3.0 · 1×
github.com/cockroachdb/fifov0.0.0-2024060620481 · 1×
github.com/cockroachdb/logtagsv0.0.0-2023011820175 · 1×
github.com/cockroachdb/pebblev1.1.5 · 1×

Datastores touched

(mysql)Database · 1 repos
kineDatabase · 1 repos

For agents

$ claude mcp add kine \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact