meshdb

package
v0.0.21 Latest Latest
Warning

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

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

Documentation

Overview

Package meshdb contains the schemas, generated code, and interfaces for interacting with the mesh database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// ID returns the ID of the node.
	ID() string
	// Storage returns a storage interface for use by the application.
	Storage() storage.Storage
	// Raft returns the underlying Raft database.
	Raft() *raft.Raft
	// Leader returns the current Raft leader.
	Leader() (raft.ServerID, error)
	// IsLeader returns whether the current node is the Raft leader.
	IsLeader() bool
	// Plugins returns the plugins for the current node.
	Plugins() plugins.Manager
	// WireGuard returns the Wireguard interface. Note that the returned value
	// may be nil if the store is not open.
	WireGuard() wireguard.Interface
}

Store is the interface for interacting with the mesh database. It is a reduced version of the store.Store interface.

Directories

Path Synopsis
Package networking contains interfaces to the database models for Network ACLs and Routes.
Package networking contains interfaces to the database models for Network ACLs and Routes.
Package peers contains an interface for managing nodes in the mesh.
Package peers contains an interface for managing nodes in the mesh.
Package raftlogs provides facilities for applying raft logs to a database.
Package raftlogs provides facilities for applying raft logs to a database.
Package rbac contains interfaces to the database models for RBAC.
Package rbac contains interfaces to the database models for RBAC.
Package snapshots provides an interface for managing raft snapshots.
Package snapshots provides an interface for managing raft snapshots.
Package state provides an interface for querying mesh state.
Package state provides an interface for querying mesh state.

Jump to

Keyboard shortcuts

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