meshdb

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package meshdb implements a storage.Database using any storage.MeshStorage instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(store storage.MeshStorage) storage.MeshDB

New returns a new storage.Database instance using the given underlying MeshStorage.

Types

type MeshDBCloser

type MeshDBCloser interface {
	storage.MeshDB
	io.Closer
}

MeshDBCloser is a storage.MeshDB that can be closed.

func NewTestDB

func NewTestDB() MeshDBCloser

NewTestDB returns a new in-memory storage.Database instance for testing.

type TestDB

type TestDB struct {
	storage.MeshDB
	io.Closer
}

Directories

Path Synopsis
Package graph implements a graph data structure for the mesh network.
Package graph implements a graph data structure for the mesh network.
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 rbac contains interfaces to the database models for RBAC.
Package rbac contains interfaces to the database models for RBAC.
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