2023-04-10 15:36:59 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-06-07 14:18:19 +00:00
|
|
|
package mock
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/nomad/nomad/structs"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CheckShim is a mock implementation of checkstore.Shim
|
|
|
|
//
|
|
|
|
// So far the implementation does nothing.
|
|
|
|
type CheckShim struct{}
|
|
|
|
|
|
|
|
func (s *CheckShim) Set(allocID string, result *structs.CheckQueryResult) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CheckShim) List(allocID string) map[structs.CheckID]*structs.CheckQueryResult {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CheckShim) Difference(allocID string, ids []structs.CheckID) []structs.CheckID {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CheckShim) Remove(allocID string, ids []structs.CheckID) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CheckShim) Purge(allocID string) error {
|
|
|
|
return nil
|
|
|
|
}
|
2022-09-12 20:23:21 +00:00
|
|
|
|
|
|
|
func (s *CheckShim) Snapshot() map[string]string {
|
|
|
|
return nil
|
|
|
|
}
|