This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 263
/
flavor.go
75 lines (61 loc) · 2.29 KB
/
flavor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/docker/infrakit/pkg/spi/flavor (interfaces: Plugin)
package flavor
import (
types "github.com/docker/infrakit/pkg/plugin/group/types"
flavor "github.com/docker/infrakit/pkg/spi/flavor"
instance "github.com/docker/infrakit/pkg/spi/instance"
types0 "github.com/docker/infrakit/pkg/types"
gomock "github.com/golang/mock/gomock"
)
// Mock of Plugin interface
type MockPlugin struct {
ctrl *gomock.Controller
recorder *_MockPluginRecorder
}
// Recorder for MockPlugin (not exported)
type _MockPluginRecorder struct {
mock *MockPlugin
}
func NewMockPlugin(ctrl *gomock.Controller) *MockPlugin {
mock := &MockPlugin{ctrl: ctrl}
mock.recorder = &_MockPluginRecorder{mock}
return mock
}
func (_m *MockPlugin) EXPECT() *_MockPluginRecorder {
return _m.recorder
}
func (_m *MockPlugin) Drain(_param0 *types0.Any, _param1 instance.Description) error {
ret := _m.ctrl.Call(_m, "Drain", _param0, _param1)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockPluginRecorder) Drain(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Drain", arg0, arg1)
}
func (_m *MockPlugin) Healthy(_param0 *types0.Any, _param1 instance.Description) (flavor.Health, error) {
ret := _m.ctrl.Call(_m, "Healthy", _param0, _param1)
ret0, _ := ret[0].(flavor.Health)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockPluginRecorder) Healthy(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Healthy", arg0, arg1)
}
func (_m *MockPlugin) Prepare(_param0 *types0.Any, _param1 instance.Spec, _param2 types.AllocationMethod) (instance.Spec, error) {
ret := _m.ctrl.Call(_m, "Prepare", _param0, _param1, _param2)
ret0, _ := ret[0].(instance.Spec)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockPluginRecorder) Prepare(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Prepare", arg0, arg1, arg2)
}
func (_m *MockPlugin) Validate(_param0 *types0.Any, _param1 types.AllocationMethod) error {
ret := _m.ctrl.Call(_m, "Validate", _param0, _param1)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockPluginRecorder) Validate(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Validate", arg0, arg1)
}