Documentation
¶
Index ¶
- func Factory(config map[string]interface{}) (state.State, error)
- type BoltDB
- func (b *BoltDB) Apply(c *proto.Component) error
- func (b *BoltDB) Close() error
- func (b *BoltDB) Finalize(id string) error
- func (b *BoltDB) Get(name string) (*proto.Component, error)
- func (b *BoltDB) GetTask(ctx context.Context) (*proto.ComponentTask, error)
- func (b *BoltDB) LoadCluster(id string) (*proto.Cluster, error)
- func (b *BoltDB) UpsertCluster(c *proto.Cluster) error
- func (b *BoltDB) UpsertNode(n *proto.Node) error
- func (b *BoltDB) Wait(id string) chan struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
BoltDB is a boltdb state implementation
func (*BoltDB) UpsertCluster ¶
UpsertCluster implements the BoltDB interface
func (*BoltDB) UpsertNode ¶
UpsertNode implements the BoltDB interface
Click to show internal directories.
Click to hide internal directories.