-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_Client.go
122 lines (92 loc) · 2.41 KB
/
mock_Client.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
package docker_helpers
import "github.com/stretchr/testify/mock"
import "github.com/fsouza/go-dockerclient"
type MockClient struct {
mock.Mock
}
func (m *MockClient) InspectImage(name string) (*docker.Image, error) {
ret := m.Called(name)
var r0 *docker.Image
if ret.Get(0) != nil {
r0 = ret.Get(0).(*docker.Image)
}
r1 := ret.Error(1)
return r0, r1
}
func (m *MockClient) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error {
ret := m.Called(opts, auth)
r0 := ret.Error(0)
return r0
}
func (m *MockClient) ImportImage(opts docker.ImportImageOptions) error {
ret := m.Called(opts)
r0 := ret.Error(0)
return r0
}
func (m *MockClient) CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error) {
ret := m.Called(opts)
var r0 *docker.Container
if ret.Get(0) != nil {
r0 = ret.Get(0).(*docker.Container)
}
r1 := ret.Error(1)
return r0, r1
}
func (m *MockClient) StartContainer(id string, hostConfig *docker.HostConfig) error {
ret := m.Called(id, hostConfig)
r0 := ret.Error(0)
return r0
}
func (m *MockClient) KillContainer(opts docker.KillContainerOptions) error {
ret := m.Called(opts)
r0 := ret.Error(0)
return r0
}
func (m *MockClient) InspectContainer(id string) (*docker.Container, error) {
ret := m.Called(id)
var r0 *docker.Container
if ret.Get(0) != nil {
r0 = ret.Get(0).(*docker.Container)
}
r1 := ret.Error(1)
return r0, r1
}
func (m *MockClient) AttachToContainerNonBlocking(opts docker.AttachToContainerOptions) (docker.CloseWaiter, error) {
ret := m.Called(opts)
r0 := ret.Get(0).(docker.CloseWaiter)
r1 := ret.Error(1)
return r0, r1
}
func (m *MockClient) RemoveContainer(opts docker.RemoveContainerOptions) error {
ret := m.Called(opts)
r0 := ret.Error(0)
return r0
}
func (m *MockClient) DisconnectNetwork(id string, opts docker.NetworkConnectionOptions) error {
ret := m.Called(id, opts)
r0 := ret.Error(0)
return r0
}
func (m *MockClient) ListNetworks() ([]docker.Network, error) {
ret := m.Called()
var r0 []docker.Network
if ret.Get(0) != nil {
r0 = ret.Get(0).([]docker.Network)
}
r1 := ret.Error(1)
return r0, r1
}
func (m *MockClient) Logs(opts docker.LogsOptions) error {
ret := m.Called(opts)
r0 := ret.Error(0)
return r0
}
func (m *MockClient) Info() (*docker.Env, error) {
ret := m.Called()
var r0 *docker.Env
if ret.Get(0) != nil {
r0 = ret.Get(0).(*docker.Env)
}
r1 := ret.Error(1)
return r0, r1
}