boltdb

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB

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

BoltDB is a boltdb state implementation

func Factory

func Factory(config map[string]interface{}) (*BoltDB, error)

Factory is the factory method for the Boltdb backend

func (*BoltDB) Apply

func (b *BoltDB) Apply(comp *proto.Component) (*proto.Component, error)

func (*BoltDB) Close

func (b *BoltDB) Close() error

Close implements the BoltDB interface

func (*BoltDB) Finalize

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

func (*BoltDB) GetComponentByID2 added in v0.1.3

func (b *BoltDB) GetComponentByID2(clusterName, ref string, sequence int64) (*proto.Component, error)

func (*BoltDB) GetComponentVersions added in v0.1.3

func (b *BoltDB) GetComponentVersions(deploymentID string, id string) ([]*proto.Component, error)

func (*BoltDB) GetComponents added in v0.1.3

func (b *BoltDB) GetComponents(deploymentID string) ([]*proto.Component, error)

GetComponents returns all the available components for the deployment

func (*BoltDB) GetHistory added in v0.1.3

func (b *BoltDB) GetHistory(deploymentID string) ([]*proto.Component, error)

func (*BoltDB) GetTask

func (b *BoltDB) GetTask(ctx context.Context) *proto.Task

func (*BoltDB) ListDeployments added in v0.1.3

func (b *BoltDB) ListDeployments() ([]*proto.Deployment, error)

func (*BoltDB) LoadDeployment added in v0.1.3

func (b *BoltDB) LoadDeployment(id string) (*proto.Deployment, error)

func (*BoltDB) LoadNode added in v0.1.3

func (b *BoltDB) LoadNode(id string) (*proto.Instance, error)

func (*BoltDB) NameToDeployment added in v0.1.3

func (b *BoltDB) NameToDeployment(name string) (string, error)

func (*BoltDB) ReadDeployment added in v0.1.3

func (b *BoltDB) ReadDeployment(id string) (*proto.Component, error)

func (*BoltDB) UpdateDeployment added in v0.1.3

func (b *BoltDB) UpdateDeployment(d *proto.Deployment) error

func (*BoltDB) UpsertNode

func (b *BoltDB) UpsertNode(n *proto.Instance) 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