2020-02-10 20:56:14 +00:00
|
|
|
// +build !ent
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/nomad/nomad/structs"
|
|
|
|
)
|
|
|
|
|
2020-10-21 04:16:25 +00:00
|
|
|
// quotaSpecExists on returns whether the quota exists
|
|
|
|
func (s *StateStore) quotaSpecExists(txn *txn, name string) (bool, error) {
|
|
|
|
return false, nil
|
2020-07-20 13:22:26 +00:00
|
|
|
}
|
|
|
|
|
2020-10-21 04:16:25 +00:00
|
|
|
func (s *StateStore) quotaReconcile(index uint64, txn *txn, newQuota, oldQuota string) error {
|
|
|
|
return nil
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
2017-10-13 21:36:02 +00:00
|
|
|
|
|
|
|
// updateEntWithAlloc is used to update Nomad Enterprise objects when an allocation is
|
|
|
|
// added/modified/deleted
|
2020-08-27 14:18:53 +00:00
|
|
|
func (s *StateStore) updateEntWithAlloc(index uint64, new, existing *structs.Allocation, txn *txn) error {
|
2017-10-13 21:36:02 +00:00
|
|
|
return nil
|
|
|
|
}
|
2020-09-09 22:30:40 +00:00
|
|
|
|
|
|
|
// deleteRecommendationsByJob deletes all recommendations for the specified job
|
|
|
|
func (s *StateStore) deleteRecommendationsByJob(index uint64, txn Txn, job *structs.Job) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// updateJobRecommendations updates/deletes job recommendations as necessary for a job update
|
|
|
|
func (s *StateStore) updateJobRecommendations(index uint64, txn Txn, prevJob, newJob *structs.Job) error {
|
|
|
|
return nil
|
|
|
|
}
|