package
0.12.12
Repository: https://github.com/hashicorp/nomad.git
Documentation: pkg.go.dev

# Functions

GetStateDBFactory returns a func for creating a StateDB.
NeedsUpgrade returns true if the BoltDB needs upgrading or false if it is already up to date.
NewBoltStateDB creates or opens an existing boltdb state file or returns an error.
UnmarshalPre09HandleID decodes the pre09 json encoded handle ID.
UpgradeSchema upgrades the boltdb schema.

# Structs

BoltStateDB persists and restores Nomad client state in a boltdb.
ErrDB implements a StateDB that returns errors on restore methods, used for testing.
MemDB implements a StateDB that stores data in memory and should only be used for testing.
NoopDB implements a StateDB that does not persist any data.

# Interfaces

StateDB implementations store and load Nomad client state.

# Type aliases

NewStateDBFunc creates a StateDB given a state directory.