|
|
@@ -6,12 +6,11 @@ package mock
|
|
|
|
|
|
import (
|
|
|
context "context"
|
|
|
- reflect "reflect"
|
|
|
-
|
|
|
cloudformation "github.com/aws/aws-sdk-go/service/cloudformation"
|
|
|
cloudformation0 "github.com/awslabs/goformation/v4/cloudformation"
|
|
|
docker "github.com/docker/ecs-plugin/pkg/docker"
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
+ reflect "reflect"
|
|
|
)
|
|
|
|
|
|
// MockAPI is a mock of API interface
|
|
|
@@ -52,21 +51,6 @@ func (mr *MockAPIMockRecorder) ClusterExists(arg0, arg1 interface{}) *gomock.Cal
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterExists", reflect.TypeOf((*MockAPI)(nil).ClusterExists), arg0, arg1)
|
|
|
}
|
|
|
|
|
|
-// CreateCluster mocks base method
|
|
|
-func (m *MockAPI) CreateCluster(arg0 context.Context, arg1 string) (string, error) {
|
|
|
- m.ctrl.T.Helper()
|
|
|
- ret := m.ctrl.Call(m, "CreateCluster", arg0, arg1)
|
|
|
- ret0, _ := ret[0].(string)
|
|
|
- ret1, _ := ret[1].(error)
|
|
|
- return ret0, ret1
|
|
|
-}
|
|
|
-
|
|
|
-// CreateCluster indicates an expected call of CreateCluster
|
|
|
-func (mr *MockAPIMockRecorder) CreateCluster(arg0, arg1 interface{}) *gomock.Call {
|
|
|
- mr.mock.ctrl.T.Helper()
|
|
|
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCluster", reflect.TypeOf((*MockAPI)(nil).CreateCluster), arg0, arg1)
|
|
|
-}
|
|
|
-
|
|
|
// CreateSecret mocks base method
|
|
|
func (m *MockAPI) CreateSecret(arg0 context.Context, arg1 docker.Secret) (string, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
@@ -168,6 +152,60 @@ func (mr *MockAPIMockRecorder) GetDefaultVPC(arg0 interface{}) *gomock.Call {
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultVPC", reflect.TypeOf((*MockAPI)(nil).GetDefaultVPC), arg0)
|
|
|
}
|
|
|
|
|
|
+// GetLogs mocks base method
|
|
|
+func (m *MockAPI) GetLogs(arg0 context.Context, arg1 string) error {
|
|
|
+ m.ctrl.T.Helper()
|
|
|
+ ret := m.ctrl.Call(m, "GetLogs", arg0, arg1)
|
|
|
+ ret0, _ := ret[0].(error)
|
|
|
+ return ret0
|
|
|
+}
|
|
|
+
|
|
|
+// GetLogs indicates an expected call of GetLogs
|
|
|
+func (mr *MockAPIMockRecorder) GetLogs(arg0, arg1 interface{}) *gomock.Call {
|
|
|
+ mr.mock.ctrl.T.Helper()
|
|
|
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogs", reflect.TypeOf((*MockAPI)(nil).GetLogs), arg0, arg1)
|
|
|
+}
|
|
|
+
|
|
|
+// GetNetworkInterfaces mocks base method
|
|
|
+func (m *MockAPI) GetNetworkInterfaces(arg0 context.Context, arg1 string, arg2 ...string) ([]string, error) {
|
|
|
+ m.ctrl.T.Helper()
|
|
|
+ varargs := []interface{}{arg0, arg1}
|
|
|
+ for _, a := range arg2 {
|
|
|
+ varargs = append(varargs, a)
|
|
|
+ }
|
|
|
+ ret := m.ctrl.Call(m, "GetNetworkInterfaces", varargs...)
|
|
|
+ ret0, _ := ret[0].([]string)
|
|
|
+ ret1, _ := ret[1].(error)
|
|
|
+ return ret0, ret1
|
|
|
+}
|
|
|
+
|
|
|
+// GetNetworkInterfaces indicates an expected call of GetNetworkInterfaces
|
|
|
+func (mr *MockAPIMockRecorder) GetNetworkInterfaces(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
+ mr.mock.ctrl.T.Helper()
|
|
|
+ varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNetworkInterfaces", reflect.TypeOf((*MockAPI)(nil).GetNetworkInterfaces), varargs...)
|
|
|
+}
|
|
|
+
|
|
|
+// GetPublicIPs mocks base method
|
|
|
+func (m *MockAPI) GetPublicIPs(arg0 context.Context, arg1 ...string) ([]string, error) {
|
|
|
+ m.ctrl.T.Helper()
|
|
|
+ varargs := []interface{}{arg0}
|
|
|
+ for _, a := range arg1 {
|
|
|
+ varargs = append(varargs, a)
|
|
|
+ }
|
|
|
+ ret := m.ctrl.Call(m, "GetPublicIPs", varargs...)
|
|
|
+ ret0, _ := ret[0].([]string)
|
|
|
+ ret1, _ := ret[1].(error)
|
|
|
+ return ret0, ret1
|
|
|
+}
|
|
|
+
|
|
|
+// GetPublicIPs indicates an expected call of GetPublicIPs
|
|
|
+func (mr *MockAPIMockRecorder) GetPublicIPs(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
|
|
+ mr.mock.ctrl.T.Helper()
|
|
|
+ varargs := append([]interface{}{arg0}, arg1...)
|
|
|
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicIPs", reflect.TypeOf((*MockAPI)(nil).GetPublicIPs), varargs...)
|
|
|
+}
|
|
|
+
|
|
|
// GetStackID mocks base method
|
|
|
func (m *MockAPI) GetStackID(arg0 context.Context, arg1 string) (string, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
@@ -198,6 +236,21 @@ func (mr *MockAPIMockRecorder) GetSubNets(arg0, arg1 interface{}) *gomock.Call {
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubNets", reflect.TypeOf((*MockAPI)(nil).GetSubNets), arg0, arg1)
|
|
|
}
|
|
|
|
|
|
+// GetTasks mocks base method
|
|
|
+func (m *MockAPI) GetTasks(arg0 context.Context, arg1, arg2 string) ([]string, error) {
|
|
|
+ m.ctrl.T.Helper()
|
|
|
+ ret := m.ctrl.Call(m, "GetTasks", arg0, arg1, arg2)
|
|
|
+ ret0, _ := ret[0].([]string)
|
|
|
+ ret1, _ := ret[1].(error)
|
|
|
+ return ret0, ret1
|
|
|
+}
|
|
|
+
|
|
|
+// GetTasks indicates an expected call of GetTasks
|
|
|
+func (mr *MockAPIMockRecorder) GetTasks(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
+ mr.mock.ctrl.T.Helper()
|
|
|
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTasks", reflect.TypeOf((*MockAPI)(nil).GetTasks), arg0, arg1, arg2)
|
|
|
+}
|
|
|
+
|
|
|
// InspectSecret mocks base method
|
|
|
func (m *MockAPI) InspectSecret(arg0 context.Context, arg1 string) (docker.Secret, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
@@ -271,17 +324,3 @@ func (mr *MockAPIMockRecorder) WaitStackComplete(arg0, arg1, arg2 interface{}) *
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitStackComplete", reflect.TypeOf((*MockAPI)(nil).WaitStackComplete), arg0, arg1, arg2)
|
|
|
}
|
|
|
-
|
|
|
-// GetLogs mocks base method
|
|
|
-func (m *MockAPI) GetLogs(arg0 context.Context, arg1 string) error {
|
|
|
- m.ctrl.T.Helper()
|
|
|
- ret := m.ctrl.Call(m, "GetLogs", arg0, arg1)
|
|
|
- ret0, _ := ret[0].(error)
|
|
|
- return ret0
|
|
|
-}
|
|
|
-
|
|
|
-// GetLogs mocks base method
|
|
|
-func (mr *MockAPIMockRecorder) GetLogs(arg0, arg1 interface{}) *gomock.Call {
|
|
|
- mr.mock.ctrl.T.Helper()
|
|
|
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogs", reflect.TypeOf((*MockAPI)(nil).GetLogs), arg0, arg1)
|
|
|
-}
|