open-nomad/client/pluginmanager/testing.go

11 lines
287 B
Go
Raw Normal View History

package pluginmanager
type MockPluginManager struct {
RunF func()
ShutdownF func()
}
func (m *MockPluginManager) Run() { m.RunF() }
func (m *MockPluginManager) Shutdown() { m.ShutdownF() }
func (m *MockPluginManager) PluginType() string { return "mock" }