github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/nomad/mock/checks.go (about)

     1  package mock
     2  
     3  import (
     4  	"github.com/hashicorp/nomad/nomad/structs"
     5  )
     6  
     7  // CheckShim is a mock implementation of checkstore.Shim
     8  //
     9  // So far the implementation does nothing.
    10  type CheckShim struct{}
    11  
    12  func (s *CheckShim) Set(allocID string, result *structs.CheckQueryResult) error {
    13  	return nil
    14  }
    15  
    16  func (s *CheckShim) List(allocID string) map[structs.CheckID]*structs.CheckQueryResult {
    17  	return nil
    18  }
    19  
    20  func (s *CheckShim) Difference(allocID string, ids []structs.CheckID) []structs.CheckID {
    21  	return nil
    22  }
    23  
    24  func (s *CheckShim) Remove(allocID string, ids []structs.CheckID) error {
    25  	return nil
    26  }
    27  
    28  func (s *CheckShim) Purge(allocID string) error {
    29  	return nil
    30  }
    31  
    32  func (s *CheckShim) Snapshot() map[string]string {
    33  	return nil
    34  }