2020-02-10 20:56:14 +00:00
|
|
|
// +build !ent
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
|
|
|
memdb "github.com/hashicorp/go-memdb"
|
|
|
|
"github.com/hashicorp/nomad/nomad/structs"
|
|
|
|
)
|
|
|
|
|
|
|
|
// namespaceExists returns whether a namespace exists
|
|
|
|
func (s *StateStore) namespaceExists(txn *memdb.Txn, namespace string) (bool, error) {
|
|
|
|
return namespace == structs.DefaultNamespace, nil
|
|
|
|
}
|
2017-10-13 21:36:02 +00:00
|
|
|
|
|
|
|
// updateEntWithAlloc is used to update Nomad Enterprise objects when an allocation is
|
|
|
|
// added/modified/deleted
|
|
|
|
func (s *StateStore) updateEntWithAlloc(index uint64, new, existing *structs.Allocation, txn *memdb.Txn) error {
|
|
|
|
return nil
|
|
|
|
}
|