boltdb

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(config map[string]interface{}) (state.State, error)

Factory is the factory method for the Boltdb backend

Types

type BoltDB

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

BoltDB is a boltdb state implementation

func (*BoltDB) Apply

func (b *BoltDB) Apply(c *proto.Component) error

func (*BoltDB) Close

func (b *BoltDB) Close() error

Close implements the BoltDB interface

func (*BoltDB) Finalize

func (b *BoltDB) Finalize(id string) error

func (*BoltDB) Get

func (b *BoltDB) Get(name string) (*proto.Component, error)

func (*BoltDB) GetTask

func (b *BoltDB) GetTask(ctx context.Context) (*proto.ComponentTask, error)

func (*BoltDB) LoadCluster

func (b *BoltDB) LoadCluster(id string) (*proto.Cluster, error)

func (*BoltDB) UpsertCluster

func (b *BoltDB) UpsertCluster(c *proto.Cluster) error

UpsertCluster implements the BoltDB interface

func (*BoltDB) UpsertNode

func (b *BoltDB) UpsertNode(n *proto.Node) error

UpsertNode implements the BoltDB interface

func (*BoltDB) Wait

func (b *BoltDB) Wait(id string) chan struct{}

Jump to

Keyboard shortcuts

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