open-nomad/client/state/noopdb.go
Michael Schurter a3fe0510d1 Move all encoding and put deduping into state db
Still WIP as it does not handle deletions.
2018-10-16 16:53:30 -07:00

33 lines
759 B
Go

package state
import (
"github.com/hashicorp/nomad/client/allocrunnerv2/taskrunner/state"
"github.com/hashicorp/nomad/nomad/structs"
)
type noopDB struct{}
func (n noopDB) GetAllAllocations() ([]*structs.Allocation, map[string]error, error) {
return nil, nil, nil
}
func (n noopDB) PutAllocation(*structs.Allocation) error {
return nil
}
func (n noopDB) GetTaskRunnerState(allocID string, taskName string) (*state.LocalState, *structs.TaskState, error) {
return nil, nil, nil
}
func (n noopDB) PutTaskRunnerLocalState(allocID string, taskName string, val interface{}) error {
return nil
}
func (n noopDB) PutTaskState(allocID string, taskName string, state *structs.TaskState) error {
return nil
}
func (n noopDB) Close() error {
return nil
}