github.com/manicqin/nomad@v0.9.5/command/agent/consul/testing.go (about) 1 package consul 2 3 import ( 4 "context" 5 6 "github.com/hashicorp/nomad/nomad/structs" 7 ) 8 9 func NoopRestarter() WorkloadRestarter { 10 return noopRestarter{} 11 } 12 13 type noopRestarter struct{} 14 15 func (noopRestarter) Restart(ctx context.Context, event *structs.TaskEvent, failure bool) error { 16 return nil 17 }