14 lines
325 B
Go
14 lines
325 B
Go
// +build !pro,!ent
|
|
|
|
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
|
|
}
|