From 6a9562a4285c5caedc04aa1a61c245cfe6485517 Mon Sep 17 00:00:00 2001 From: Shawn Kaplan Date: Wed, 27 Sep 2023 11:36:52 -0700 Subject: [PATCH] Fix make presubmit --- .../controller-runtime/client/client_mocks.go | 4 +- pkg/aws/cloud_mocks.go | 22 +- pkg/aws/services/vpclattice_mocks.go | 226 ++++++++++-------- pkg/deploy/lattice/service_manager_mock.go | 18 +- 4 files changed, 154 insertions(+), 116 deletions(-) diff --git a/mocks/controller-runtime/client/client_mocks.go b/mocks/controller-runtime/client/client_mocks.go index 76d6cce0..837b9d83 100644 --- a/mocks/controller-runtime/client/client_mocks.go +++ b/mocks/controller-runtime/client/client_mocks.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: sigs.k8s.io/controller-runtime/pkg/client (interfaces: client) +// Source: sigs.k8s.io/controller-runtime/pkg/client (interfaces: Client) // Package mock_client is a generated GoMock package. package mock_client @@ -15,7 +15,7 @@ import ( client "sigs.k8s.io/controller-runtime/pkg/client" ) -// MockClient is a mock of client interface. +// MockClient is a mock of Client interface. type MockClient struct { ctrl *gomock.Controller recorder *MockClientMockRecorder diff --git a/pkg/aws/cloud_mocks.go b/pkg/aws/cloud_mocks.go index 7e8fd8c5..dfa5f816 100644 --- a/pkg/aws/cloud_mocks.go +++ b/pkg/aws/cloud_mocks.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/aws/aws-application-networking-k8s/pkg/aws (interfaces: Cloud) +// Source: ./pkg/aws/cloud.go // Package aws is a generated GoMock package. package aws @@ -49,24 +49,24 @@ func (mr *MockCloudMockRecorder) Config() *gomock.Call { } // ContainsManagedBy mocks base method. -func (m *MockCloud) ContainsManagedBy(arg0 map[string]*string) bool { +func (m *MockCloud) ContainsManagedBy(tags services.Tags) bool { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ContainsManagedBy", arg0) + ret := m.ctrl.Call(m, "ContainsManagedBy", tags) ret0, _ := ret[0].(bool) return ret0 } // ContainsManagedBy indicates an expected call of ContainsManagedBy. -func (mr *MockCloudMockRecorder) ContainsManagedBy(arg0 interface{}) *gomock.Call { +func (mr *MockCloudMockRecorder) ContainsManagedBy(tags interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsManagedBy", reflect.TypeOf((*MockCloud)(nil).ContainsManagedBy), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsManagedBy", reflect.TypeOf((*MockCloud)(nil).ContainsManagedBy), tags) } // DefaultTags mocks base method. -func (m *MockCloud) DefaultTags() map[string]*string { +func (m *MockCloud) DefaultTags() services.Tags { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DefaultTags") - ret0, _ := ret[0].(map[string]*string) + ret0, _ := ret[0].(services.Tags) return ret0 } @@ -77,18 +77,18 @@ func (mr *MockCloudMockRecorder) DefaultTags() *gomock.Call { } // IsArnManaged mocks base method. -func (m *MockCloud) IsArnManaged(arg0 string) (bool, error) { +func (m *MockCloud) IsArnManaged(arn string) (bool, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IsArnManaged", arg0) + ret := m.ctrl.Call(m, "IsArnManaged", arn) ret0, _ := ret[0].(bool) ret1, _ := ret[1].(error) return ret0, ret1 } // IsArnManaged indicates an expected call of IsArnManaged. -func (mr *MockCloudMockRecorder) IsArnManaged(arg0 interface{}) *gomock.Call { +func (mr *MockCloudMockRecorder) IsArnManaged(arn interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsArnManaged", reflect.TypeOf((*MockCloud)(nil).IsArnManaged), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsArnManaged", reflect.TypeOf((*MockCloud)(nil).IsArnManaged), arn) } // Lattice mocks base method. diff --git a/pkg/aws/services/vpclattice_mocks.go b/pkg/aws/services/vpclattice_mocks.go index 573771e4..ae8e6194 100644 --- a/pkg/aws/services/vpclattice_mocks.go +++ b/pkg/aws/services/vpclattice_mocks.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/aws/aws-application-networking-k8s/pkg/aws/services (interfaces: Lattice) +// Source: ./pkg/aws/services/vpclattice.go // Package services is a generated GoMock package. package services @@ -8,11 +8,49 @@ import ( context "context" reflect "reflect" + aws "github.com/aws/aws-sdk-go/aws" request "github.com/aws/aws-sdk-go/aws/request" vpclattice "github.com/aws/aws-sdk-go/service/vpclattice" gomock "github.com/golang/mock/gomock" ) +// MockLatticeServiceNameProvider is a mock of LatticeServiceNameProvider interface. +type MockLatticeServiceNameProvider struct { + ctrl *gomock.Controller + recorder *MockLatticeServiceNameProviderMockRecorder +} + +// MockLatticeServiceNameProviderMockRecorder is the mock recorder for MockLatticeServiceNameProvider. +type MockLatticeServiceNameProviderMockRecorder struct { + mock *MockLatticeServiceNameProvider +} + +// NewMockLatticeServiceNameProvider creates a new mock instance. +func NewMockLatticeServiceNameProvider(ctrl *gomock.Controller) *MockLatticeServiceNameProvider { + mock := &MockLatticeServiceNameProvider{ctrl: ctrl} + mock.recorder = &MockLatticeServiceNameProviderMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockLatticeServiceNameProvider) EXPECT() *MockLatticeServiceNameProviderMockRecorder { + return m.recorder +} + +// LatticeServiceName mocks base method. +func (m *MockLatticeServiceNameProvider) LatticeServiceName() string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "LatticeServiceName") + ret0, _ := ret[0].(string) + return ret0 +} + +// LatticeServiceName indicates an expected call of LatticeServiceName. +func (mr *MockLatticeServiceNameProviderMockRecorder) LatticeServiceName() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatticeServiceName", reflect.TypeOf((*MockLatticeServiceNameProvider)(nil).LatticeServiceName)) +} + // MockLattice is a mock of Lattice interface. type MockLattice struct { ctrl *gomock.Controller @@ -67,7 +105,7 @@ func (mr *MockLatticeMockRecorder) BatchUpdateRuleRequest(arg0 interface{}) *gom } // BatchUpdateRuleWithContext mocks base method. -func (m *MockLattice) BatchUpdateRuleWithContext(arg0 context.Context, arg1 *vpclattice.BatchUpdateRuleInput, arg2 ...request.Option) (*vpclattice.BatchUpdateRuleOutput, error) { +func (m *MockLattice) BatchUpdateRuleWithContext(arg0 aws.Context, arg1 *vpclattice.BatchUpdateRuleInput, arg2 ...request.Option) (*vpclattice.BatchUpdateRuleOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -117,7 +155,7 @@ func (mr *MockLatticeMockRecorder) CreateAccessLogSubscriptionRequest(arg0 inter } // CreateAccessLogSubscriptionWithContext mocks base method. -func (m *MockLattice) CreateAccessLogSubscriptionWithContext(arg0 context.Context, arg1 *vpclattice.CreateAccessLogSubscriptionInput, arg2 ...request.Option) (*vpclattice.CreateAccessLogSubscriptionOutput, error) { +func (m *MockLattice) CreateAccessLogSubscriptionWithContext(arg0 aws.Context, arg1 *vpclattice.CreateAccessLogSubscriptionInput, arg2 ...request.Option) (*vpclattice.CreateAccessLogSubscriptionOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -167,7 +205,7 @@ func (mr *MockLatticeMockRecorder) CreateListenerRequest(arg0 interface{}) *gomo } // CreateListenerWithContext mocks base method. -func (m *MockLattice) CreateListenerWithContext(arg0 context.Context, arg1 *vpclattice.CreateListenerInput, arg2 ...request.Option) (*vpclattice.CreateListenerOutput, error) { +func (m *MockLattice) CreateListenerWithContext(arg0 aws.Context, arg1 *vpclattice.CreateListenerInput, arg2 ...request.Option) (*vpclattice.CreateListenerOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -217,7 +255,7 @@ func (mr *MockLatticeMockRecorder) CreateRuleRequest(arg0 interface{}) *gomock.C } // CreateRuleWithContext mocks base method. -func (m *MockLattice) CreateRuleWithContext(arg0 context.Context, arg1 *vpclattice.CreateRuleInput, arg2 ...request.Option) (*vpclattice.CreateRuleOutput, error) { +func (m *MockLattice) CreateRuleWithContext(arg0 aws.Context, arg1 *vpclattice.CreateRuleInput, arg2 ...request.Option) (*vpclattice.CreateRuleOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -312,7 +350,7 @@ func (mr *MockLatticeMockRecorder) CreateServiceNetworkServiceAssociationRequest } // CreateServiceNetworkServiceAssociationWithContext mocks base method. -func (m *MockLattice) CreateServiceNetworkServiceAssociationWithContext(arg0 context.Context, arg1 *vpclattice.CreateServiceNetworkServiceAssociationInput, arg2 ...request.Option) (*vpclattice.CreateServiceNetworkServiceAssociationOutput, error) { +func (m *MockLattice) CreateServiceNetworkServiceAssociationWithContext(arg0 aws.Context, arg1 *vpclattice.CreateServiceNetworkServiceAssociationInput, arg2 ...request.Option) (*vpclattice.CreateServiceNetworkServiceAssociationOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -362,7 +400,7 @@ func (mr *MockLatticeMockRecorder) CreateServiceNetworkVpcAssociationRequest(arg } // CreateServiceNetworkVpcAssociationWithContext mocks base method. -func (m *MockLattice) CreateServiceNetworkVpcAssociationWithContext(arg0 context.Context, arg1 *vpclattice.CreateServiceNetworkVpcAssociationInput, arg2 ...request.Option) (*vpclattice.CreateServiceNetworkVpcAssociationOutput, error) { +func (m *MockLattice) CreateServiceNetworkVpcAssociationWithContext(arg0 aws.Context, arg1 *vpclattice.CreateServiceNetworkVpcAssociationInput, arg2 ...request.Option) (*vpclattice.CreateServiceNetworkVpcAssociationOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -382,7 +420,7 @@ func (mr *MockLatticeMockRecorder) CreateServiceNetworkVpcAssociationWithContext } // CreateServiceNetworkWithContext mocks base method. -func (m *MockLattice) CreateServiceNetworkWithContext(arg0 context.Context, arg1 *vpclattice.CreateServiceNetworkInput, arg2 ...request.Option) (*vpclattice.CreateServiceNetworkOutput, error) { +func (m *MockLattice) CreateServiceNetworkWithContext(arg0 aws.Context, arg1 *vpclattice.CreateServiceNetworkInput, arg2 ...request.Option) (*vpclattice.CreateServiceNetworkOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -417,7 +455,7 @@ func (mr *MockLatticeMockRecorder) CreateServiceRequest(arg0 interface{}) *gomoc } // CreateServiceWithContext mocks base method. -func (m *MockLattice) CreateServiceWithContext(arg0 context.Context, arg1 *vpclattice.CreateServiceInput, arg2 ...request.Option) (*vpclattice.CreateServiceOutput, error) { +func (m *MockLattice) CreateServiceWithContext(arg0 aws.Context, arg1 *vpclattice.CreateServiceInput, arg2 ...request.Option) (*vpclattice.CreateServiceOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -467,7 +505,7 @@ func (mr *MockLatticeMockRecorder) CreateTargetGroupRequest(arg0 interface{}) *g } // CreateTargetGroupWithContext mocks base method. -func (m *MockLattice) CreateTargetGroupWithContext(arg0 context.Context, arg1 *vpclattice.CreateTargetGroupInput, arg2 ...request.Option) (*vpclattice.CreateTargetGroupOutput, error) { +func (m *MockLattice) CreateTargetGroupWithContext(arg0 aws.Context, arg1 *vpclattice.CreateTargetGroupInput, arg2 ...request.Option) (*vpclattice.CreateTargetGroupOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -517,7 +555,7 @@ func (mr *MockLatticeMockRecorder) DeleteAccessLogSubscriptionRequest(arg0 inter } // DeleteAccessLogSubscriptionWithContext mocks base method. -func (m *MockLattice) DeleteAccessLogSubscriptionWithContext(arg0 context.Context, arg1 *vpclattice.DeleteAccessLogSubscriptionInput, arg2 ...request.Option) (*vpclattice.DeleteAccessLogSubscriptionOutput, error) { +func (m *MockLattice) DeleteAccessLogSubscriptionWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteAccessLogSubscriptionInput, arg2 ...request.Option) (*vpclattice.DeleteAccessLogSubscriptionOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -567,7 +605,7 @@ func (mr *MockLatticeMockRecorder) DeleteAuthPolicyRequest(arg0 interface{}) *go } // DeleteAuthPolicyWithContext mocks base method. -func (m *MockLattice) DeleteAuthPolicyWithContext(arg0 context.Context, arg1 *vpclattice.DeleteAuthPolicyInput, arg2 ...request.Option) (*vpclattice.DeleteAuthPolicyOutput, error) { +func (m *MockLattice) DeleteAuthPolicyWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteAuthPolicyInput, arg2 ...request.Option) (*vpclattice.DeleteAuthPolicyOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -617,7 +655,7 @@ func (mr *MockLatticeMockRecorder) DeleteListenerRequest(arg0 interface{}) *gomo } // DeleteListenerWithContext mocks base method. -func (m *MockLattice) DeleteListenerWithContext(arg0 context.Context, arg1 *vpclattice.DeleteListenerInput, arg2 ...request.Option) (*vpclattice.DeleteListenerOutput, error) { +func (m *MockLattice) DeleteListenerWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteListenerInput, arg2 ...request.Option) (*vpclattice.DeleteListenerOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -667,7 +705,7 @@ func (mr *MockLatticeMockRecorder) DeleteResourcePolicyRequest(arg0 interface{}) } // DeleteResourcePolicyWithContext mocks base method. -func (m *MockLattice) DeleteResourcePolicyWithContext(arg0 context.Context, arg1 *vpclattice.DeleteResourcePolicyInput, arg2 ...request.Option) (*vpclattice.DeleteResourcePolicyOutput, error) { +func (m *MockLattice) DeleteResourcePolicyWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteResourcePolicyInput, arg2 ...request.Option) (*vpclattice.DeleteResourcePolicyOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -717,7 +755,7 @@ func (mr *MockLatticeMockRecorder) DeleteRuleRequest(arg0 interface{}) *gomock.C } // DeleteRuleWithContext mocks base method. -func (m *MockLattice) DeleteRuleWithContext(arg0 context.Context, arg1 *vpclattice.DeleteRuleInput, arg2 ...request.Option) (*vpclattice.DeleteRuleOutput, error) { +func (m *MockLattice) DeleteRuleWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteRuleInput, arg2 ...request.Option) (*vpclattice.DeleteRuleOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -812,7 +850,7 @@ func (mr *MockLatticeMockRecorder) DeleteServiceNetworkServiceAssociationRequest } // DeleteServiceNetworkServiceAssociationWithContext mocks base method. -func (m *MockLattice) DeleteServiceNetworkServiceAssociationWithContext(arg0 context.Context, arg1 *vpclattice.DeleteServiceNetworkServiceAssociationInput, arg2 ...request.Option) (*vpclattice.DeleteServiceNetworkServiceAssociationOutput, error) { +func (m *MockLattice) DeleteServiceNetworkServiceAssociationWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteServiceNetworkServiceAssociationInput, arg2 ...request.Option) (*vpclattice.DeleteServiceNetworkServiceAssociationOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -862,7 +900,7 @@ func (mr *MockLatticeMockRecorder) DeleteServiceNetworkVpcAssociationRequest(arg } // DeleteServiceNetworkVpcAssociationWithContext mocks base method. -func (m *MockLattice) DeleteServiceNetworkVpcAssociationWithContext(arg0 context.Context, arg1 *vpclattice.DeleteServiceNetworkVpcAssociationInput, arg2 ...request.Option) (*vpclattice.DeleteServiceNetworkVpcAssociationOutput, error) { +func (m *MockLattice) DeleteServiceNetworkVpcAssociationWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteServiceNetworkVpcAssociationInput, arg2 ...request.Option) (*vpclattice.DeleteServiceNetworkVpcAssociationOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -882,7 +920,7 @@ func (mr *MockLatticeMockRecorder) DeleteServiceNetworkVpcAssociationWithContext } // DeleteServiceNetworkWithContext mocks base method. -func (m *MockLattice) DeleteServiceNetworkWithContext(arg0 context.Context, arg1 *vpclattice.DeleteServiceNetworkInput, arg2 ...request.Option) (*vpclattice.DeleteServiceNetworkOutput, error) { +func (m *MockLattice) DeleteServiceNetworkWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteServiceNetworkInput, arg2 ...request.Option) (*vpclattice.DeleteServiceNetworkOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -917,7 +955,7 @@ func (mr *MockLatticeMockRecorder) DeleteServiceRequest(arg0 interface{}) *gomoc } // DeleteServiceWithContext mocks base method. -func (m *MockLattice) DeleteServiceWithContext(arg0 context.Context, arg1 *vpclattice.DeleteServiceInput, arg2 ...request.Option) (*vpclattice.DeleteServiceOutput, error) { +func (m *MockLattice) DeleteServiceWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteServiceInput, arg2 ...request.Option) (*vpclattice.DeleteServiceOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -967,7 +1005,7 @@ func (mr *MockLatticeMockRecorder) DeleteTargetGroupRequest(arg0 interface{}) *g } // DeleteTargetGroupWithContext mocks base method. -func (m *MockLattice) DeleteTargetGroupWithContext(arg0 context.Context, arg1 *vpclattice.DeleteTargetGroupInput, arg2 ...request.Option) (*vpclattice.DeleteTargetGroupOutput, error) { +func (m *MockLattice) DeleteTargetGroupWithContext(arg0 aws.Context, arg1 *vpclattice.DeleteTargetGroupInput, arg2 ...request.Option) (*vpclattice.DeleteTargetGroupOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1017,7 +1055,7 @@ func (mr *MockLatticeMockRecorder) DeregisterTargetsRequest(arg0 interface{}) *g } // DeregisterTargetsWithContext mocks base method. -func (m *MockLattice) DeregisterTargetsWithContext(arg0 context.Context, arg1 *vpclattice.DeregisterTargetsInput, arg2 ...request.Option) (*vpclattice.DeregisterTargetsOutput, error) { +func (m *MockLattice) DeregisterTargetsWithContext(arg0 aws.Context, arg1 *vpclattice.DeregisterTargetsInput, arg2 ...request.Option) (*vpclattice.DeregisterTargetsOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1037,33 +1075,33 @@ func (mr *MockLatticeMockRecorder) DeregisterTargetsWithContext(arg0, arg1 inter } // FindService mocks base method. -func (m *MockLattice) FindService(arg0 context.Context, arg1 LatticeServiceNameProvider) (*vpclattice.ServiceSummary, error) { +func (m *MockLattice) FindService(ctx context.Context, nameProvider LatticeServiceNameProvider) (*vpclattice.ServiceSummary, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FindService", arg0, arg1) + ret := m.ctrl.Call(m, "FindService", ctx, nameProvider) ret0, _ := ret[0].(*vpclattice.ServiceSummary) ret1, _ := ret[1].(error) return ret0, ret1 } // FindService indicates an expected call of FindService. -func (mr *MockLatticeMockRecorder) FindService(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockLatticeMockRecorder) FindService(ctx, nameProvider interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindService", reflect.TypeOf((*MockLattice)(nil).FindService), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindService", reflect.TypeOf((*MockLattice)(nil).FindService), ctx, nameProvider) } // FindServiceNetwork mocks base method. -func (m *MockLattice) FindServiceNetwork(arg0 context.Context, arg1, arg2 string) (*ServiceNetworkInfo, error) { +func (m *MockLattice) FindServiceNetwork(ctx context.Context, name, accountId string) (*ServiceNetworkInfo, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FindServiceNetwork", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "FindServiceNetwork", ctx, name, accountId) ret0, _ := ret[0].(*ServiceNetworkInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // FindServiceNetwork indicates an expected call of FindServiceNetwork. -func (mr *MockLatticeMockRecorder) FindServiceNetwork(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockLatticeMockRecorder) FindServiceNetwork(ctx, name, accountId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindServiceNetwork", reflect.TypeOf((*MockLattice)(nil).FindServiceNetwork), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindServiceNetwork", reflect.TypeOf((*MockLattice)(nil).FindServiceNetwork), ctx, name, accountId) } // GetAccessLogSubscription mocks base method. @@ -1097,7 +1135,7 @@ func (mr *MockLatticeMockRecorder) GetAccessLogSubscriptionRequest(arg0 interfac } // GetAccessLogSubscriptionWithContext mocks base method. -func (m *MockLattice) GetAccessLogSubscriptionWithContext(arg0 context.Context, arg1 *vpclattice.GetAccessLogSubscriptionInput, arg2 ...request.Option) (*vpclattice.GetAccessLogSubscriptionOutput, error) { +func (m *MockLattice) GetAccessLogSubscriptionWithContext(arg0 aws.Context, arg1 *vpclattice.GetAccessLogSubscriptionInput, arg2 ...request.Option) (*vpclattice.GetAccessLogSubscriptionOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1147,7 +1185,7 @@ func (mr *MockLatticeMockRecorder) GetAuthPolicyRequest(arg0 interface{}) *gomoc } // GetAuthPolicyWithContext mocks base method. -func (m *MockLattice) GetAuthPolicyWithContext(arg0 context.Context, arg1 *vpclattice.GetAuthPolicyInput, arg2 ...request.Option) (*vpclattice.GetAuthPolicyOutput, error) { +func (m *MockLattice) GetAuthPolicyWithContext(arg0 aws.Context, arg1 *vpclattice.GetAuthPolicyInput, arg2 ...request.Option) (*vpclattice.GetAuthPolicyOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1197,7 +1235,7 @@ func (mr *MockLatticeMockRecorder) GetListenerRequest(arg0 interface{}) *gomock. } // GetListenerWithContext mocks base method. -func (m *MockLattice) GetListenerWithContext(arg0 context.Context, arg1 *vpclattice.GetListenerInput, arg2 ...request.Option) (*vpclattice.GetListenerOutput, error) { +func (m *MockLattice) GetListenerWithContext(arg0 aws.Context, arg1 *vpclattice.GetListenerInput, arg2 ...request.Option) (*vpclattice.GetListenerOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1247,7 +1285,7 @@ func (mr *MockLatticeMockRecorder) GetResourcePolicyRequest(arg0 interface{}) *g } // GetResourcePolicyWithContext mocks base method. -func (m *MockLattice) GetResourcePolicyWithContext(arg0 context.Context, arg1 *vpclattice.GetResourcePolicyInput, arg2 ...request.Option) (*vpclattice.GetResourcePolicyOutput, error) { +func (m *MockLattice) GetResourcePolicyWithContext(arg0 aws.Context, arg1 *vpclattice.GetResourcePolicyInput, arg2 ...request.Option) (*vpclattice.GetResourcePolicyOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1297,7 +1335,7 @@ func (mr *MockLatticeMockRecorder) GetRuleRequest(arg0 interface{}) *gomock.Call } // GetRuleWithContext mocks base method. -func (m *MockLattice) GetRuleWithContext(arg0 context.Context, arg1 *vpclattice.GetRuleInput, arg2 ...request.Option) (*vpclattice.GetRuleOutput, error) { +func (m *MockLattice) GetRuleWithContext(arg0 aws.Context, arg1 *vpclattice.GetRuleInput, arg2 ...request.Option) (*vpclattice.GetRuleOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1392,7 +1430,7 @@ func (mr *MockLatticeMockRecorder) GetServiceNetworkServiceAssociationRequest(ar } // GetServiceNetworkServiceAssociationWithContext mocks base method. -func (m *MockLattice) GetServiceNetworkServiceAssociationWithContext(arg0 context.Context, arg1 *vpclattice.GetServiceNetworkServiceAssociationInput, arg2 ...request.Option) (*vpclattice.GetServiceNetworkServiceAssociationOutput, error) { +func (m *MockLattice) GetServiceNetworkServiceAssociationWithContext(arg0 aws.Context, arg1 *vpclattice.GetServiceNetworkServiceAssociationInput, arg2 ...request.Option) (*vpclattice.GetServiceNetworkServiceAssociationOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1442,7 +1480,7 @@ func (mr *MockLatticeMockRecorder) GetServiceNetworkVpcAssociationRequest(arg0 i } // GetServiceNetworkVpcAssociationWithContext mocks base method. -func (m *MockLattice) GetServiceNetworkVpcAssociationWithContext(arg0 context.Context, arg1 *vpclattice.GetServiceNetworkVpcAssociationInput, arg2 ...request.Option) (*vpclattice.GetServiceNetworkVpcAssociationOutput, error) { +func (m *MockLattice) GetServiceNetworkVpcAssociationWithContext(arg0 aws.Context, arg1 *vpclattice.GetServiceNetworkVpcAssociationInput, arg2 ...request.Option) (*vpclattice.GetServiceNetworkVpcAssociationOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1462,7 +1500,7 @@ func (mr *MockLatticeMockRecorder) GetServiceNetworkVpcAssociationWithContext(ar } // GetServiceNetworkWithContext mocks base method. -func (m *MockLattice) GetServiceNetworkWithContext(arg0 context.Context, arg1 *vpclattice.GetServiceNetworkInput, arg2 ...request.Option) (*vpclattice.GetServiceNetworkOutput, error) { +func (m *MockLattice) GetServiceNetworkWithContext(arg0 aws.Context, arg1 *vpclattice.GetServiceNetworkInput, arg2 ...request.Option) (*vpclattice.GetServiceNetworkOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1497,7 +1535,7 @@ func (mr *MockLatticeMockRecorder) GetServiceRequest(arg0 interface{}) *gomock.C } // GetServiceWithContext mocks base method. -func (m *MockLattice) GetServiceWithContext(arg0 context.Context, arg1 *vpclattice.GetServiceInput, arg2 ...request.Option) (*vpclattice.GetServiceOutput, error) { +func (m *MockLattice) GetServiceWithContext(arg0 aws.Context, arg1 *vpclattice.GetServiceInput, arg2 ...request.Option) (*vpclattice.GetServiceOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1547,7 +1585,7 @@ func (mr *MockLatticeMockRecorder) GetTargetGroupRequest(arg0 interface{}) *gomo } // GetTargetGroupWithContext mocks base method. -func (m *MockLattice) GetTargetGroupWithContext(arg0 context.Context, arg1 *vpclattice.GetTargetGroupInput, arg2 ...request.Option) (*vpclattice.GetTargetGroupOutput, error) { +func (m *MockLattice) GetTargetGroupWithContext(arg0 aws.Context, arg1 *vpclattice.GetTargetGroupInput, arg2 ...request.Option) (*vpclattice.GetTargetGroupOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1596,7 +1634,7 @@ func (mr *MockLatticeMockRecorder) ListAccessLogSubscriptionsPages(arg0, arg1 in } // ListAccessLogSubscriptionsPagesWithContext mocks base method. -func (m *MockLattice) ListAccessLogSubscriptionsPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListAccessLogSubscriptionsInput, arg2 func(*vpclattice.ListAccessLogSubscriptionsOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListAccessLogSubscriptionsPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListAccessLogSubscriptionsInput, arg2 func(*vpclattice.ListAccessLogSubscriptionsOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -1630,7 +1668,7 @@ func (mr *MockLatticeMockRecorder) ListAccessLogSubscriptionsRequest(arg0 interf } // ListAccessLogSubscriptionsWithContext mocks base method. -func (m *MockLattice) ListAccessLogSubscriptionsWithContext(arg0 context.Context, arg1 *vpclattice.ListAccessLogSubscriptionsInput, arg2 ...request.Option) (*vpclattice.ListAccessLogSubscriptionsOutput, error) { +func (m *MockLattice) ListAccessLogSubscriptionsWithContext(arg0 aws.Context, arg1 *vpclattice.ListAccessLogSubscriptionsInput, arg2 ...request.Option) (*vpclattice.ListAccessLogSubscriptionsOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1679,7 +1717,7 @@ func (mr *MockLatticeMockRecorder) ListListenersPages(arg0, arg1 interface{}) *g } // ListListenersPagesWithContext mocks base method. -func (m *MockLattice) ListListenersPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListListenersInput, arg2 func(*vpclattice.ListListenersOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListListenersPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListListenersInput, arg2 func(*vpclattice.ListListenersOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -1713,7 +1751,7 @@ func (mr *MockLatticeMockRecorder) ListListenersRequest(arg0 interface{}) *gomoc } // ListListenersWithContext mocks base method. -func (m *MockLattice) ListListenersWithContext(arg0 context.Context, arg1 *vpclattice.ListListenersInput, arg2 ...request.Option) (*vpclattice.ListListenersOutput, error) { +func (m *MockLattice) ListListenersWithContext(arg0 aws.Context, arg1 *vpclattice.ListListenersInput, arg2 ...request.Option) (*vpclattice.ListListenersOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1762,7 +1800,7 @@ func (mr *MockLatticeMockRecorder) ListRulesPages(arg0, arg1 interface{}) *gomoc } // ListRulesPagesWithContext mocks base method. -func (m *MockLattice) ListRulesPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListRulesInput, arg2 func(*vpclattice.ListRulesOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListRulesPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListRulesInput, arg2 func(*vpclattice.ListRulesOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -1796,7 +1834,7 @@ func (mr *MockLatticeMockRecorder) ListRulesRequest(arg0 interface{}) *gomock.Ca } // ListRulesWithContext mocks base method. -func (m *MockLattice) ListRulesWithContext(arg0 context.Context, arg1 *vpclattice.ListRulesInput, arg2 ...request.Option) (*vpclattice.ListRulesOutput, error) { +func (m *MockLattice) ListRulesWithContext(arg0 aws.Context, arg1 *vpclattice.ListRulesInput, arg2 ...request.Option) (*vpclattice.ListRulesOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1831,18 +1869,18 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworkServiceAssociations(arg0 in } // ListServiceNetworkServiceAssociationsAsList mocks base method. -func (m *MockLattice) ListServiceNetworkServiceAssociationsAsList(arg0 context.Context, arg1 *vpclattice.ListServiceNetworkServiceAssociationsInput) ([]*vpclattice.ServiceNetworkServiceAssociationSummary, error) { +func (m *MockLattice) ListServiceNetworkServiceAssociationsAsList(ctx context.Context, input *vpclattice.ListServiceNetworkServiceAssociationsInput) ([]*vpclattice.ServiceNetworkServiceAssociationSummary, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListServiceNetworkServiceAssociationsAsList", arg0, arg1) + ret := m.ctrl.Call(m, "ListServiceNetworkServiceAssociationsAsList", ctx, input) ret0, _ := ret[0].([]*vpclattice.ServiceNetworkServiceAssociationSummary) ret1, _ := ret[1].(error) return ret0, ret1 } // ListServiceNetworkServiceAssociationsAsList indicates an expected call of ListServiceNetworkServiceAssociationsAsList. -func (mr *MockLatticeMockRecorder) ListServiceNetworkServiceAssociationsAsList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockLatticeMockRecorder) ListServiceNetworkServiceAssociationsAsList(ctx, input interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceNetworkServiceAssociationsAsList", reflect.TypeOf((*MockLattice)(nil).ListServiceNetworkServiceAssociationsAsList), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceNetworkServiceAssociationsAsList", reflect.TypeOf((*MockLattice)(nil).ListServiceNetworkServiceAssociationsAsList), ctx, input) } // ListServiceNetworkServiceAssociationsPages mocks base method. @@ -1860,7 +1898,7 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworkServiceAssociationsPages(ar } // ListServiceNetworkServiceAssociationsPagesWithContext mocks base method. -func (m *MockLattice) ListServiceNetworkServiceAssociationsPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListServiceNetworkServiceAssociationsInput, arg2 func(*vpclattice.ListServiceNetworkServiceAssociationsOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListServiceNetworkServiceAssociationsPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListServiceNetworkServiceAssociationsInput, arg2 func(*vpclattice.ListServiceNetworkServiceAssociationsOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -1894,7 +1932,7 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworkServiceAssociationsRequest( } // ListServiceNetworkServiceAssociationsWithContext mocks base method. -func (m *MockLattice) ListServiceNetworkServiceAssociationsWithContext(arg0 context.Context, arg1 *vpclattice.ListServiceNetworkServiceAssociationsInput, arg2 ...request.Option) (*vpclattice.ListServiceNetworkServiceAssociationsOutput, error) { +func (m *MockLattice) ListServiceNetworkServiceAssociationsWithContext(arg0 aws.Context, arg1 *vpclattice.ListServiceNetworkServiceAssociationsInput, arg2 ...request.Option) (*vpclattice.ListServiceNetworkServiceAssociationsOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1929,18 +1967,18 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworkVpcAssociations(arg0 interf } // ListServiceNetworkVpcAssociationsAsList mocks base method. -func (m *MockLattice) ListServiceNetworkVpcAssociationsAsList(arg0 context.Context, arg1 *vpclattice.ListServiceNetworkVpcAssociationsInput) ([]*vpclattice.ServiceNetworkVpcAssociationSummary, error) { +func (m *MockLattice) ListServiceNetworkVpcAssociationsAsList(ctx context.Context, input *vpclattice.ListServiceNetworkVpcAssociationsInput) ([]*vpclattice.ServiceNetworkVpcAssociationSummary, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListServiceNetworkVpcAssociationsAsList", arg0, arg1) + ret := m.ctrl.Call(m, "ListServiceNetworkVpcAssociationsAsList", ctx, input) ret0, _ := ret[0].([]*vpclattice.ServiceNetworkVpcAssociationSummary) ret1, _ := ret[1].(error) return ret0, ret1 } // ListServiceNetworkVpcAssociationsAsList indicates an expected call of ListServiceNetworkVpcAssociationsAsList. -func (mr *MockLatticeMockRecorder) ListServiceNetworkVpcAssociationsAsList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockLatticeMockRecorder) ListServiceNetworkVpcAssociationsAsList(ctx, input interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceNetworkVpcAssociationsAsList", reflect.TypeOf((*MockLattice)(nil).ListServiceNetworkVpcAssociationsAsList), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceNetworkVpcAssociationsAsList", reflect.TypeOf((*MockLattice)(nil).ListServiceNetworkVpcAssociationsAsList), ctx, input) } // ListServiceNetworkVpcAssociationsPages mocks base method. @@ -1958,7 +1996,7 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworkVpcAssociationsPages(arg0, } // ListServiceNetworkVpcAssociationsPagesWithContext mocks base method. -func (m *MockLattice) ListServiceNetworkVpcAssociationsPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListServiceNetworkVpcAssociationsInput, arg2 func(*vpclattice.ListServiceNetworkVpcAssociationsOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListServiceNetworkVpcAssociationsPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListServiceNetworkVpcAssociationsInput, arg2 func(*vpclattice.ListServiceNetworkVpcAssociationsOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -1992,7 +2030,7 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworkVpcAssociationsRequest(arg0 } // ListServiceNetworkVpcAssociationsWithContext mocks base method. -func (m *MockLattice) ListServiceNetworkVpcAssociationsWithContext(arg0 context.Context, arg1 *vpclattice.ListServiceNetworkVpcAssociationsInput, arg2 ...request.Option) (*vpclattice.ListServiceNetworkVpcAssociationsOutput, error) { +func (m *MockLattice) ListServiceNetworkVpcAssociationsWithContext(arg0 aws.Context, arg1 *vpclattice.ListServiceNetworkVpcAssociationsInput, arg2 ...request.Option) (*vpclattice.ListServiceNetworkVpcAssociationsOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2027,18 +2065,18 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworks(arg0 interface{}) *gomock } // ListServiceNetworksAsList mocks base method. -func (m *MockLattice) ListServiceNetworksAsList(arg0 context.Context, arg1 *vpclattice.ListServiceNetworksInput) ([]*vpclattice.ServiceNetworkSummary, error) { +func (m *MockLattice) ListServiceNetworksAsList(ctx context.Context, input *vpclattice.ListServiceNetworksInput) ([]*vpclattice.ServiceNetworkSummary, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListServiceNetworksAsList", arg0, arg1) + ret := m.ctrl.Call(m, "ListServiceNetworksAsList", ctx, input) ret0, _ := ret[0].([]*vpclattice.ServiceNetworkSummary) ret1, _ := ret[1].(error) return ret0, ret1 } // ListServiceNetworksAsList indicates an expected call of ListServiceNetworksAsList. -func (mr *MockLatticeMockRecorder) ListServiceNetworksAsList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockLatticeMockRecorder) ListServiceNetworksAsList(ctx, input interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceNetworksAsList", reflect.TypeOf((*MockLattice)(nil).ListServiceNetworksAsList), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceNetworksAsList", reflect.TypeOf((*MockLattice)(nil).ListServiceNetworksAsList), ctx, input) } // ListServiceNetworksPages mocks base method. @@ -2056,7 +2094,7 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworksPages(arg0, arg1 interface } // ListServiceNetworksPagesWithContext mocks base method. -func (m *MockLattice) ListServiceNetworksPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListServiceNetworksInput, arg2 func(*vpclattice.ListServiceNetworksOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListServiceNetworksPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListServiceNetworksInput, arg2 func(*vpclattice.ListServiceNetworksOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -2090,7 +2128,7 @@ func (mr *MockLatticeMockRecorder) ListServiceNetworksRequest(arg0 interface{}) } // ListServiceNetworksWithContext mocks base method. -func (m *MockLattice) ListServiceNetworksWithContext(arg0 context.Context, arg1 *vpclattice.ListServiceNetworksInput, arg2 ...request.Option) (*vpclattice.ListServiceNetworksOutput, error) { +func (m *MockLattice) ListServiceNetworksWithContext(arg0 aws.Context, arg1 *vpclattice.ListServiceNetworksInput, arg2 ...request.Option) (*vpclattice.ListServiceNetworksOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2125,18 +2163,18 @@ func (mr *MockLatticeMockRecorder) ListServices(arg0 interface{}) *gomock.Call { } // ListServicesAsList mocks base method. -func (m *MockLattice) ListServicesAsList(arg0 context.Context, arg1 *vpclattice.ListServicesInput) ([]*vpclattice.ServiceSummary, error) { +func (m *MockLattice) ListServicesAsList(ctx context.Context, input *vpclattice.ListServicesInput) ([]*vpclattice.ServiceSummary, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListServicesAsList", arg0, arg1) + ret := m.ctrl.Call(m, "ListServicesAsList", ctx, input) ret0, _ := ret[0].([]*vpclattice.ServiceSummary) ret1, _ := ret[1].(error) return ret0, ret1 } // ListServicesAsList indicates an expected call of ListServicesAsList. -func (mr *MockLatticeMockRecorder) ListServicesAsList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockLatticeMockRecorder) ListServicesAsList(ctx, input interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesAsList", reflect.TypeOf((*MockLattice)(nil).ListServicesAsList), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesAsList", reflect.TypeOf((*MockLattice)(nil).ListServicesAsList), ctx, input) } // ListServicesPages mocks base method. @@ -2154,7 +2192,7 @@ func (mr *MockLatticeMockRecorder) ListServicesPages(arg0, arg1 interface{}) *go } // ListServicesPagesWithContext mocks base method. -func (m *MockLattice) ListServicesPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListServicesInput, arg2 func(*vpclattice.ListServicesOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListServicesPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListServicesInput, arg2 func(*vpclattice.ListServicesOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -2188,7 +2226,7 @@ func (mr *MockLatticeMockRecorder) ListServicesRequest(arg0 interface{}) *gomock } // ListServicesWithContext mocks base method. -func (m *MockLattice) ListServicesWithContext(arg0 context.Context, arg1 *vpclattice.ListServicesInput, arg2 ...request.Option) (*vpclattice.ListServicesOutput, error) { +func (m *MockLattice) ListServicesWithContext(arg0 aws.Context, arg1 *vpclattice.ListServicesInput, arg2 ...request.Option) (*vpclattice.ListServicesOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2238,7 +2276,7 @@ func (mr *MockLatticeMockRecorder) ListTagsForResourceRequest(arg0 interface{}) } // ListTagsForResourceWithContext mocks base method. -func (m *MockLattice) ListTagsForResourceWithContext(arg0 context.Context, arg1 *vpclattice.ListTagsForResourceInput, arg2 ...request.Option) (*vpclattice.ListTagsForResourceOutput, error) { +func (m *MockLattice) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *vpclattice.ListTagsForResourceInput, arg2 ...request.Option) (*vpclattice.ListTagsForResourceOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2273,18 +2311,18 @@ func (mr *MockLatticeMockRecorder) ListTargetGroups(arg0 interface{}) *gomock.Ca } // ListTargetGroupsAsList mocks base method. -func (m *MockLattice) ListTargetGroupsAsList(arg0 context.Context, arg1 *vpclattice.ListTargetGroupsInput) ([]*vpclattice.TargetGroupSummary, error) { +func (m *MockLattice) ListTargetGroupsAsList(ctx context.Context, input *vpclattice.ListTargetGroupsInput) ([]*vpclattice.TargetGroupSummary, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListTargetGroupsAsList", arg0, arg1) + ret := m.ctrl.Call(m, "ListTargetGroupsAsList", ctx, input) ret0, _ := ret[0].([]*vpclattice.TargetGroupSummary) ret1, _ := ret[1].(error) return ret0, ret1 } // ListTargetGroupsAsList indicates an expected call of ListTargetGroupsAsList. -func (mr *MockLatticeMockRecorder) ListTargetGroupsAsList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockLatticeMockRecorder) ListTargetGroupsAsList(ctx, input interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTargetGroupsAsList", reflect.TypeOf((*MockLattice)(nil).ListTargetGroupsAsList), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTargetGroupsAsList", reflect.TypeOf((*MockLattice)(nil).ListTargetGroupsAsList), ctx, input) } // ListTargetGroupsPages mocks base method. @@ -2302,7 +2340,7 @@ func (mr *MockLatticeMockRecorder) ListTargetGroupsPages(arg0, arg1 interface{}) } // ListTargetGroupsPagesWithContext mocks base method. -func (m *MockLattice) ListTargetGroupsPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListTargetGroupsInput, arg2 func(*vpclattice.ListTargetGroupsOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListTargetGroupsPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListTargetGroupsInput, arg2 func(*vpclattice.ListTargetGroupsOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -2336,7 +2374,7 @@ func (mr *MockLatticeMockRecorder) ListTargetGroupsRequest(arg0 interface{}) *go } // ListTargetGroupsWithContext mocks base method. -func (m *MockLattice) ListTargetGroupsWithContext(arg0 context.Context, arg1 *vpclattice.ListTargetGroupsInput, arg2 ...request.Option) (*vpclattice.ListTargetGroupsOutput, error) { +func (m *MockLattice) ListTargetGroupsWithContext(arg0 aws.Context, arg1 *vpclattice.ListTargetGroupsInput, arg2 ...request.Option) (*vpclattice.ListTargetGroupsOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2371,18 +2409,18 @@ func (mr *MockLatticeMockRecorder) ListTargets(arg0 interface{}) *gomock.Call { } // ListTargetsAsList mocks base method. -func (m *MockLattice) ListTargetsAsList(arg0 context.Context, arg1 *vpclattice.ListTargetsInput) ([]*vpclattice.TargetSummary, error) { +func (m *MockLattice) ListTargetsAsList(ctx context.Context, input *vpclattice.ListTargetsInput) ([]*vpclattice.TargetSummary, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListTargetsAsList", arg0, arg1) + ret := m.ctrl.Call(m, "ListTargetsAsList", ctx, input) ret0, _ := ret[0].([]*vpclattice.TargetSummary) ret1, _ := ret[1].(error) return ret0, ret1 } // ListTargetsAsList indicates an expected call of ListTargetsAsList. -func (mr *MockLatticeMockRecorder) ListTargetsAsList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockLatticeMockRecorder) ListTargetsAsList(ctx, input interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTargetsAsList", reflect.TypeOf((*MockLattice)(nil).ListTargetsAsList), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTargetsAsList", reflect.TypeOf((*MockLattice)(nil).ListTargetsAsList), ctx, input) } // ListTargetsPages mocks base method. @@ -2400,7 +2438,7 @@ func (mr *MockLatticeMockRecorder) ListTargetsPages(arg0, arg1 interface{}) *gom } // ListTargetsPagesWithContext mocks base method. -func (m *MockLattice) ListTargetsPagesWithContext(arg0 context.Context, arg1 *vpclattice.ListTargetsInput, arg2 func(*vpclattice.ListTargetsOutput, bool) bool, arg3 ...request.Option) error { +func (m *MockLattice) ListTargetsPagesWithContext(arg0 aws.Context, arg1 *vpclattice.ListTargetsInput, arg2 func(*vpclattice.ListTargetsOutput, bool) bool, arg3 ...request.Option) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} for _, a := range arg3 { @@ -2434,7 +2472,7 @@ func (mr *MockLatticeMockRecorder) ListTargetsRequest(arg0 interface{}) *gomock. } // ListTargetsWithContext mocks base method. -func (m *MockLattice) ListTargetsWithContext(arg0 context.Context, arg1 *vpclattice.ListTargetsInput, arg2 ...request.Option) (*vpclattice.ListTargetsOutput, error) { +func (m *MockLattice) ListTargetsWithContext(arg0 aws.Context, arg1 *vpclattice.ListTargetsInput, arg2 ...request.Option) (*vpclattice.ListTargetsOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2484,7 +2522,7 @@ func (mr *MockLatticeMockRecorder) PutAuthPolicyRequest(arg0 interface{}) *gomoc } // PutAuthPolicyWithContext mocks base method. -func (m *MockLattice) PutAuthPolicyWithContext(arg0 context.Context, arg1 *vpclattice.PutAuthPolicyInput, arg2 ...request.Option) (*vpclattice.PutAuthPolicyOutput, error) { +func (m *MockLattice) PutAuthPolicyWithContext(arg0 aws.Context, arg1 *vpclattice.PutAuthPolicyInput, arg2 ...request.Option) (*vpclattice.PutAuthPolicyOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2534,7 +2572,7 @@ func (mr *MockLatticeMockRecorder) PutResourcePolicyRequest(arg0 interface{}) *g } // PutResourcePolicyWithContext mocks base method. -func (m *MockLattice) PutResourcePolicyWithContext(arg0 context.Context, arg1 *vpclattice.PutResourcePolicyInput, arg2 ...request.Option) (*vpclattice.PutResourcePolicyOutput, error) { +func (m *MockLattice) PutResourcePolicyWithContext(arg0 aws.Context, arg1 *vpclattice.PutResourcePolicyInput, arg2 ...request.Option) (*vpclattice.PutResourcePolicyOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2584,7 +2622,7 @@ func (mr *MockLatticeMockRecorder) RegisterTargetsRequest(arg0 interface{}) *gom } // RegisterTargetsWithContext mocks base method. -func (m *MockLattice) RegisterTargetsWithContext(arg0 context.Context, arg1 *vpclattice.RegisterTargetsInput, arg2 ...request.Option) (*vpclattice.RegisterTargetsOutput, error) { +func (m *MockLattice) RegisterTargetsWithContext(arg0 aws.Context, arg1 *vpclattice.RegisterTargetsInput, arg2 ...request.Option) (*vpclattice.RegisterTargetsOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2634,7 +2672,7 @@ func (mr *MockLatticeMockRecorder) TagResourceRequest(arg0 interface{}) *gomock. } // TagResourceWithContext mocks base method. -func (m *MockLattice) TagResourceWithContext(arg0 context.Context, arg1 *vpclattice.TagResourceInput, arg2 ...request.Option) (*vpclattice.TagResourceOutput, error) { +func (m *MockLattice) TagResourceWithContext(arg0 aws.Context, arg1 *vpclattice.TagResourceInput, arg2 ...request.Option) (*vpclattice.TagResourceOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2684,7 +2722,7 @@ func (mr *MockLatticeMockRecorder) UntagResourceRequest(arg0 interface{}) *gomoc } // UntagResourceWithContext mocks base method. -func (m *MockLattice) UntagResourceWithContext(arg0 context.Context, arg1 *vpclattice.UntagResourceInput, arg2 ...request.Option) (*vpclattice.UntagResourceOutput, error) { +func (m *MockLattice) UntagResourceWithContext(arg0 aws.Context, arg1 *vpclattice.UntagResourceInput, arg2 ...request.Option) (*vpclattice.UntagResourceOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2734,7 +2772,7 @@ func (mr *MockLatticeMockRecorder) UpdateAccessLogSubscriptionRequest(arg0 inter } // UpdateAccessLogSubscriptionWithContext mocks base method. -func (m *MockLattice) UpdateAccessLogSubscriptionWithContext(arg0 context.Context, arg1 *vpclattice.UpdateAccessLogSubscriptionInput, arg2 ...request.Option) (*vpclattice.UpdateAccessLogSubscriptionOutput, error) { +func (m *MockLattice) UpdateAccessLogSubscriptionWithContext(arg0 aws.Context, arg1 *vpclattice.UpdateAccessLogSubscriptionInput, arg2 ...request.Option) (*vpclattice.UpdateAccessLogSubscriptionOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2784,7 +2822,7 @@ func (mr *MockLatticeMockRecorder) UpdateListenerRequest(arg0 interface{}) *gomo } // UpdateListenerWithContext mocks base method. -func (m *MockLattice) UpdateListenerWithContext(arg0 context.Context, arg1 *vpclattice.UpdateListenerInput, arg2 ...request.Option) (*vpclattice.UpdateListenerOutput, error) { +func (m *MockLattice) UpdateListenerWithContext(arg0 aws.Context, arg1 *vpclattice.UpdateListenerInput, arg2 ...request.Option) (*vpclattice.UpdateListenerOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2834,7 +2872,7 @@ func (mr *MockLatticeMockRecorder) UpdateRuleRequest(arg0 interface{}) *gomock.C } // UpdateRuleWithContext mocks base method. -func (m *MockLattice) UpdateRuleWithContext(arg0 context.Context, arg1 *vpclattice.UpdateRuleInput, arg2 ...request.Option) (*vpclattice.UpdateRuleOutput, error) { +func (m *MockLattice) UpdateRuleWithContext(arg0 aws.Context, arg1 *vpclattice.UpdateRuleInput, arg2 ...request.Option) (*vpclattice.UpdateRuleOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2929,7 +2967,7 @@ func (mr *MockLatticeMockRecorder) UpdateServiceNetworkVpcAssociationRequest(arg } // UpdateServiceNetworkVpcAssociationWithContext mocks base method. -func (m *MockLattice) UpdateServiceNetworkVpcAssociationWithContext(arg0 context.Context, arg1 *vpclattice.UpdateServiceNetworkVpcAssociationInput, arg2 ...request.Option) (*vpclattice.UpdateServiceNetworkVpcAssociationOutput, error) { +func (m *MockLattice) UpdateServiceNetworkVpcAssociationWithContext(arg0 aws.Context, arg1 *vpclattice.UpdateServiceNetworkVpcAssociationInput, arg2 ...request.Option) (*vpclattice.UpdateServiceNetworkVpcAssociationOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2949,7 +2987,7 @@ func (mr *MockLatticeMockRecorder) UpdateServiceNetworkVpcAssociationWithContext } // UpdateServiceNetworkWithContext mocks base method. -func (m *MockLattice) UpdateServiceNetworkWithContext(arg0 context.Context, arg1 *vpclattice.UpdateServiceNetworkInput, arg2 ...request.Option) (*vpclattice.UpdateServiceNetworkOutput, error) { +func (m *MockLattice) UpdateServiceNetworkWithContext(arg0 aws.Context, arg1 *vpclattice.UpdateServiceNetworkInput, arg2 ...request.Option) (*vpclattice.UpdateServiceNetworkOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2984,7 +3022,7 @@ func (mr *MockLatticeMockRecorder) UpdateServiceRequest(arg0 interface{}) *gomoc } // UpdateServiceWithContext mocks base method. -func (m *MockLattice) UpdateServiceWithContext(arg0 context.Context, arg1 *vpclattice.UpdateServiceInput, arg2 ...request.Option) (*vpclattice.UpdateServiceOutput, error) { +func (m *MockLattice) UpdateServiceWithContext(arg0 aws.Context, arg1 *vpclattice.UpdateServiceInput, arg2 ...request.Option) (*vpclattice.UpdateServiceOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -3034,7 +3072,7 @@ func (mr *MockLatticeMockRecorder) UpdateTargetGroupRequest(arg0 interface{}) *g } // UpdateTargetGroupWithContext mocks base method. -func (m *MockLattice) UpdateTargetGroupWithContext(arg0 context.Context, arg1 *vpclattice.UpdateTargetGroupInput, arg2 ...request.Option) (*vpclattice.UpdateTargetGroupOutput, error) { +func (m *MockLattice) UpdateTargetGroupWithContext(arg0 aws.Context, arg1 *vpclattice.UpdateTargetGroupInput, arg2 ...request.Option) (*vpclattice.UpdateTargetGroupOutput, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { diff --git a/pkg/deploy/lattice/service_manager_mock.go b/pkg/deploy/lattice/service_manager_mock.go index ca4788ba..cddf3b6d 100644 --- a/pkg/deploy/lattice/service_manager_mock.go +++ b/pkg/deploy/lattice/service_manager_mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/aws/aws-application-networking-k8s/pkg/deploy/lattice (interfaces: ServiceManager) +// Source: ./pkg/deploy/lattice/service_manager.go // Package lattice is a generated GoMock package. package lattice @@ -36,30 +36,30 @@ func (m *MockServiceManager) EXPECT() *MockServiceManagerMockRecorder { } // Create mocks base method. -func (m *MockServiceManager) Create(arg0 context.Context, arg1 *lattice.Service) (lattice.ServiceStatus, error) { +func (m *MockServiceManager) Create(ctx context.Context, service *lattice.Service) (lattice.ServiceStatus, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1) + ret := m.ctrl.Call(m, "Create", ctx, service) ret0, _ := ret[0].(lattice.ServiceStatus) ret1, _ := ret[1].(error) return ret0, ret1 } // Create indicates an expected call of Create. -func (mr *MockServiceManagerMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockServiceManagerMockRecorder) Create(ctx, service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockServiceManager)(nil).Create), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockServiceManager)(nil).Create), ctx, service) } // Delete mocks base method. -func (m *MockServiceManager) Delete(arg0 context.Context, arg1 *lattice.Service) error { +func (m *MockServiceManager) Delete(ctx context.Context, service *lattice.Service) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1) + ret := m.ctrl.Call(m, "Delete", ctx, service) ret0, _ := ret[0].(error) return ret0 } // Delete indicates an expected call of Delete. -func (mr *MockServiceManagerMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockServiceManagerMockRecorder) Delete(ctx, service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockServiceManager)(nil).Delete), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockServiceManager)(nil).Delete), ctx, service) }