github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/nomad/state/state_store_oss.go (about) 1 // +build !ent 2 3 package state 4 5 import ( 6 memdb "github.com/hashicorp/go-memdb" 7 "github.com/hashicorp/nomad/nomad/structs" 8 ) 9 10 // namespaceExists returns whether a namespace exists 11 func (s *StateStore) namespaceExists(txn *memdb.Txn, namespace string) (bool, error) { 12 return namespace == structs.DefaultNamespace, nil 13 } 14 15 // updateEntWithAlloc is used to update Nomad Enterprise objects when an allocation is 16 // added/modified/deleted 17 func (s *StateStore) updateEntWithAlloc(index uint64, new, existing *structs.Allocation, txn *memdb.Txn) error { 18 return nil 19 }