719077a26d
state store: call-out to generic update of job recommendations from job update method recommendations API work, and http endpoint errors for OSS support for scaling polices in task block of job spec add query filters for ScalingPolicy list endpoint command: nomad scaling policy list: added -job and -type
33 lines
992 B
Go
33 lines
992 B
Go
// +build !ent
|
|
|
|
package state
|
|
|
|
import (
|
|
"github.com/hashicorp/nomad/nomad/structs"
|
|
)
|
|
|
|
// quotaSpecExists on returns whether the quota exists
|
|
func (s *StateStore) quotaSpecExists(txn *txn, name string) (bool, error) {
|
|
return false, nil
|
|
}
|
|
|
|
func (s *StateStore) quotaReconcile(index uint64, txn *txn, newQuota, oldQuota string) error {
|
|
return nil
|
|
}
|
|
|
|
// 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 *txn) error {
|
|
return nil
|
|
}
|
|
|
|
// 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
|
|
}
|