github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/nomad/state/state_store_oss.go (about)

     1  // +build !ent
     2  
     3  package state
     4  
     5  import (
     6  	"github.com/hashicorp/nomad/nomad/structs"
     7  )
     8  
     9  // quotaSpecExists on returns whether the quota exists
    10  func (s *StateStore) quotaSpecExists(txn *txn, name string) (bool, error) {
    11  	return false, nil
    12  }
    13  
    14  func (s *StateStore) quotaReconcile(index uint64, txn *txn, newQuota, oldQuota string) error {
    15  	return nil
    16  }
    17  
    18  // updateEntWithAlloc is used to update Nomad Enterprise objects when an allocation is
    19  // added/modified/deleted
    20  func (s *StateStore) updateEntWithAlloc(index uint64, new, existing *structs.Allocation, txn *txn) error {
    21  	return nil
    22  }
    23  
    24  // deleteRecommendationsByJob deletes all recommendations for the specified job
    25  func (s *StateStore) deleteRecommendationsByJob(index uint64, txn Txn, job *structs.Job) error {
    26  	return nil
    27  }
    28  
    29  // updateJobRecommendations updates/deletes job recommendations as necessary for a job update
    30  func (s *StateStore) updateJobRecommendations(index uint64, txn Txn, prevJob, newJob *structs.Job) error {
    31  	return nil
    32  }