state

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateStore

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

func NewInmemStore

func NewInmemStore(t *testing.T) *StateStore

func NewStateStore

func NewStateStore(path string) (*StateStore, error)

func NewStateStoreWithBoltDB

func NewStateStoreWithBoltDB(db *bolt.DB) (*StateStore, error)

func (*StateStore) AllocationList

func (s *StateStore) AllocationList(ws memdb.WatchSet) ([]*proto.Allocation, error)

func (*StateStore) AllocationListByNodeId

func (s *StateStore) AllocationListByNodeId(nodeId string, ws memdb.WatchSet) ([]*proto.Allocation, error)

func (*StateStore) AllocationsByIDPrefix

func (s *StateStore) AllocationsByIDPrefix(prefix string) ([]*proto.Allocation, error)

func (*StateStore) Close

func (s *StateStore) Close() error

func (*StateStore) DestroyAllocation

func (s *StateStore) DestroyAllocation(id string) error

func (*StateStore) GetAllocation

func (s *StateStore) GetAllocation(id string) (*proto.Allocation, error)

func (*StateStore) UpsertAllocation

func (s *StateStore) UpsertAllocation(alloc *proto.Allocation) error

Jump to

Keyboard shortcuts

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