boltdb

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateRepository

type StateRepository struct {
	// contains filtered or unexported fields
}

StateRepository ...

func NewStateRepository

func NewStateRepository(path string) (*StateRepository, error)

NewStateRepository creates a new BoltDB state repository

func (*StateRepository) DeleteInterfaces

func (r *StateRepository) DeleteInterfaces(ids []string) error

DeleteInterfaces :

func (*StateRepository) DeleteKey

func (r *StateRepository) DeleteKey(id string) error

func (*StateRepository) Interfaces

func (r *StateRepository) Interfaces() ([]*structs.Interface, error)

Interfaces :

func (*StateRepository) KeyByID

func (r *StateRepository) KeyByID(id string) (*nic.PrivateKey, error)

func (*StateRepository) Name

func (r *StateRepository) Name() string

Name :

func (*StateRepository) UpsertInterface

func (r *StateRepository) UpsertInterface(iface *structs.Interface) error

UpsertInterface :

func (*StateRepository) UpsertKey

func (r *StateRepository) UpsertKey(key *nic.PrivateKey) error

Jump to

Keyboard shortcuts

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