github.com/hernad/nomad@v1.6.112/nomad/state/state_store_oss.go (about)

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