/
lxdprofileinstancebroker_mock.go
152 lines (131 loc) · 6.14 KB
/
lxdprofileinstancebroker_mock.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/juju/juju/worker/provisioner (interfaces: LXDProfileInstanceBroker)
//
// Generated by this command:
//
// mockgen -package mocks -destination mocks/lxdprofileinstancebroker_mock.go github.com/juju/juju/worker/provisioner LXDProfileInstanceBroker
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
instance "github.com/juju/juju/core/instance"
lxdprofile "github.com/juju/juju/core/lxdprofile"
environs "github.com/juju/juju/environs"
context "github.com/juju/juju/environs/context"
instances "github.com/juju/juju/environs/instances"
gomock "go.uber.org/mock/gomock"
)
// MockLXDProfileInstanceBroker is a mock of LXDProfileInstanceBroker interface.
type MockLXDProfileInstanceBroker struct {
ctrl *gomock.Controller
recorder *MockLXDProfileInstanceBrokerMockRecorder
}
// MockLXDProfileInstanceBrokerMockRecorder is the mock recorder for MockLXDProfileInstanceBroker.
type MockLXDProfileInstanceBrokerMockRecorder struct {
mock *MockLXDProfileInstanceBroker
}
// NewMockLXDProfileInstanceBroker creates a new mock instance.
func NewMockLXDProfileInstanceBroker(ctrl *gomock.Controller) *MockLXDProfileInstanceBroker {
mock := &MockLXDProfileInstanceBroker{ctrl: ctrl}
mock.recorder = &MockLXDProfileInstanceBrokerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockLXDProfileInstanceBroker) EXPECT() *MockLXDProfileInstanceBrokerMockRecorder {
return m.recorder
}
// AllInstances mocks base method.
func (m *MockLXDProfileInstanceBroker) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AllInstances", arg0)
ret0, _ := ret[0].([]instances.Instance)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AllInstances indicates an expected call of AllInstances.
func (mr *MockLXDProfileInstanceBrokerMockRecorder) AllInstances(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllInstances", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).AllInstances), arg0)
}
// AllRunningInstances mocks base method.
func (m *MockLXDProfileInstanceBroker) AllRunningInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AllRunningInstances", arg0)
ret0, _ := ret[0].([]instances.Instance)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AllRunningInstances indicates an expected call of AllRunningInstances.
func (mr *MockLXDProfileInstanceBrokerMockRecorder) AllRunningInstances(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllRunningInstances", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).AllRunningInstances), arg0)
}
// AssignLXDProfiles mocks base method.
func (m *MockLXDProfileInstanceBroker) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AssignLXDProfiles", arg0, arg1, arg2)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AssignLXDProfiles indicates an expected call of AssignLXDProfiles.
func (mr *MockLXDProfileInstanceBrokerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignLXDProfiles", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).AssignLXDProfiles), arg0, arg1, arg2)
}
// LXDProfileNames mocks base method.
func (m *MockLXDProfileInstanceBroker) LXDProfileNames(arg0 string) ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LXDProfileNames", arg0)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LXDProfileNames indicates an expected call of LXDProfileNames.
func (mr *MockLXDProfileInstanceBrokerMockRecorder) LXDProfileNames(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LXDProfileNames", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).LXDProfileNames), arg0)
}
// MaybeWriteLXDProfile mocks base method.
func (m *MockLXDProfileInstanceBroker) MaybeWriteLXDProfile(arg0 string, arg1 lxdprofile.Profile) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MaybeWriteLXDProfile", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile.
func (mr *MockLXDProfileInstanceBrokerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybeWriteLXDProfile", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).MaybeWriteLXDProfile), arg0, arg1)
}
// StartInstance mocks base method.
func (m *MockLXDProfileInstanceBroker) StartInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StartInstance", arg0, arg1)
ret0, _ := ret[0].(*environs.StartInstanceResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// StartInstance indicates an expected call of StartInstance.
func (mr *MockLXDProfileInstanceBrokerMockRecorder) StartInstance(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInstance", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).StartInstance), arg0, arg1)
}
// StopInstances mocks base method.
func (m *MockLXDProfileInstanceBroker) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error {
m.ctrl.T.Helper()
varargs := []any{arg0}
for _, a := range arg1 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "StopInstances", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// StopInstances indicates an expected call of StopInstances.
func (mr *MockLXDProfileInstanceBrokerMockRecorder) StopInstances(arg0 any, arg1 ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{arg0}, arg1...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInstances", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).StopInstances), varargs...)
}