forked from aws/amazon-ecs-agent
/
containermetadata_mocks.go
181 lines (153 loc) · 6.76 KB
/
containermetadata_mocks.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
//
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/aws/amazon-ecs-agent/agent/containermetadata (interfaces: Manager,DockerMetadataClient)
// Package mock_containermetadata is a generated GoMock package.
package mock_containermetadata
import (
context "context"
reflect "reflect"
time "time"
task "github.com/aws/amazon-ecs-agent/agent/api/task"
types "github.com/docker/docker/api/types"
container "github.com/docker/docker/api/types/container"
gomock "github.com/golang/mock/gomock"
)
// MockManager is a mock of Manager interface
type MockManager struct {
ctrl *gomock.Controller
recorder *MockManagerMockRecorder
}
// MockManagerMockRecorder is the mock recorder for MockManager
type MockManagerMockRecorder struct {
mock *MockManager
}
// NewMockManager creates a new mock instance
func NewMockManager(ctrl *gomock.Controller) *MockManager {
mock := &MockManager{ctrl: ctrl}
mock.recorder = &MockManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockManager) EXPECT() *MockManagerMockRecorder {
return m.recorder
}
// Clean mocks base method
func (m *MockManager) Clean(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Clean", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Clean indicates an expected call of Clean
func (mr *MockManagerMockRecorder) Clean(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clean", reflect.TypeOf((*MockManager)(nil).Clean), arg0)
}
// Create mocks base method
func (m *MockManager) Create(arg0 *container.Config, arg1 *container.HostConfig, arg2 *task.Task, arg3 string, arg4 []string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].(error)
return ret0
}
// Create indicates an expected call of Create
func (mr *MockManagerMockRecorder) Create(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockManager)(nil).Create), arg0, arg1, arg2, arg3, arg4)
}
// SetAvailabilityZone mocks base method
func (m *MockManager) SetAvailabilityZone(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetAvailabilityZone", arg0)
}
// SetAvailabilityZone indicates an expected call of SetAvailabilityZone
func (mr *MockManagerMockRecorder) SetAvailabilityZone(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAvailabilityZone", reflect.TypeOf((*MockManager)(nil).SetAvailabilityZone), arg0)
}
// SetContainerInstanceARN mocks base method
func (m *MockManager) SetContainerInstanceARN(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetContainerInstanceARN", arg0)
}
// SetContainerInstanceARN indicates an expected call of SetContainerInstanceARN
func (mr *MockManagerMockRecorder) SetContainerInstanceARN(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetContainerInstanceARN", reflect.TypeOf((*MockManager)(nil).SetContainerInstanceARN), arg0)
}
// SetHostPrivateIPv4Address mocks base method
func (m *MockManager) SetHostPrivateIPv4Address(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetHostPrivateIPv4Address", arg0)
}
// SetHostPrivateIPv4Address indicates an expected call of SetHostPrivateIPv4Address
func (mr *MockManagerMockRecorder) SetHostPrivateIPv4Address(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHostPrivateIPv4Address", reflect.TypeOf((*MockManager)(nil).SetHostPrivateIPv4Address), arg0)
}
// SetHostPublicIPv4Address mocks base method
func (m *MockManager) SetHostPublicIPv4Address(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetHostPublicIPv4Address", arg0)
}
// SetHostPublicIPv4Address indicates an expected call of SetHostPublicIPv4Address
func (mr *MockManagerMockRecorder) SetHostPublicIPv4Address(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHostPublicIPv4Address", reflect.TypeOf((*MockManager)(nil).SetHostPublicIPv4Address), arg0)
}
// Update mocks base method
func (m *MockManager) Update(arg0 context.Context, arg1 string, arg2 *task.Task, arg3 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// Update indicates an expected call of Update
func (mr *MockManagerMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockManager)(nil).Update), arg0, arg1, arg2, arg3)
}
// MockDockerMetadataClient is a mock of DockerMetadataClient interface
type MockDockerMetadataClient struct {
ctrl *gomock.Controller
recorder *MockDockerMetadataClientMockRecorder
}
// MockDockerMetadataClientMockRecorder is the mock recorder for MockDockerMetadataClient
type MockDockerMetadataClientMockRecorder struct {
mock *MockDockerMetadataClient
}
// NewMockDockerMetadataClient creates a new mock instance
func NewMockDockerMetadataClient(ctrl *gomock.Controller) *MockDockerMetadataClient {
mock := &MockDockerMetadataClient{ctrl: ctrl}
mock.recorder = &MockDockerMetadataClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockDockerMetadataClient) EXPECT() *MockDockerMetadataClientMockRecorder {
return m.recorder
}
// InspectContainer mocks base method
func (m *MockDockerMetadataClient) InspectContainer(arg0 context.Context, arg1 string, arg2 time.Duration) (*types.ContainerJSON, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InspectContainer", arg0, arg1, arg2)
ret0, _ := ret[0].(*types.ContainerJSON)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// InspectContainer indicates an expected call of InspectContainer
func (mr *MockDockerMetadataClientMockRecorder) InspectContainer(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InspectContainer", reflect.TypeOf((*MockDockerMetadataClient)(nil).InspectContainer), arg0, arg1, arg2)
}