diff --git a/apis/apiregistration.k8s.io/v1/fakes/zz_generated_api_service_mock.go b/apis/apiregistration.k8s.io/v1/fakes/zz_generated_api_service_mock.go index b496d11a..f7b6a8e8 100644 --- a/apis/apiregistration.k8s.io/v1/fakes/zz_generated_api_service_mock.go +++ b/apis/apiregistration.k8s.io/v1/fakes/zz_generated_api_service_mock.go @@ -675,6 +675,7 @@ var ( lockAPIServiceInterfaceMockGet sync.RWMutex lockAPIServiceInterfaceMockGetNamespaced sync.RWMutex lockAPIServiceInterfaceMockList sync.RWMutex + lockAPIServiceInterfaceMockListNamespaced sync.RWMutex lockAPIServiceInterfaceMockObjectClient sync.RWMutex lockAPIServiceInterfaceMockUpdate sync.RWMutex lockAPIServiceInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.APIServiceInterface = &APIServiceInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.APIServiceList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.APIServiceList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type APIServiceInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.APIServiceList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.APIServiceList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type APIServiceInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *APIServiceInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *APIServiceInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.APIServiceList, error) { + if mock.ListNamespacedFunc == nil { + panic("APIServiceInterfaceMock.ListNamespacedFunc: method is nil but APIServiceInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockAPIServiceInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockAPIServiceInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedAPIServiceInterface.ListNamespacedCalls()) +func (mock *APIServiceInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockAPIServiceInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockAPIServiceInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *APIServiceInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/apiregistration.k8s.io/v1/zz_generated_api_service_controller.go b/apis/apiregistration.k8s.io/v1/zz_generated_api_service_controller.go index 462a38ad..02bae834 100644 --- a/apis/apiregistration.k8s.io/v1/zz_generated_api_service_controller.go +++ b/apis/apiregistration.k8s.io/v1/zz_generated_api_service_controller.go @@ -85,6 +85,7 @@ type APIServiceInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*APIServiceList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*APIServiceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() APIServiceController @@ -272,6 +273,11 @@ func (s *apiServiceClient) List(opts metav1.ListOptions) (*APIServiceList, error return obj.(*APIServiceList), err } +func (s *apiServiceClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*APIServiceList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*APIServiceList), err +} + func (s *apiServiceClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/apps/v1/fakes/zz_generated_daemon_set_mock.go b/apis/apps/v1/fakes/zz_generated_daemon_set_mock.go index 21be6c4c..3f8d841b 100644 --- a/apis/apps/v1/fakes/zz_generated_daemon_set_mock.go +++ b/apis/apps/v1/fakes/zz_generated_daemon_set_mock.go @@ -675,6 +675,7 @@ var ( lockDaemonSetInterfaceMockGet sync.RWMutex lockDaemonSetInterfaceMockGetNamespaced sync.RWMutex lockDaemonSetInterfaceMockList sync.RWMutex + lockDaemonSetInterfaceMockListNamespaced sync.RWMutex lockDaemonSetInterfaceMockObjectClient sync.RWMutex lockDaemonSetInterfaceMockUpdate sync.RWMutex lockDaemonSetInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.DaemonSetInterface = &DaemonSetInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.DaemonSetList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type DaemonSetInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.DaemonSetList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type DaemonSetInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *DaemonSetInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *DaemonSetInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error) { + if mock.ListNamespacedFunc == nil { + panic("DaemonSetInterfaceMock.ListNamespacedFunc: method is nil but DaemonSetInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockDaemonSetInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockDaemonSetInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedDaemonSetInterface.ListNamespacedCalls()) +func (mock *DaemonSetInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockDaemonSetInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockDaemonSetInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *DaemonSetInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/apps/v1/fakes/zz_generated_deployment_mock.go b/apis/apps/v1/fakes/zz_generated_deployment_mock.go index 7dcee5ad..4f3214bb 100644 --- a/apis/apps/v1/fakes/zz_generated_deployment_mock.go +++ b/apis/apps/v1/fakes/zz_generated_deployment_mock.go @@ -675,6 +675,7 @@ var ( lockDeploymentInterfaceMockGet sync.RWMutex lockDeploymentInterfaceMockGetNamespaced sync.RWMutex lockDeploymentInterfaceMockList sync.RWMutex + lockDeploymentInterfaceMockListNamespaced sync.RWMutex lockDeploymentInterfaceMockObjectClient sync.RWMutex lockDeploymentInterfaceMockUpdate sync.RWMutex lockDeploymentInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.DeploymentInterface = &DeploymentInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.DeploymentList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type DeploymentInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.DeploymentList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type DeploymentInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *DeploymentInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *DeploymentInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error) { + if mock.ListNamespacedFunc == nil { + panic("DeploymentInterfaceMock.ListNamespacedFunc: method is nil but DeploymentInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockDeploymentInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockDeploymentInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedDeploymentInterface.ListNamespacedCalls()) +func (mock *DeploymentInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockDeploymentInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockDeploymentInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *DeploymentInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/apps/v1/fakes/zz_generated_replica_set_mock.go b/apis/apps/v1/fakes/zz_generated_replica_set_mock.go index 58d708a4..c3fbbb78 100644 --- a/apis/apps/v1/fakes/zz_generated_replica_set_mock.go +++ b/apis/apps/v1/fakes/zz_generated_replica_set_mock.go @@ -675,6 +675,7 @@ var ( lockReplicaSetInterfaceMockGet sync.RWMutex lockReplicaSetInterfaceMockGetNamespaced sync.RWMutex lockReplicaSetInterfaceMockList sync.RWMutex + lockReplicaSetInterfaceMockListNamespaced sync.RWMutex lockReplicaSetInterfaceMockObjectClient sync.RWMutex lockReplicaSetInterfaceMockUpdate sync.RWMutex lockReplicaSetInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ReplicaSetInterface = &ReplicaSetInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ReplicaSetList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ReplicaSetList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ReplicaSetInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ReplicaSetList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ReplicaSetList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ReplicaSetInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ReplicaSetInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ReplicaSetInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ReplicaSetList, error) { + if mock.ListNamespacedFunc == nil { + panic("ReplicaSetInterfaceMock.ListNamespacedFunc: method is nil but ReplicaSetInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockReplicaSetInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockReplicaSetInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedReplicaSetInterface.ListNamespacedCalls()) +func (mock *ReplicaSetInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockReplicaSetInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockReplicaSetInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ReplicaSetInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/apps/v1/fakes/zz_generated_stateful_set_mock.go b/apis/apps/v1/fakes/zz_generated_stateful_set_mock.go index 75fefb33..0b8d922e 100644 --- a/apis/apps/v1/fakes/zz_generated_stateful_set_mock.go +++ b/apis/apps/v1/fakes/zz_generated_stateful_set_mock.go @@ -675,6 +675,7 @@ var ( lockStatefulSetInterfaceMockGet sync.RWMutex lockStatefulSetInterfaceMockGetNamespaced sync.RWMutex lockStatefulSetInterfaceMockList sync.RWMutex + lockStatefulSetInterfaceMockListNamespaced sync.RWMutex lockStatefulSetInterfaceMockObjectClient sync.RWMutex lockStatefulSetInterfaceMockUpdate sync.RWMutex lockStatefulSetInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.StatefulSetInterface = &StatefulSetInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.StatefulSetList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.StatefulSetList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type StatefulSetInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.StatefulSetList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.StatefulSetList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type StatefulSetInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *StatefulSetInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *StatefulSetInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.StatefulSetList, error) { + if mock.ListNamespacedFunc == nil { + panic("StatefulSetInterfaceMock.ListNamespacedFunc: method is nil but StatefulSetInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockStatefulSetInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockStatefulSetInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedStatefulSetInterface.ListNamespacedCalls()) +func (mock *StatefulSetInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockStatefulSetInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockStatefulSetInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *StatefulSetInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/apps/v1/zz_generated_daemon_set_controller.go b/apis/apps/v1/zz_generated_daemon_set_controller.go index b2a664da..89873063 100644 --- a/apis/apps/v1/zz_generated_daemon_set_controller.go +++ b/apis/apps/v1/zz_generated_daemon_set_controller.go @@ -86,6 +86,7 @@ type DaemonSetInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DaemonSetList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*DaemonSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() DaemonSetController @@ -273,6 +274,11 @@ func (s *daemonSetClient) List(opts metav1.ListOptions) (*DaemonSetList, error) return obj.(*DaemonSetList), err } +func (s *daemonSetClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*DaemonSetList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*DaemonSetList), err +} + func (s *daemonSetClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/apps/v1/zz_generated_deployment_controller.go b/apis/apps/v1/zz_generated_deployment_controller.go index 89d7c456..55f2714a 100644 --- a/apis/apps/v1/zz_generated_deployment_controller.go +++ b/apis/apps/v1/zz_generated_deployment_controller.go @@ -86,6 +86,7 @@ type DeploymentInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DeploymentList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*DeploymentList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() DeploymentController @@ -273,6 +274,11 @@ func (s *deploymentClient) List(opts metav1.ListOptions) (*DeploymentList, error return obj.(*DeploymentList), err } +func (s *deploymentClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*DeploymentList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*DeploymentList), err +} + func (s *deploymentClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/apps/v1/zz_generated_replica_set_controller.go b/apis/apps/v1/zz_generated_replica_set_controller.go index ab95e488..aed86327 100644 --- a/apis/apps/v1/zz_generated_replica_set_controller.go +++ b/apis/apps/v1/zz_generated_replica_set_controller.go @@ -86,6 +86,7 @@ type ReplicaSetInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ReplicaSetList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ReplicaSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ReplicaSetController @@ -273,6 +274,11 @@ func (s *replicaSetClient) List(opts metav1.ListOptions) (*ReplicaSetList, error return obj.(*ReplicaSetList), err } +func (s *replicaSetClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ReplicaSetList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ReplicaSetList), err +} + func (s *replicaSetClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/apps/v1/zz_generated_stateful_set_controller.go b/apis/apps/v1/zz_generated_stateful_set_controller.go index e871dfa3..3bcb6a82 100644 --- a/apis/apps/v1/zz_generated_stateful_set_controller.go +++ b/apis/apps/v1/zz_generated_stateful_set_controller.go @@ -86,6 +86,7 @@ type StatefulSetInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*StatefulSetList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*StatefulSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() StatefulSetController @@ -273,6 +274,11 @@ func (s *statefulSetClient) List(opts metav1.ListOptions) (*StatefulSetList, err return obj.(*StatefulSetList), err } +func (s *statefulSetClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*StatefulSetList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*StatefulSetList), err +} + func (s *statefulSetClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/autoscaling/v2beta2/fakes/zz_generated_horizontal_pod_autoscaler_mock.go b/apis/autoscaling/v2beta2/fakes/zz_generated_horizontal_pod_autoscaler_mock.go index 603d3f85..cb433079 100644 --- a/apis/autoscaling/v2beta2/fakes/zz_generated_horizontal_pod_autoscaler_mock.go +++ b/apis/autoscaling/v2beta2/fakes/zz_generated_horizontal_pod_autoscaler_mock.go @@ -675,6 +675,7 @@ var ( lockHorizontalPodAutoscalerInterfaceMockGet sync.RWMutex lockHorizontalPodAutoscalerInterfaceMockGetNamespaced sync.RWMutex lockHorizontalPodAutoscalerInterfaceMockList sync.RWMutex + lockHorizontalPodAutoscalerInterfaceMockListNamespaced sync.RWMutex lockHorizontalPodAutoscalerInterfaceMockObjectClient sync.RWMutex lockHorizontalPodAutoscalerInterfaceMockUpdate sync.RWMutex lockHorizontalPodAutoscalerInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v2beta2a.HorizontalPodAutoscalerInterface = &HorizontalPodAutoscalerInterf // ListFunc: func(opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type HorizontalPodAutoscalerInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type HorizontalPodAutoscalerInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *HorizontalPodAutoscalerInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *HorizontalPodAutoscalerInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) { + if mock.ListNamespacedFunc == nil { + panic("HorizontalPodAutoscalerInterfaceMock.ListNamespacedFunc: method is nil but HorizontalPodAutoscalerInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockHorizontalPodAutoscalerInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockHorizontalPodAutoscalerInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedHorizontalPodAutoscalerInterface.ListNamespacedCalls()) +func (mock *HorizontalPodAutoscalerInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockHorizontalPodAutoscalerInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockHorizontalPodAutoscalerInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *HorizontalPodAutoscalerInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/autoscaling/v2beta2/zz_generated_horizontal_pod_autoscaler_controller.go b/apis/autoscaling/v2beta2/zz_generated_horizontal_pod_autoscaler_controller.go index 2d5ef59a..d9e09b09 100644 --- a/apis/autoscaling/v2beta2/zz_generated_horizontal_pod_autoscaler_controller.go +++ b/apis/autoscaling/v2beta2/zz_generated_horizontal_pod_autoscaler_controller.go @@ -86,6 +86,7 @@ type HorizontalPodAutoscalerInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*HorizontalPodAutoscalerList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*HorizontalPodAutoscalerList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() HorizontalPodAutoscalerController @@ -273,6 +274,11 @@ func (s *horizontalPodAutoscalerClient) List(opts metav1.ListOptions) (*Horizont return obj.(*HorizontalPodAutoscalerList), err } +func (s *horizontalPodAutoscalerClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*HorizontalPodAutoscalerList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*HorizontalPodAutoscalerList), err +} + func (s *horizontalPodAutoscalerClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/batch/v1/fakes/zz_generated_job_mock.go b/apis/batch/v1/fakes/zz_generated_job_mock.go index 80d3cc28..e6d6101c 100644 --- a/apis/batch/v1/fakes/zz_generated_job_mock.go +++ b/apis/batch/v1/fakes/zz_generated_job_mock.go @@ -675,6 +675,7 @@ var ( lockJobInterfaceMockGet sync.RWMutex lockJobInterfaceMockGetNamespaced sync.RWMutex lockJobInterfaceMockList sync.RWMutex + lockJobInterfaceMockListNamespaced sync.RWMutex lockJobInterfaceMockObjectClient sync.RWMutex lockJobInterfaceMockUpdate sync.RWMutex lockJobInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.JobInterface = &JobInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.JobList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.JobList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type JobInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.JobList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.JobList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type JobInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *JobInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *JobInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.JobList, error) { + if mock.ListNamespacedFunc == nil { + panic("JobInterfaceMock.ListNamespacedFunc: method is nil but JobInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockJobInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockJobInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedJobInterface.ListNamespacedCalls()) +func (mock *JobInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockJobInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockJobInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *JobInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/batch/v1/zz_generated_job_controller.go b/apis/batch/v1/zz_generated_job_controller.go index 75e7fd18..c6d23a13 100644 --- a/apis/batch/v1/zz_generated_job_controller.go +++ b/apis/batch/v1/zz_generated_job_controller.go @@ -86,6 +86,7 @@ type JobInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*JobList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*JobList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() JobController @@ -273,6 +274,11 @@ func (s *jobClient) List(opts metav1.ListOptions) (*JobList, error) { return obj.(*JobList), err } +func (s *jobClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*JobList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*JobList), err +} + func (s *jobClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/batch/v1beta1/fakes/zz_generated_cron_job_mock.go b/apis/batch/v1beta1/fakes/zz_generated_cron_job_mock.go index fb84216b..956f868f 100644 --- a/apis/batch/v1beta1/fakes/zz_generated_cron_job_mock.go +++ b/apis/batch/v1beta1/fakes/zz_generated_cron_job_mock.go @@ -675,6 +675,7 @@ var ( lockCronJobInterfaceMockGet sync.RWMutex lockCronJobInterfaceMockGetNamespaced sync.RWMutex lockCronJobInterfaceMockList sync.RWMutex + lockCronJobInterfaceMockListNamespaced sync.RWMutex lockCronJobInterfaceMockObjectClient sync.RWMutex lockCronJobInterfaceMockUpdate sync.RWMutex lockCronJobInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1beta1a.CronJobInterface = &CronJobInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v1beta1a.CronJobList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1beta1a.CronJobList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type CronJobInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v1beta1a.CronJobList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v1beta1a.CronJobList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type CronJobInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *CronJobInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *CronJobInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1beta1a.CronJobList, error) { + if mock.ListNamespacedFunc == nil { + panic("CronJobInterfaceMock.ListNamespacedFunc: method is nil but CronJobInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockCronJobInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockCronJobInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedCronJobInterface.ListNamespacedCalls()) +func (mock *CronJobInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockCronJobInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockCronJobInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *CronJobInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/batch/v1beta1/zz_generated_cron_job_controller.go b/apis/batch/v1beta1/zz_generated_cron_job_controller.go index 5d8b36ef..dbf53454 100644 --- a/apis/batch/v1beta1/zz_generated_cron_job_controller.go +++ b/apis/batch/v1beta1/zz_generated_cron_job_controller.go @@ -86,6 +86,7 @@ type CronJobInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*CronJobList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*CronJobList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() CronJobController @@ -273,6 +274,11 @@ func (s *cronJobClient) List(opts metav1.ListOptions) (*CronJobList, error) { return obj.(*CronJobList), err } +func (s *cronJobClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*CronJobList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*CronJobList), err +} + func (s *cronJobClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/cluster.cattle.io/v3/fakes/zz_generated_cluster_auth_token_mock.go b/apis/cluster.cattle.io/v3/fakes/zz_generated_cluster_auth_token_mock.go index 89d9c3b3..e39d62ad 100644 --- a/apis/cluster.cattle.io/v3/fakes/zz_generated_cluster_auth_token_mock.go +++ b/apis/cluster.cattle.io/v3/fakes/zz_generated_cluster_auth_token_mock.go @@ -674,6 +674,7 @@ var ( lockClusterAuthTokenInterfaceMockGet sync.RWMutex lockClusterAuthTokenInterfaceMockGetNamespaced sync.RWMutex lockClusterAuthTokenInterfaceMockList sync.RWMutex + lockClusterAuthTokenInterfaceMockListNamespaced sync.RWMutex lockClusterAuthTokenInterfaceMockObjectClient sync.RWMutex lockClusterAuthTokenInterfaceMockUpdate sync.RWMutex lockClusterAuthTokenInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterAuthTokenInterface = &ClusterAuthTokenInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterAuthTokenInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterAuthTokenInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterAuthTokenInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterAuthTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterAuthTokenInterfaceMock.ListNamespacedFunc: method is nil but ClusterAuthTokenInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterAuthTokenInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterAuthTokenInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterAuthTokenInterface.ListNamespacedCalls()) +func (mock *ClusterAuthTokenInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterAuthTokenInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterAuthTokenInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterAuthTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/cluster.cattle.io/v3/fakes/zz_generated_cluster_user_attribute_mock.go b/apis/cluster.cattle.io/v3/fakes/zz_generated_cluster_user_attribute_mock.go index c6a74d81..051cc6a2 100644 --- a/apis/cluster.cattle.io/v3/fakes/zz_generated_cluster_user_attribute_mock.go +++ b/apis/cluster.cattle.io/v3/fakes/zz_generated_cluster_user_attribute_mock.go @@ -674,6 +674,7 @@ var ( lockClusterUserAttributeInterfaceMockGet sync.RWMutex lockClusterUserAttributeInterfaceMockGetNamespaced sync.RWMutex lockClusterUserAttributeInterfaceMockList sync.RWMutex + lockClusterUserAttributeInterfaceMockListNamespaced sync.RWMutex lockClusterUserAttributeInterfaceMockObjectClient sync.RWMutex lockClusterUserAttributeInterfaceMockUpdate sync.RWMutex lockClusterUserAttributeInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterUserAttributeInterface = &ClusterUserAttributeInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterUserAttributeInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterUserAttributeInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterUserAttributeInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterUserAttributeInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterUserAttributeInterfaceMock.ListNamespacedFunc: method is nil but ClusterUserAttributeInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterUserAttributeInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterUserAttributeInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterUserAttributeInterface.ListNamespacedCalls()) +func (mock *ClusterUserAttributeInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterUserAttributeInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterUserAttributeInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterUserAttributeInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/cluster.cattle.io/v3/zz_generated_cluster_auth_token_controller.go b/apis/cluster.cattle.io/v3/zz_generated_cluster_auth_token_controller.go index 3548045c..7b8a8682 100644 --- a/apis/cluster.cattle.io/v3/zz_generated_cluster_auth_token_controller.go +++ b/apis/cluster.cattle.io/v3/zz_generated_cluster_auth_token_controller.go @@ -85,6 +85,7 @@ type ClusterAuthTokenInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterAuthTokenList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterAuthTokenList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterAuthTokenController @@ -272,6 +273,11 @@ func (s *clusterAuthTokenClient) List(opts metav1.ListOptions) (*ClusterAuthToke return obj.(*ClusterAuthTokenList), err } +func (s *clusterAuthTokenClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterAuthTokenList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterAuthTokenList), err +} + func (s *clusterAuthTokenClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/cluster.cattle.io/v3/zz_generated_cluster_user_attribute_controller.go b/apis/cluster.cattle.io/v3/zz_generated_cluster_user_attribute_controller.go index 6fa17ccc..c208d89a 100644 --- a/apis/cluster.cattle.io/v3/zz_generated_cluster_user_attribute_controller.go +++ b/apis/cluster.cattle.io/v3/zz_generated_cluster_user_attribute_controller.go @@ -85,6 +85,7 @@ type ClusterUserAttributeInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterUserAttributeList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterUserAttributeList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterUserAttributeController @@ -272,6 +273,11 @@ func (s *clusterUserAttributeClient) List(opts metav1.ListOptions) (*ClusterUser return obj.(*ClusterUserAttributeList), err } +func (s *clusterUserAttributeClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterUserAttributeList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterUserAttributeList), err +} + func (s *clusterUserAttributeClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/fakes/zz_generated_component_status_mock.go b/apis/core/v1/fakes/zz_generated_component_status_mock.go index 5e0261cc..4118fecc 100644 --- a/apis/core/v1/fakes/zz_generated_component_status_mock.go +++ b/apis/core/v1/fakes/zz_generated_component_status_mock.go @@ -675,6 +675,7 @@ var ( lockComponentStatusInterfaceMockGet sync.RWMutex lockComponentStatusInterfaceMockGetNamespaced sync.RWMutex lockComponentStatusInterfaceMockList sync.RWMutex + lockComponentStatusInterfaceMockListNamespaced sync.RWMutex lockComponentStatusInterfaceMockObjectClient sync.RWMutex lockComponentStatusInterfaceMockUpdate sync.RWMutex lockComponentStatusInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ComponentStatusInterface = &ComponentStatusInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ComponentStatusList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ComponentStatusList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ComponentStatusInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ComponentStatusList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ComponentStatusList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ComponentStatusInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ComponentStatusInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ComponentStatusInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ComponentStatusList, error) { + if mock.ListNamespacedFunc == nil { + panic("ComponentStatusInterfaceMock.ListNamespacedFunc: method is nil but ComponentStatusInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockComponentStatusInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockComponentStatusInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedComponentStatusInterface.ListNamespacedCalls()) +func (mock *ComponentStatusInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockComponentStatusInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockComponentStatusInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ComponentStatusInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_config_map_mock.go b/apis/core/v1/fakes/zz_generated_config_map_mock.go index 55cf15da..6c466644 100644 --- a/apis/core/v1/fakes/zz_generated_config_map_mock.go +++ b/apis/core/v1/fakes/zz_generated_config_map_mock.go @@ -675,6 +675,7 @@ var ( lockConfigMapInterfaceMockGet sync.RWMutex lockConfigMapInterfaceMockGetNamespaced sync.RWMutex lockConfigMapInterfaceMockList sync.RWMutex + lockConfigMapInterfaceMockListNamespaced sync.RWMutex lockConfigMapInterfaceMockObjectClient sync.RWMutex lockConfigMapInterfaceMockUpdate sync.RWMutex lockConfigMapInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ConfigMapInterface = &ConfigMapInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ConfigMapList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ConfigMapInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ConfigMapList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ConfigMapInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ConfigMapInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ConfigMapInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error) { + if mock.ListNamespacedFunc == nil { + panic("ConfigMapInterfaceMock.ListNamespacedFunc: method is nil but ConfigMapInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockConfigMapInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockConfigMapInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedConfigMapInterface.ListNamespacedCalls()) +func (mock *ConfigMapInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockConfigMapInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockConfigMapInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ConfigMapInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_endpoints_mock.go b/apis/core/v1/fakes/zz_generated_endpoints_mock.go index 091f379b..1277b55a 100644 --- a/apis/core/v1/fakes/zz_generated_endpoints_mock.go +++ b/apis/core/v1/fakes/zz_generated_endpoints_mock.go @@ -675,6 +675,7 @@ var ( lockEndpointsInterfaceMockGet sync.RWMutex lockEndpointsInterfaceMockGetNamespaced sync.RWMutex lockEndpointsInterfaceMockList sync.RWMutex + lockEndpointsInterfaceMockListNamespaced sync.RWMutex lockEndpointsInterfaceMockObjectClient sync.RWMutex lockEndpointsInterfaceMockUpdate sync.RWMutex lockEndpointsInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.EndpointsInterface = &EndpointsInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.EndpointsList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type EndpointsInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.EndpointsList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type EndpointsInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *EndpointsInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *EndpointsInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error) { + if mock.ListNamespacedFunc == nil { + panic("EndpointsInterfaceMock.ListNamespacedFunc: method is nil but EndpointsInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockEndpointsInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockEndpointsInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedEndpointsInterface.ListNamespacedCalls()) +func (mock *EndpointsInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockEndpointsInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockEndpointsInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *EndpointsInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_event_mock.go b/apis/core/v1/fakes/zz_generated_event_mock.go index a6b261f9..b6c2d57d 100644 --- a/apis/core/v1/fakes/zz_generated_event_mock.go +++ b/apis/core/v1/fakes/zz_generated_event_mock.go @@ -675,6 +675,7 @@ var ( lockEventInterfaceMockGet sync.RWMutex lockEventInterfaceMockGetNamespaced sync.RWMutex lockEventInterfaceMockList sync.RWMutex + lockEventInterfaceMockListNamespaced sync.RWMutex lockEventInterfaceMockObjectClient sync.RWMutex lockEventInterfaceMockUpdate sync.RWMutex lockEventInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.EventInterface = &EventInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.EventList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.EventList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type EventInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.EventList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.EventList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type EventInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *EventInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *EventInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.EventList, error) { + if mock.ListNamespacedFunc == nil { + panic("EventInterfaceMock.ListNamespacedFunc: method is nil but EventInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockEventInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockEventInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedEventInterface.ListNamespacedCalls()) +func (mock *EventInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockEventInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockEventInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *EventInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_limit_range_mock.go b/apis/core/v1/fakes/zz_generated_limit_range_mock.go index b3787851..f95fef84 100644 --- a/apis/core/v1/fakes/zz_generated_limit_range_mock.go +++ b/apis/core/v1/fakes/zz_generated_limit_range_mock.go @@ -675,6 +675,7 @@ var ( lockLimitRangeInterfaceMockGet sync.RWMutex lockLimitRangeInterfaceMockGetNamespaced sync.RWMutex lockLimitRangeInterfaceMockList sync.RWMutex + lockLimitRangeInterfaceMockListNamespaced sync.RWMutex lockLimitRangeInterfaceMockObjectClient sync.RWMutex lockLimitRangeInterfaceMockUpdate sync.RWMutex lockLimitRangeInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.LimitRangeInterface = &LimitRangeInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.LimitRangeList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.LimitRangeList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type LimitRangeInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.LimitRangeList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.LimitRangeList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type LimitRangeInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *LimitRangeInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *LimitRangeInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.LimitRangeList, error) { + if mock.ListNamespacedFunc == nil { + panic("LimitRangeInterfaceMock.ListNamespacedFunc: method is nil but LimitRangeInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockLimitRangeInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockLimitRangeInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedLimitRangeInterface.ListNamespacedCalls()) +func (mock *LimitRangeInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockLimitRangeInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockLimitRangeInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *LimitRangeInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_namespace_mock.go b/apis/core/v1/fakes/zz_generated_namespace_mock.go index 903b53a4..d874eb3d 100644 --- a/apis/core/v1/fakes/zz_generated_namespace_mock.go +++ b/apis/core/v1/fakes/zz_generated_namespace_mock.go @@ -675,6 +675,7 @@ var ( lockNamespaceInterfaceMockGet sync.RWMutex lockNamespaceInterfaceMockGetNamespaced sync.RWMutex lockNamespaceInterfaceMockList sync.RWMutex + lockNamespaceInterfaceMockListNamespaced sync.RWMutex lockNamespaceInterfaceMockObjectClient sync.RWMutex lockNamespaceInterfaceMockUpdate sync.RWMutex lockNamespaceInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.NamespaceInterface = &NamespaceInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.NamespaceList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.NamespaceList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type NamespaceInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.NamespaceList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.NamespaceList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type NamespaceInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *NamespaceInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NamespaceInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.NamespaceList, error) { + if mock.ListNamespacedFunc == nil { + panic("NamespaceInterfaceMock.ListNamespacedFunc: method is nil but NamespaceInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNamespaceInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNamespaceInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNamespaceInterface.ListNamespacedCalls()) +func (mock *NamespaceInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockNamespaceInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNamespaceInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NamespaceInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_node_mock.go b/apis/core/v1/fakes/zz_generated_node_mock.go index 65dc02f1..9d51d27e 100644 --- a/apis/core/v1/fakes/zz_generated_node_mock.go +++ b/apis/core/v1/fakes/zz_generated_node_mock.go @@ -675,6 +675,7 @@ var ( lockNodeInterfaceMockGet sync.RWMutex lockNodeInterfaceMockGetNamespaced sync.RWMutex lockNodeInterfaceMockList sync.RWMutex + lockNodeInterfaceMockListNamespaced sync.RWMutex lockNodeInterfaceMockObjectClient sync.RWMutex lockNodeInterfaceMockUpdate sync.RWMutex lockNodeInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.NodeInterface = &NodeInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.NodeList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.NodeList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type NodeInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.NodeList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.NodeList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type NodeInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *NodeInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NodeInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.NodeList, error) { + if mock.ListNamespacedFunc == nil { + panic("NodeInterfaceMock.ListNamespacedFunc: method is nil but NodeInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNodeInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNodeInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNodeInterface.ListNamespacedCalls()) +func (mock *NodeInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockNodeInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNodeInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NodeInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_persistent_volume_claim_mock.go b/apis/core/v1/fakes/zz_generated_persistent_volume_claim_mock.go index eec69e28..ca799592 100644 --- a/apis/core/v1/fakes/zz_generated_persistent_volume_claim_mock.go +++ b/apis/core/v1/fakes/zz_generated_persistent_volume_claim_mock.go @@ -675,6 +675,7 @@ var ( lockPersistentVolumeClaimInterfaceMockGet sync.RWMutex lockPersistentVolumeClaimInterfaceMockGetNamespaced sync.RWMutex lockPersistentVolumeClaimInterfaceMockList sync.RWMutex + lockPersistentVolumeClaimInterfaceMockListNamespaced sync.RWMutex lockPersistentVolumeClaimInterfaceMockObjectClient sync.RWMutex lockPersistentVolumeClaimInterfaceMockUpdate sync.RWMutex lockPersistentVolumeClaimInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.PersistentVolumeClaimInterface = &PersistentVolumeClaimInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type PersistentVolumeClaimInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type PersistentVolumeClaimInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *PersistentVolumeClaimInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PersistentVolumeClaimInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) { + if mock.ListNamespacedFunc == nil { + panic("PersistentVolumeClaimInterfaceMock.ListNamespacedFunc: method is nil but PersistentVolumeClaimInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPersistentVolumeClaimInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPersistentVolumeClaimInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPersistentVolumeClaimInterface.ListNamespacedCalls()) +func (mock *PersistentVolumeClaimInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockPersistentVolumeClaimInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPersistentVolumeClaimInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PersistentVolumeClaimInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_pod_mock.go b/apis/core/v1/fakes/zz_generated_pod_mock.go index 28ca949e..62c913f0 100644 --- a/apis/core/v1/fakes/zz_generated_pod_mock.go +++ b/apis/core/v1/fakes/zz_generated_pod_mock.go @@ -675,6 +675,7 @@ var ( lockPodInterfaceMockGet sync.RWMutex lockPodInterfaceMockGetNamespaced sync.RWMutex lockPodInterfaceMockList sync.RWMutex + lockPodInterfaceMockListNamespaced sync.RWMutex lockPodInterfaceMockObjectClient sync.RWMutex lockPodInterfaceMockUpdate sync.RWMutex lockPodInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.PodInterface = &PodInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.PodList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type PodInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.PodList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type PodInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *PodInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PodInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) { + if mock.ListNamespacedFunc == nil { + panic("PodInterfaceMock.ListNamespacedFunc: method is nil but PodInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPodInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPodInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPodInterface.ListNamespacedCalls()) +func (mock *PodInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockPodInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPodInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PodInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_replication_controller_mock.go b/apis/core/v1/fakes/zz_generated_replication_controller_mock.go index 7148b41a..3f1691dc 100644 --- a/apis/core/v1/fakes/zz_generated_replication_controller_mock.go +++ b/apis/core/v1/fakes/zz_generated_replication_controller_mock.go @@ -675,6 +675,7 @@ var ( lockReplicationControllerInterfaceMockGet sync.RWMutex lockReplicationControllerInterfaceMockGetNamespaced sync.RWMutex lockReplicationControllerInterfaceMockList sync.RWMutex + lockReplicationControllerInterfaceMockListNamespaced sync.RWMutex lockReplicationControllerInterfaceMockObjectClient sync.RWMutex lockReplicationControllerInterfaceMockUpdate sync.RWMutex lockReplicationControllerInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ReplicationControllerInterface = &ReplicationControllerInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ReplicationControllerInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ReplicationControllerInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ReplicationControllerInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ReplicationControllerInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) { + if mock.ListNamespacedFunc == nil { + panic("ReplicationControllerInterfaceMock.ListNamespacedFunc: method is nil but ReplicationControllerInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockReplicationControllerInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockReplicationControllerInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedReplicationControllerInterface.ListNamespacedCalls()) +func (mock *ReplicationControllerInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockReplicationControllerInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockReplicationControllerInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ReplicationControllerInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_resource_quota_mock.go b/apis/core/v1/fakes/zz_generated_resource_quota_mock.go index 621b384f..1d719fa5 100644 --- a/apis/core/v1/fakes/zz_generated_resource_quota_mock.go +++ b/apis/core/v1/fakes/zz_generated_resource_quota_mock.go @@ -675,6 +675,7 @@ var ( lockResourceQuotaInterfaceMockGet sync.RWMutex lockResourceQuotaInterfaceMockGetNamespaced sync.RWMutex lockResourceQuotaInterfaceMockList sync.RWMutex + lockResourceQuotaInterfaceMockListNamespaced sync.RWMutex lockResourceQuotaInterfaceMockObjectClient sync.RWMutex lockResourceQuotaInterfaceMockUpdate sync.RWMutex lockResourceQuotaInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ResourceQuotaInterface = &ResourceQuotaInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ResourceQuotaInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ResourceQuotaInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ResourceQuotaInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ResourceQuotaInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) { + if mock.ListNamespacedFunc == nil { + panic("ResourceQuotaInterfaceMock.ListNamespacedFunc: method is nil but ResourceQuotaInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockResourceQuotaInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockResourceQuotaInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedResourceQuotaInterface.ListNamespacedCalls()) +func (mock *ResourceQuotaInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockResourceQuotaInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockResourceQuotaInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ResourceQuotaInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_secret_mock.go b/apis/core/v1/fakes/zz_generated_secret_mock.go index 98670b42..9556004e 100644 --- a/apis/core/v1/fakes/zz_generated_secret_mock.go +++ b/apis/core/v1/fakes/zz_generated_secret_mock.go @@ -675,6 +675,7 @@ var ( lockSecretInterfaceMockGet sync.RWMutex lockSecretInterfaceMockGetNamespaced sync.RWMutex lockSecretInterfaceMockList sync.RWMutex + lockSecretInterfaceMockListNamespaced sync.RWMutex lockSecretInterfaceMockObjectClient sync.RWMutex lockSecretInterfaceMockUpdate sync.RWMutex lockSecretInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.SecretInterface = &SecretInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.SecretList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type SecretInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.SecretList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type SecretInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *SecretInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *SecretInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error) { + if mock.ListNamespacedFunc == nil { + panic("SecretInterfaceMock.ListNamespacedFunc: method is nil but SecretInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockSecretInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockSecretInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedSecretInterface.ListNamespacedCalls()) +func (mock *SecretInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockSecretInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockSecretInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *SecretInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_service_account_mock.go b/apis/core/v1/fakes/zz_generated_service_account_mock.go index 67057a0f..aadc4449 100644 --- a/apis/core/v1/fakes/zz_generated_service_account_mock.go +++ b/apis/core/v1/fakes/zz_generated_service_account_mock.go @@ -675,6 +675,7 @@ var ( lockServiceAccountInterfaceMockGet sync.RWMutex lockServiceAccountInterfaceMockGetNamespaced sync.RWMutex lockServiceAccountInterfaceMockList sync.RWMutex + lockServiceAccountInterfaceMockListNamespaced sync.RWMutex lockServiceAccountInterfaceMockObjectClient sync.RWMutex lockServiceAccountInterfaceMockUpdate sync.RWMutex lockServiceAccountInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ServiceAccountInterface = &ServiceAccountInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ServiceAccountList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ServiceAccountInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ServiceAccountList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ServiceAccountInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ServiceAccountInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ServiceAccountInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error) { + if mock.ListNamespacedFunc == nil { + panic("ServiceAccountInterfaceMock.ListNamespacedFunc: method is nil but ServiceAccountInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockServiceAccountInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockServiceAccountInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedServiceAccountInterface.ListNamespacedCalls()) +func (mock *ServiceAccountInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockServiceAccountInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockServiceAccountInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ServiceAccountInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/fakes/zz_generated_service_mock.go b/apis/core/v1/fakes/zz_generated_service_mock.go index 5b703102..446ce64f 100644 --- a/apis/core/v1/fakes/zz_generated_service_mock.go +++ b/apis/core/v1/fakes/zz_generated_service_mock.go @@ -675,6 +675,7 @@ var ( lockServiceInterfaceMockGet sync.RWMutex lockServiceInterfaceMockGetNamespaced sync.RWMutex lockServiceInterfaceMockList sync.RWMutex + lockServiceInterfaceMockListNamespaced sync.RWMutex lockServiceInterfaceMockObjectClient sync.RWMutex lockServiceInterfaceMockUpdate sync.RWMutex lockServiceInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ServiceInterface = &ServiceInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ServiceList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ServiceInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ServiceList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ServiceInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ServiceInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ServiceInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error) { + if mock.ListNamespacedFunc == nil { + panic("ServiceInterfaceMock.ListNamespacedFunc: method is nil but ServiceInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockServiceInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockServiceInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedServiceInterface.ListNamespacedCalls()) +func (mock *ServiceInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockServiceInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockServiceInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ServiceInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/core/v1/zz_generated_component_status_controller.go b/apis/core/v1/zz_generated_component_status_controller.go index 3f347575..cd49f557 100644 --- a/apis/core/v1/zz_generated_component_status_controller.go +++ b/apis/core/v1/zz_generated_component_status_controller.go @@ -85,6 +85,7 @@ type ComponentStatusInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ComponentStatusList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ComponentStatusList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ComponentStatusController @@ -272,6 +273,11 @@ func (s *componentStatusClient) List(opts metav1.ListOptions) (*ComponentStatusL return obj.(*ComponentStatusList), err } +func (s *componentStatusClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ComponentStatusList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ComponentStatusList), err +} + func (s *componentStatusClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_config_map_controller.go b/apis/core/v1/zz_generated_config_map_controller.go index 9c21e1f8..8e5f1a78 100644 --- a/apis/core/v1/zz_generated_config_map_controller.go +++ b/apis/core/v1/zz_generated_config_map_controller.go @@ -86,6 +86,7 @@ type ConfigMapInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ConfigMapList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ConfigMapList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ConfigMapController @@ -273,6 +274,11 @@ func (s *configMapClient) List(opts metav1.ListOptions) (*ConfigMapList, error) return obj.(*ConfigMapList), err } +func (s *configMapClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ConfigMapList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ConfigMapList), err +} + func (s *configMapClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_endpoints_controller.go b/apis/core/v1/zz_generated_endpoints_controller.go index f226502b..515ad967 100644 --- a/apis/core/v1/zz_generated_endpoints_controller.go +++ b/apis/core/v1/zz_generated_endpoints_controller.go @@ -86,6 +86,7 @@ type EndpointsInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*EndpointsList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*EndpointsList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() EndpointsController @@ -273,6 +274,11 @@ func (s *endpointsClient) List(opts metav1.ListOptions) (*EndpointsList, error) return obj.(*EndpointsList), err } +func (s *endpointsClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*EndpointsList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*EndpointsList), err +} + func (s *endpointsClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_event_controller.go b/apis/core/v1/zz_generated_event_controller.go index 39ecfe3d..1b04c402 100644 --- a/apis/core/v1/zz_generated_event_controller.go +++ b/apis/core/v1/zz_generated_event_controller.go @@ -85,6 +85,7 @@ type EventInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*EventList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*EventList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() EventController @@ -272,6 +273,11 @@ func (s *eventClient) List(opts metav1.ListOptions) (*EventList, error) { return obj.(*EventList), err } +func (s *eventClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*EventList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*EventList), err +} + func (s *eventClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_limit_range_controller.go b/apis/core/v1/zz_generated_limit_range_controller.go index 698d1ab2..11740084 100644 --- a/apis/core/v1/zz_generated_limit_range_controller.go +++ b/apis/core/v1/zz_generated_limit_range_controller.go @@ -86,6 +86,7 @@ type LimitRangeInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*LimitRangeList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*LimitRangeList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() LimitRangeController @@ -273,6 +274,11 @@ func (s *limitRangeClient) List(opts metav1.ListOptions) (*LimitRangeList, error return obj.(*LimitRangeList), err } +func (s *limitRangeClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*LimitRangeList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*LimitRangeList), err +} + func (s *limitRangeClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_namespace_controller.go b/apis/core/v1/zz_generated_namespace_controller.go index 002d791d..59c23594 100644 --- a/apis/core/v1/zz_generated_namespace_controller.go +++ b/apis/core/v1/zz_generated_namespace_controller.go @@ -85,6 +85,7 @@ type NamespaceInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NamespaceList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespaceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NamespaceController @@ -272,6 +273,11 @@ func (s *namespaceClient) List(opts metav1.ListOptions) (*NamespaceList, error) return obj.(*NamespaceList), err } +func (s *namespaceClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespaceList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NamespaceList), err +} + func (s *namespaceClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_node_controller.go b/apis/core/v1/zz_generated_node_controller.go index 239d4e56..1efb7725 100644 --- a/apis/core/v1/zz_generated_node_controller.go +++ b/apis/core/v1/zz_generated_node_controller.go @@ -85,6 +85,7 @@ type NodeInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NodeList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NodeList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NodeController @@ -272,6 +273,11 @@ func (s *nodeClient) List(opts metav1.ListOptions) (*NodeList, error) { return obj.(*NodeList), err } +func (s *nodeClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NodeList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NodeList), err +} + func (s *nodeClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_persistent_volume_claim_controller.go b/apis/core/v1/zz_generated_persistent_volume_claim_controller.go index 189c4c1e..3ed9f8ef 100644 --- a/apis/core/v1/zz_generated_persistent_volume_claim_controller.go +++ b/apis/core/v1/zz_generated_persistent_volume_claim_controller.go @@ -86,6 +86,7 @@ type PersistentVolumeClaimInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PersistentVolumeClaimList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PersistentVolumeClaimList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PersistentVolumeClaimController @@ -273,6 +274,11 @@ func (s *persistentVolumeClaimClient) List(opts metav1.ListOptions) (*Persistent return obj.(*PersistentVolumeClaimList), err } +func (s *persistentVolumeClaimClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PersistentVolumeClaimList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PersistentVolumeClaimList), err +} + func (s *persistentVolumeClaimClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_pod_controller.go b/apis/core/v1/zz_generated_pod_controller.go index a636d746..3037576b 100644 --- a/apis/core/v1/zz_generated_pod_controller.go +++ b/apis/core/v1/zz_generated_pod_controller.go @@ -86,6 +86,7 @@ type PodInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PodList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PodList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PodController @@ -273,6 +274,11 @@ func (s *podClient) List(opts metav1.ListOptions) (*PodList, error) { return obj.(*PodList), err } +func (s *podClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PodList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PodList), err +} + func (s *podClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_replication_controller_controller.go b/apis/core/v1/zz_generated_replication_controller_controller.go index a12fb99a..fc103afb 100644 --- a/apis/core/v1/zz_generated_replication_controller_controller.go +++ b/apis/core/v1/zz_generated_replication_controller_controller.go @@ -86,6 +86,7 @@ type ReplicationControllerInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ReplicationControllerList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ReplicationControllerList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ReplicationControllerController @@ -273,6 +274,11 @@ func (s *replicationControllerClient) List(opts metav1.ListOptions) (*Replicatio return obj.(*ReplicationControllerList), err } +func (s *replicationControllerClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ReplicationControllerList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ReplicationControllerList), err +} + func (s *replicationControllerClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_resource_quota_controller.go b/apis/core/v1/zz_generated_resource_quota_controller.go index c472c55f..4fc3d5b0 100644 --- a/apis/core/v1/zz_generated_resource_quota_controller.go +++ b/apis/core/v1/zz_generated_resource_quota_controller.go @@ -86,6 +86,7 @@ type ResourceQuotaInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ResourceQuotaList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ResourceQuotaList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ResourceQuotaController @@ -273,6 +274,11 @@ func (s *resourceQuotaClient) List(opts metav1.ListOptions) (*ResourceQuotaList, return obj.(*ResourceQuotaList), err } +func (s *resourceQuotaClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ResourceQuotaList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ResourceQuotaList), err +} + func (s *resourceQuotaClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_secret_controller.go b/apis/core/v1/zz_generated_secret_controller.go index b0e94345..d6d1fcf9 100644 --- a/apis/core/v1/zz_generated_secret_controller.go +++ b/apis/core/v1/zz_generated_secret_controller.go @@ -86,6 +86,7 @@ type SecretInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*SecretList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*SecretList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() SecretController @@ -273,6 +274,11 @@ func (s *secretClient) List(opts metav1.ListOptions) (*SecretList, error) { return obj.(*SecretList), err } +func (s *secretClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*SecretList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*SecretList), err +} + func (s *secretClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_service_account_controller.go b/apis/core/v1/zz_generated_service_account_controller.go index abbd8e8d..239cf89b 100644 --- a/apis/core/v1/zz_generated_service_account_controller.go +++ b/apis/core/v1/zz_generated_service_account_controller.go @@ -86,6 +86,7 @@ type ServiceAccountInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ServiceAccountList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ServiceAccountList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ServiceAccountController @@ -273,6 +274,11 @@ func (s *serviceAccountClient) List(opts metav1.ListOptions) (*ServiceAccountLis return obj.(*ServiceAccountList), err } +func (s *serviceAccountClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ServiceAccountList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ServiceAccountList), err +} + func (s *serviceAccountClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/core/v1/zz_generated_service_controller.go b/apis/core/v1/zz_generated_service_controller.go index f41ef1ef..8f2fb3b1 100644 --- a/apis/core/v1/zz_generated_service_controller.go +++ b/apis/core/v1/zz_generated_service_controller.go @@ -86,6 +86,7 @@ type ServiceInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ServiceList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ServiceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ServiceController @@ -273,6 +274,11 @@ func (s *serviceClient) List(opts metav1.ListOptions) (*ServiceList, error) { return obj.(*ServiceList), err } +func (s *serviceClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ServiceList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ServiceList), err +} + func (s *serviceClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/extensions/v1beta1/fakes/zz_generated_ingress_mock.go b/apis/extensions/v1beta1/fakes/zz_generated_ingress_mock.go index 5d56d2aa..73a133c1 100644 --- a/apis/extensions/v1beta1/fakes/zz_generated_ingress_mock.go +++ b/apis/extensions/v1beta1/fakes/zz_generated_ingress_mock.go @@ -675,6 +675,7 @@ var ( lockIngressInterfaceMockGet sync.RWMutex lockIngressInterfaceMockGetNamespaced sync.RWMutex lockIngressInterfaceMockList sync.RWMutex + lockIngressInterfaceMockListNamespaced sync.RWMutex lockIngressInterfaceMockObjectClient sync.RWMutex lockIngressInterfaceMockUpdate sync.RWMutex lockIngressInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1beta1a.IngressInterface = &IngressInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v1beta1a.IngressList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1beta1a.IngressList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type IngressInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v1beta1a.IngressList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v1beta1a.IngressList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type IngressInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *IngressInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *IngressInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1beta1a.IngressList, error) { + if mock.ListNamespacedFunc == nil { + panic("IngressInterfaceMock.ListNamespacedFunc: method is nil but IngressInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockIngressInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockIngressInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedIngressInterface.ListNamespacedCalls()) +func (mock *IngressInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockIngressInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockIngressInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *IngressInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/extensions/v1beta1/zz_generated_ingress_controller.go b/apis/extensions/v1beta1/zz_generated_ingress_controller.go index 666e450b..4d42c9f2 100644 --- a/apis/extensions/v1beta1/zz_generated_ingress_controller.go +++ b/apis/extensions/v1beta1/zz_generated_ingress_controller.go @@ -86,6 +86,7 @@ type IngressInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*IngressList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*IngressList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() IngressController @@ -273,6 +274,11 @@ func (s *ingressClient) List(opts metav1.ListOptions) (*IngressList, error) { return obj.(*IngressList), err } +func (s *ingressClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*IngressList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*IngressList), err +} + func (s *ingressClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_auth_config_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_auth_config_mock.go index 6556e97b..eb99478e 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_auth_config_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_auth_config_mock.go @@ -674,6 +674,7 @@ var ( lockAuthConfigInterfaceMockGet sync.RWMutex lockAuthConfigInterfaceMockGetNamespaced sync.RWMutex lockAuthConfigInterfaceMockList sync.RWMutex + lockAuthConfigInterfaceMockListNamespaced sync.RWMutex lockAuthConfigInterfaceMockObjectClient sync.RWMutex lockAuthConfigInterfaceMockUpdate sync.RWMutex lockAuthConfigInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.AuthConfigInterface = &AuthConfigInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.AuthConfigList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.AuthConfigList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type AuthConfigInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.AuthConfigList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.AuthConfigList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type AuthConfigInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *AuthConfigInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *AuthConfigInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.AuthConfigList, error) { + if mock.ListNamespacedFunc == nil { + panic("AuthConfigInterfaceMock.ListNamespacedFunc: method is nil but AuthConfigInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockAuthConfigInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockAuthConfigInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedAuthConfigInterface.ListNamespacedCalls()) +func (mock *AuthConfigInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockAuthConfigInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockAuthConfigInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *AuthConfigInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_catalog_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_catalog_mock.go index 36586fbb..2eee339e 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_catalog_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_catalog_mock.go @@ -674,6 +674,7 @@ var ( lockCatalogInterfaceMockGet sync.RWMutex lockCatalogInterfaceMockGetNamespaced sync.RWMutex lockCatalogInterfaceMockList sync.RWMutex + lockCatalogInterfaceMockListNamespaced sync.RWMutex lockCatalogInterfaceMockObjectClient sync.RWMutex lockCatalogInterfaceMockUpdate sync.RWMutex lockCatalogInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.CatalogInterface = &CatalogInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.CatalogList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.CatalogList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type CatalogInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.CatalogList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.CatalogList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type CatalogInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *CatalogInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *CatalogInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.CatalogList, error) { + if mock.ListNamespacedFunc == nil { + panic("CatalogInterfaceMock.ListNamespacedFunc: method is nil but CatalogInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockCatalogInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockCatalogInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedCatalogInterface.ListNamespacedCalls()) +func (mock *CatalogInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockCatalogInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockCatalogInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *CatalogInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_catalog_template_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_catalog_template_mock.go index 6896ebc9..366cd49b 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_catalog_template_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_catalog_template_mock.go @@ -674,6 +674,7 @@ var ( lockCatalogTemplateInterfaceMockGet sync.RWMutex lockCatalogTemplateInterfaceMockGetNamespaced sync.RWMutex lockCatalogTemplateInterfaceMockList sync.RWMutex + lockCatalogTemplateInterfaceMockListNamespaced sync.RWMutex lockCatalogTemplateInterfaceMockObjectClient sync.RWMutex lockCatalogTemplateInterfaceMockUpdate sync.RWMutex lockCatalogTemplateInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.CatalogTemplateInterface = &CatalogTemplateInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.CatalogTemplateList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.CatalogTemplateList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type CatalogTemplateInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.CatalogTemplateList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.CatalogTemplateList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type CatalogTemplateInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *CatalogTemplateInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *CatalogTemplateInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.CatalogTemplateList, error) { + if mock.ListNamespacedFunc == nil { + panic("CatalogTemplateInterfaceMock.ListNamespacedFunc: method is nil but CatalogTemplateInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockCatalogTemplateInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockCatalogTemplateInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedCatalogTemplateInterface.ListNamespacedCalls()) +func (mock *CatalogTemplateInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockCatalogTemplateInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockCatalogTemplateInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *CatalogTemplateInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_catalog_template_version_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_catalog_template_version_mock.go index b01a1b71..cf3d52d2 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_catalog_template_version_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_catalog_template_version_mock.go @@ -674,6 +674,7 @@ var ( lockCatalogTemplateVersionInterfaceMockGet sync.RWMutex lockCatalogTemplateVersionInterfaceMockGetNamespaced sync.RWMutex lockCatalogTemplateVersionInterfaceMockList sync.RWMutex + lockCatalogTemplateVersionInterfaceMockListNamespaced sync.RWMutex lockCatalogTemplateVersionInterfaceMockObjectClient sync.RWMutex lockCatalogTemplateVersionInterfaceMockUpdate sync.RWMutex lockCatalogTemplateVersionInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.CatalogTemplateVersionInterface = &CatalogTemplateVersionInterfaceMock{ // ListFunc: func(opts v1.ListOptions) (*v3.CatalogTemplateVersionList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.CatalogTemplateVersionList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type CatalogTemplateVersionInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.CatalogTemplateVersionList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.CatalogTemplateVersionList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type CatalogTemplateVersionInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *CatalogTemplateVersionInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *CatalogTemplateVersionInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.CatalogTemplateVersionList, error) { + if mock.ListNamespacedFunc == nil { + panic("CatalogTemplateVersionInterfaceMock.ListNamespacedFunc: method is nil but CatalogTemplateVersionInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockCatalogTemplateVersionInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockCatalogTemplateVersionInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedCatalogTemplateVersionInterface.ListNamespacedCalls()) +func (mock *CatalogTemplateVersionInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockCatalogTemplateVersionInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockCatalogTemplateVersionInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *CatalogTemplateVersionInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cloud_credential_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cloud_credential_mock.go index 329d5165..07e5f223 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cloud_credential_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cloud_credential_mock.go @@ -674,6 +674,7 @@ var ( lockCloudCredentialInterfaceMockGet sync.RWMutex lockCloudCredentialInterfaceMockGetNamespaced sync.RWMutex lockCloudCredentialInterfaceMockList sync.RWMutex + lockCloudCredentialInterfaceMockListNamespaced sync.RWMutex lockCloudCredentialInterfaceMockObjectClient sync.RWMutex lockCloudCredentialInterfaceMockUpdate sync.RWMutex lockCloudCredentialInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.CloudCredentialInterface = &CloudCredentialInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.CloudCredentialList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.CloudCredentialList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type CloudCredentialInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.CloudCredentialList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.CloudCredentialList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type CloudCredentialInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *CloudCredentialInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *CloudCredentialInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.CloudCredentialList, error) { + if mock.ListNamespacedFunc == nil { + panic("CloudCredentialInterfaceMock.ListNamespacedFunc: method is nil but CloudCredentialInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockCloudCredentialInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockCloudCredentialInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedCloudCredentialInterface.ListNamespacedCalls()) +func (mock *CloudCredentialInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockCloudCredentialInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockCloudCredentialInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *CloudCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_group_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_group_mock.go index 0db7ec18..069942f5 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_group_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_group_mock.go @@ -674,6 +674,7 @@ var ( lockClusterAlertGroupInterfaceMockGet sync.RWMutex lockClusterAlertGroupInterfaceMockGetNamespaced sync.RWMutex lockClusterAlertGroupInterfaceMockList sync.RWMutex + lockClusterAlertGroupInterfaceMockListNamespaced sync.RWMutex lockClusterAlertGroupInterfaceMockObjectClient sync.RWMutex lockClusterAlertGroupInterfaceMockUpdate sync.RWMutex lockClusterAlertGroupInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterAlertGroupInterface = &ClusterAlertGroupInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterAlertGroupList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterAlertGroupList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterAlertGroupInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterAlertGroupList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterAlertGroupList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterAlertGroupInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterAlertGroupInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterAlertGroupInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterAlertGroupList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterAlertGroupInterfaceMock.ListNamespacedFunc: method is nil but ClusterAlertGroupInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterAlertGroupInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterAlertGroupInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterAlertGroupInterface.ListNamespacedCalls()) +func (mock *ClusterAlertGroupInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterAlertGroupInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterAlertGroupInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterAlertGroupInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_mock.go index c554156f..9de9b25b 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_mock.go @@ -674,6 +674,7 @@ var ( lockClusterAlertInterfaceMockGet sync.RWMutex lockClusterAlertInterfaceMockGetNamespaced sync.RWMutex lockClusterAlertInterfaceMockList sync.RWMutex + lockClusterAlertInterfaceMockListNamespaced sync.RWMutex lockClusterAlertInterfaceMockObjectClient sync.RWMutex lockClusterAlertInterfaceMockUpdate sync.RWMutex lockClusterAlertInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterAlertInterface = &ClusterAlertInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterAlertList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterAlertList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterAlertInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterAlertList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterAlertList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterAlertInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterAlertInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterAlertInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterAlertList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterAlertInterfaceMock.ListNamespacedFunc: method is nil but ClusterAlertInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterAlertInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterAlertInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterAlertInterface.ListNamespacedCalls()) +func (mock *ClusterAlertInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterAlertInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterAlertInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterAlertInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_rule_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_rule_mock.go index 892a8c81..0d4a3152 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_rule_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_alert_rule_mock.go @@ -674,6 +674,7 @@ var ( lockClusterAlertRuleInterfaceMockGet sync.RWMutex lockClusterAlertRuleInterfaceMockGetNamespaced sync.RWMutex lockClusterAlertRuleInterfaceMockList sync.RWMutex + lockClusterAlertRuleInterfaceMockListNamespaced sync.RWMutex lockClusterAlertRuleInterfaceMockObjectClient sync.RWMutex lockClusterAlertRuleInterfaceMockUpdate sync.RWMutex lockClusterAlertRuleInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterAlertRuleInterface = &ClusterAlertRuleInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterAlertRuleList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterAlertRuleList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterAlertRuleInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterAlertRuleList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterAlertRuleList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterAlertRuleInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterAlertRuleInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterAlertRuleInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterAlertRuleList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterAlertRuleInterfaceMock.ListNamespacedFunc: method is nil but ClusterAlertRuleInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterAlertRuleInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterAlertRuleInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterAlertRuleInterface.ListNamespacedCalls()) +func (mock *ClusterAlertRuleInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterAlertRuleInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterAlertRuleInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterAlertRuleInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_catalog_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_catalog_mock.go index f8134c10..41666ed5 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_catalog_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_catalog_mock.go @@ -674,6 +674,7 @@ var ( lockClusterCatalogInterfaceMockGet sync.RWMutex lockClusterCatalogInterfaceMockGetNamespaced sync.RWMutex lockClusterCatalogInterfaceMockList sync.RWMutex + lockClusterCatalogInterfaceMockListNamespaced sync.RWMutex lockClusterCatalogInterfaceMockObjectClient sync.RWMutex lockClusterCatalogInterfaceMockUpdate sync.RWMutex lockClusterCatalogInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterCatalogInterface = &ClusterCatalogInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterCatalogList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterCatalogList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterCatalogInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterCatalogList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterCatalogList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterCatalogInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterCatalogInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterCatalogInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterCatalogList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterCatalogInterfaceMock.ListNamespacedFunc: method is nil but ClusterCatalogInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterCatalogInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterCatalogInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterCatalogInterface.ListNamespacedCalls()) +func (mock *ClusterCatalogInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterCatalogInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterCatalogInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterCatalogInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_logging_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_logging_mock.go index 06f87f0f..a4a0f6b3 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_logging_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_logging_mock.go @@ -674,6 +674,7 @@ var ( lockClusterLoggingInterfaceMockGet sync.RWMutex lockClusterLoggingInterfaceMockGetNamespaced sync.RWMutex lockClusterLoggingInterfaceMockList sync.RWMutex + lockClusterLoggingInterfaceMockListNamespaced sync.RWMutex lockClusterLoggingInterfaceMockObjectClient sync.RWMutex lockClusterLoggingInterfaceMockUpdate sync.RWMutex lockClusterLoggingInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterLoggingInterface = &ClusterLoggingInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterLoggingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterLoggingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterLoggingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterLoggingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterLoggingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterLoggingInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterLoggingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterLoggingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterLoggingList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterLoggingInterfaceMock.ListNamespacedFunc: method is nil but ClusterLoggingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterLoggingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterLoggingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterLoggingInterface.ListNamespacedCalls()) +func (mock *ClusterLoggingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterLoggingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterLoggingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterLoggingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_mock.go index b6bfdcee..dd3a8fe8 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_mock.go @@ -674,6 +674,7 @@ var ( lockClusterInterfaceMockGet sync.RWMutex lockClusterInterfaceMockGetNamespaced sync.RWMutex lockClusterInterfaceMockList sync.RWMutex + lockClusterInterfaceMockListNamespaced sync.RWMutex lockClusterInterfaceMockObjectClient sync.RWMutex lockClusterInterfaceMockUpdate sync.RWMutex lockClusterInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterInterface = &ClusterInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterInterfaceMock.ListNamespacedFunc: method is nil but ClusterInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterInterface.ListNamespacedCalls()) +func (mock *ClusterInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_monitor_graph_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_monitor_graph_mock.go index b5663a52..3f9e2548 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_monitor_graph_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_monitor_graph_mock.go @@ -674,6 +674,7 @@ var ( lockClusterMonitorGraphInterfaceMockGet sync.RWMutex lockClusterMonitorGraphInterfaceMockGetNamespaced sync.RWMutex lockClusterMonitorGraphInterfaceMockList sync.RWMutex + lockClusterMonitorGraphInterfaceMockListNamespaced sync.RWMutex lockClusterMonitorGraphInterfaceMockObjectClient sync.RWMutex lockClusterMonitorGraphInterfaceMockUpdate sync.RWMutex lockClusterMonitorGraphInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterMonitorGraphInterface = &ClusterMonitorGraphInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterMonitorGraphList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterMonitorGraphList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterMonitorGraphInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterMonitorGraphList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterMonitorGraphList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterMonitorGraphInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterMonitorGraphInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterMonitorGraphInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterMonitorGraphList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterMonitorGraphInterfaceMock.ListNamespacedFunc: method is nil but ClusterMonitorGraphInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterMonitorGraphInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterMonitorGraphInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterMonitorGraphInterface.ListNamespacedCalls()) +func (mock *ClusterMonitorGraphInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterMonitorGraphInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterMonitorGraphInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterMonitorGraphInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_registration_token_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_registration_token_mock.go index ca9d0b16..ea46155d 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_registration_token_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_registration_token_mock.go @@ -674,6 +674,7 @@ var ( lockClusterRegistrationTokenInterfaceMockGet sync.RWMutex lockClusterRegistrationTokenInterfaceMockGetNamespaced sync.RWMutex lockClusterRegistrationTokenInterfaceMockList sync.RWMutex + lockClusterRegistrationTokenInterfaceMockListNamespaced sync.RWMutex lockClusterRegistrationTokenInterfaceMockObjectClient sync.RWMutex lockClusterRegistrationTokenInterfaceMockUpdate sync.RWMutex lockClusterRegistrationTokenInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterRegistrationTokenInterface = &ClusterRegistrationTokenInterfaceM // ListFunc: func(opts v1.ListOptions) (*v3.ClusterRegistrationTokenList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterRegistrationTokenList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterRegistrationTokenInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterRegistrationTokenList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterRegistrationTokenList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterRegistrationTokenInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterRegistrationTokenInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterRegistrationTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterRegistrationTokenList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterRegistrationTokenInterfaceMock.ListNamespacedFunc: method is nil but ClusterRegistrationTokenInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterRegistrationTokenInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterRegistrationTokenInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterRegistrationTokenInterface.ListNamespacedCalls()) +func (mock *ClusterRegistrationTokenInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterRegistrationTokenInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterRegistrationTokenInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterRegistrationTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_role_template_binding_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_role_template_binding_mock.go index e05b2c1b..a36537d3 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_role_template_binding_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_role_template_binding_mock.go @@ -674,6 +674,7 @@ var ( lockClusterRoleTemplateBindingInterfaceMockGet sync.RWMutex lockClusterRoleTemplateBindingInterfaceMockGetNamespaced sync.RWMutex lockClusterRoleTemplateBindingInterfaceMockList sync.RWMutex + lockClusterRoleTemplateBindingInterfaceMockListNamespaced sync.RWMutex lockClusterRoleTemplateBindingInterfaceMockObjectClient sync.RWMutex lockClusterRoleTemplateBindingInterfaceMockUpdate sync.RWMutex lockClusterRoleTemplateBindingInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterRoleTemplateBindingInterface = &ClusterRoleTemplateBindingInterf // ListFunc: func(opts v1.ListOptions) (*v3.ClusterRoleTemplateBindingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterRoleTemplateBindingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterRoleTemplateBindingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterRoleTemplateBindingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterRoleTemplateBindingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterRoleTemplateBindingInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterRoleTemplateBindingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterRoleTemplateBindingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterRoleTemplateBindingList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterRoleTemplateBindingInterfaceMock.ListNamespacedFunc: method is nil but ClusterRoleTemplateBindingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterRoleTemplateBindingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterRoleTemplateBindingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterRoleTemplateBindingInterface.ListNamespacedCalls()) +func (mock *ClusterRoleTemplateBindingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterRoleTemplateBindingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterRoleTemplateBindingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterRoleTemplateBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_scan_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_scan_mock.go index 54bad455..daf50521 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_scan_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_scan_mock.go @@ -674,6 +674,7 @@ var ( lockClusterScanInterfaceMockGet sync.RWMutex lockClusterScanInterfaceMockGetNamespaced sync.RWMutex lockClusterScanInterfaceMockList sync.RWMutex + lockClusterScanInterfaceMockListNamespaced sync.RWMutex lockClusterScanInterfaceMockObjectClient sync.RWMutex lockClusterScanInterfaceMockUpdate sync.RWMutex lockClusterScanInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterScanInterface = &ClusterScanInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterScanList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterScanList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterScanInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterScanList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterScanList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterScanInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterScanInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterScanInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterScanList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterScanInterfaceMock.ListNamespacedFunc: method is nil but ClusterScanInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterScanInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterScanInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterScanInterface.ListNamespacedCalls()) +func (mock *ClusterScanInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterScanInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterScanInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterScanInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_template_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_template_mock.go index a85d0708..5f597db1 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_template_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_template_mock.go @@ -674,6 +674,7 @@ var ( lockClusterTemplateInterfaceMockGet sync.RWMutex lockClusterTemplateInterfaceMockGetNamespaced sync.RWMutex lockClusterTemplateInterfaceMockList sync.RWMutex + lockClusterTemplateInterfaceMockListNamespaced sync.RWMutex lockClusterTemplateInterfaceMockObjectClient sync.RWMutex lockClusterTemplateInterfaceMockUpdate sync.RWMutex lockClusterTemplateInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterTemplateInterface = &ClusterTemplateInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ClusterTemplateList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterTemplateList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterTemplateInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterTemplateList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterTemplateList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterTemplateInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterTemplateInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterTemplateInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterTemplateList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterTemplateInterfaceMock.ListNamespacedFunc: method is nil but ClusterTemplateInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterTemplateInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterTemplateInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterTemplateInterface.ListNamespacedCalls()) +func (mock *ClusterTemplateInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterTemplateInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterTemplateInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterTemplateInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_template_revision_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_template_revision_mock.go index c3c5b4b8..1f5d78b6 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_cluster_template_revision_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_cluster_template_revision_mock.go @@ -674,6 +674,7 @@ var ( lockClusterTemplateRevisionInterfaceMockGet sync.RWMutex lockClusterTemplateRevisionInterfaceMockGetNamespaced sync.RWMutex lockClusterTemplateRevisionInterfaceMockList sync.RWMutex + lockClusterTemplateRevisionInterfaceMockListNamespaced sync.RWMutex lockClusterTemplateRevisionInterfaceMockObjectClient sync.RWMutex lockClusterTemplateRevisionInterfaceMockUpdate sync.RWMutex lockClusterTemplateRevisionInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ClusterTemplateRevisionInterface = &ClusterTemplateRevisionInterfaceMoc // ListFunc: func(opts v1.ListOptions) (*v3.ClusterTemplateRevisionList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterTemplateRevisionList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ClusterTemplateRevisionInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterTemplateRevisionList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterTemplateRevisionList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ClusterTemplateRevisionInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ClusterTemplateRevisionInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterTemplateRevisionInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterTemplateRevisionList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterTemplateRevisionInterfaceMock.ListNamespacedFunc: method is nil but ClusterTemplateRevisionInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterTemplateRevisionInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterTemplateRevisionInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterTemplateRevisionInterface.ListNamespacedCalls()) +func (mock *ClusterTemplateRevisionInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockClusterTemplateRevisionInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterTemplateRevisionInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterTemplateRevisionInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_compose_config_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_compose_config_mock.go index 71f74b4d..2bb524d8 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_compose_config_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_compose_config_mock.go @@ -674,6 +674,7 @@ var ( lockComposeConfigInterfaceMockGet sync.RWMutex lockComposeConfigInterfaceMockGetNamespaced sync.RWMutex lockComposeConfigInterfaceMockList sync.RWMutex + lockComposeConfigInterfaceMockListNamespaced sync.RWMutex lockComposeConfigInterfaceMockObjectClient sync.RWMutex lockComposeConfigInterfaceMockUpdate sync.RWMutex lockComposeConfigInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ComposeConfigInterface = &ComposeConfigInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ComposeConfigList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ComposeConfigList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ComposeConfigInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ComposeConfigList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ComposeConfigList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ComposeConfigInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ComposeConfigInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ComposeConfigInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ComposeConfigList, error) { + if mock.ListNamespacedFunc == nil { + panic("ComposeConfigInterfaceMock.ListNamespacedFunc: method is nil but ComposeConfigInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockComposeConfigInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockComposeConfigInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedComposeConfigInterface.ListNamespacedCalls()) +func (mock *ComposeConfigInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockComposeConfigInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockComposeConfigInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ComposeConfigInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_dynamic_schema_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_dynamic_schema_mock.go index 3b7958c8..2b2a9158 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_dynamic_schema_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_dynamic_schema_mock.go @@ -674,6 +674,7 @@ var ( lockDynamicSchemaInterfaceMockGet sync.RWMutex lockDynamicSchemaInterfaceMockGetNamespaced sync.RWMutex lockDynamicSchemaInterfaceMockList sync.RWMutex + lockDynamicSchemaInterfaceMockListNamespaced sync.RWMutex lockDynamicSchemaInterfaceMockObjectClient sync.RWMutex lockDynamicSchemaInterfaceMockUpdate sync.RWMutex lockDynamicSchemaInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.DynamicSchemaInterface = &DynamicSchemaInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.DynamicSchemaList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.DynamicSchemaList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type DynamicSchemaInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.DynamicSchemaList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.DynamicSchemaList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type DynamicSchemaInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *DynamicSchemaInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *DynamicSchemaInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.DynamicSchemaList, error) { + if mock.ListNamespacedFunc == nil { + panic("DynamicSchemaInterfaceMock.ListNamespacedFunc: method is nil but DynamicSchemaInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockDynamicSchemaInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockDynamicSchemaInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedDynamicSchemaInterface.ListNamespacedCalls()) +func (mock *DynamicSchemaInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockDynamicSchemaInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockDynamicSchemaInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *DynamicSchemaInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_etcd_backup_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_etcd_backup_mock.go index 8d8a9945..6a9752fb 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_etcd_backup_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_etcd_backup_mock.go @@ -674,6 +674,7 @@ var ( lockEtcdBackupInterfaceMockGet sync.RWMutex lockEtcdBackupInterfaceMockGetNamespaced sync.RWMutex lockEtcdBackupInterfaceMockList sync.RWMutex + lockEtcdBackupInterfaceMockListNamespaced sync.RWMutex lockEtcdBackupInterfaceMockObjectClient sync.RWMutex lockEtcdBackupInterfaceMockUpdate sync.RWMutex lockEtcdBackupInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.EtcdBackupInterface = &EtcdBackupInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.EtcdBackupList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.EtcdBackupList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type EtcdBackupInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.EtcdBackupList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.EtcdBackupList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type EtcdBackupInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *EtcdBackupInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *EtcdBackupInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.EtcdBackupList, error) { + if mock.ListNamespacedFunc == nil { + panic("EtcdBackupInterfaceMock.ListNamespacedFunc: method is nil but EtcdBackupInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockEtcdBackupInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockEtcdBackupInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedEtcdBackupInterface.ListNamespacedCalls()) +func (mock *EtcdBackupInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockEtcdBackupInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockEtcdBackupInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *EtcdBackupInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_feature_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_feature_mock.go index 6e01d8d4..02f579d8 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_feature_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_feature_mock.go @@ -674,6 +674,7 @@ var ( lockFeatureInterfaceMockGet sync.RWMutex lockFeatureInterfaceMockGetNamespaced sync.RWMutex lockFeatureInterfaceMockList sync.RWMutex + lockFeatureInterfaceMockListNamespaced sync.RWMutex lockFeatureInterfaceMockObjectClient sync.RWMutex lockFeatureInterfaceMockUpdate sync.RWMutex lockFeatureInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.FeatureInterface = &FeatureInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.FeatureList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.FeatureList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type FeatureInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.FeatureList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.FeatureList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type FeatureInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *FeatureInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *FeatureInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.FeatureList, error) { + if mock.ListNamespacedFunc == nil { + panic("FeatureInterfaceMock.ListNamespacedFunc: method is nil but FeatureInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockFeatureInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockFeatureInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedFeatureInterface.ListNamespacedCalls()) +func (mock *FeatureInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockFeatureInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockFeatureInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *FeatureInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_global_dns_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_global_dns_mock.go index a05c68d4..b268e551 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_global_dns_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_global_dns_mock.go @@ -674,6 +674,7 @@ var ( lockGlobalDNSInterfaceMockGet sync.RWMutex lockGlobalDNSInterfaceMockGetNamespaced sync.RWMutex lockGlobalDNSInterfaceMockList sync.RWMutex + lockGlobalDNSInterfaceMockListNamespaced sync.RWMutex lockGlobalDNSInterfaceMockObjectClient sync.RWMutex lockGlobalDNSInterfaceMockUpdate sync.RWMutex lockGlobalDNSInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.GlobalDNSInterface = &GlobalDNSInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.GlobalDNSList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.GlobalDNSList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type GlobalDNSInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.GlobalDNSList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.GlobalDNSList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type GlobalDNSInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *GlobalDNSInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *GlobalDNSInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.GlobalDNSList, error) { + if mock.ListNamespacedFunc == nil { + panic("GlobalDNSInterfaceMock.ListNamespacedFunc: method is nil but GlobalDNSInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockGlobalDNSInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockGlobalDNSInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedGlobalDNSInterface.ListNamespacedCalls()) +func (mock *GlobalDNSInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockGlobalDNSInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockGlobalDNSInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *GlobalDNSInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_global_dns_provider_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_global_dns_provider_mock.go index c43a3e6c..fa257896 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_global_dns_provider_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_global_dns_provider_mock.go @@ -674,6 +674,7 @@ var ( lockGlobalDNSProviderInterfaceMockGet sync.RWMutex lockGlobalDNSProviderInterfaceMockGetNamespaced sync.RWMutex lockGlobalDNSProviderInterfaceMockList sync.RWMutex + lockGlobalDNSProviderInterfaceMockListNamespaced sync.RWMutex lockGlobalDNSProviderInterfaceMockObjectClient sync.RWMutex lockGlobalDNSProviderInterfaceMockUpdate sync.RWMutex lockGlobalDNSProviderInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.GlobalDNSProviderInterface = &GlobalDNSProviderInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.GlobalDNSProviderList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.GlobalDNSProviderList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type GlobalDNSProviderInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.GlobalDNSProviderList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.GlobalDNSProviderList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type GlobalDNSProviderInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *GlobalDNSProviderInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *GlobalDNSProviderInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.GlobalDNSProviderList, error) { + if mock.ListNamespacedFunc == nil { + panic("GlobalDNSProviderInterfaceMock.ListNamespacedFunc: method is nil but GlobalDNSProviderInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockGlobalDNSProviderInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockGlobalDNSProviderInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedGlobalDNSProviderInterface.ListNamespacedCalls()) +func (mock *GlobalDNSProviderInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockGlobalDNSProviderInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockGlobalDNSProviderInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *GlobalDNSProviderInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_global_role_binding_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_global_role_binding_mock.go index 2f35fb06..540a8608 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_global_role_binding_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_global_role_binding_mock.go @@ -674,6 +674,7 @@ var ( lockGlobalRoleBindingInterfaceMockGet sync.RWMutex lockGlobalRoleBindingInterfaceMockGetNamespaced sync.RWMutex lockGlobalRoleBindingInterfaceMockList sync.RWMutex + lockGlobalRoleBindingInterfaceMockListNamespaced sync.RWMutex lockGlobalRoleBindingInterfaceMockObjectClient sync.RWMutex lockGlobalRoleBindingInterfaceMockUpdate sync.RWMutex lockGlobalRoleBindingInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.GlobalRoleBindingInterface = &GlobalRoleBindingInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.GlobalRoleBindingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.GlobalRoleBindingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type GlobalRoleBindingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.GlobalRoleBindingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.GlobalRoleBindingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type GlobalRoleBindingInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *GlobalRoleBindingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *GlobalRoleBindingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.GlobalRoleBindingList, error) { + if mock.ListNamespacedFunc == nil { + panic("GlobalRoleBindingInterfaceMock.ListNamespacedFunc: method is nil but GlobalRoleBindingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockGlobalRoleBindingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockGlobalRoleBindingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedGlobalRoleBindingInterface.ListNamespacedCalls()) +func (mock *GlobalRoleBindingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockGlobalRoleBindingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockGlobalRoleBindingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *GlobalRoleBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_global_role_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_global_role_mock.go index a6fbbe66..21f54228 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_global_role_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_global_role_mock.go @@ -674,6 +674,7 @@ var ( lockGlobalRoleInterfaceMockGet sync.RWMutex lockGlobalRoleInterfaceMockGetNamespaced sync.RWMutex lockGlobalRoleInterfaceMockList sync.RWMutex + lockGlobalRoleInterfaceMockListNamespaced sync.RWMutex lockGlobalRoleInterfaceMockObjectClient sync.RWMutex lockGlobalRoleInterfaceMockUpdate sync.RWMutex lockGlobalRoleInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.GlobalRoleInterface = &GlobalRoleInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.GlobalRoleList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.GlobalRoleList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type GlobalRoleInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.GlobalRoleList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.GlobalRoleList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type GlobalRoleInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *GlobalRoleInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *GlobalRoleInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.GlobalRoleList, error) { + if mock.ListNamespacedFunc == nil { + panic("GlobalRoleInterfaceMock.ListNamespacedFunc: method is nil but GlobalRoleInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockGlobalRoleInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockGlobalRoleInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedGlobalRoleInterface.ListNamespacedCalls()) +func (mock *GlobalRoleInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockGlobalRoleInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockGlobalRoleInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *GlobalRoleInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_group_member_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_group_member_mock.go index 63253800..b71eebec 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_group_member_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_group_member_mock.go @@ -674,6 +674,7 @@ var ( lockGroupMemberInterfaceMockGet sync.RWMutex lockGroupMemberInterfaceMockGetNamespaced sync.RWMutex lockGroupMemberInterfaceMockList sync.RWMutex + lockGroupMemberInterfaceMockListNamespaced sync.RWMutex lockGroupMemberInterfaceMockObjectClient sync.RWMutex lockGroupMemberInterfaceMockUpdate sync.RWMutex lockGroupMemberInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.GroupMemberInterface = &GroupMemberInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.GroupMemberList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.GroupMemberList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type GroupMemberInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.GroupMemberList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.GroupMemberList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type GroupMemberInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *GroupMemberInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *GroupMemberInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.GroupMemberList, error) { + if mock.ListNamespacedFunc == nil { + panic("GroupMemberInterfaceMock.ListNamespacedFunc: method is nil but GroupMemberInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockGroupMemberInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockGroupMemberInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedGroupMemberInterface.ListNamespacedCalls()) +func (mock *GroupMemberInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockGroupMemberInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockGroupMemberInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *GroupMemberInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_group_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_group_mock.go index 3f11108c..51f4cc95 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_group_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_group_mock.go @@ -674,6 +674,7 @@ var ( lockGroupInterfaceMockGet sync.RWMutex lockGroupInterfaceMockGetNamespaced sync.RWMutex lockGroupInterfaceMockList sync.RWMutex + lockGroupInterfaceMockListNamespaced sync.RWMutex lockGroupInterfaceMockObjectClient sync.RWMutex lockGroupInterfaceMockUpdate sync.RWMutex lockGroupInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.GroupInterface = &GroupInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.GroupList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.GroupList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type GroupInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.GroupList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.GroupList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type GroupInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *GroupInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *GroupInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.GroupList, error) { + if mock.ListNamespacedFunc == nil { + panic("GroupInterfaceMock.ListNamespacedFunc: method is nil but GroupInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockGroupInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockGroupInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedGroupInterface.ListNamespacedCalls()) +func (mock *GroupInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockGroupInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockGroupInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *GroupInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_kontainer_driver_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_kontainer_driver_mock.go index 6bfedadc..b8a84699 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_kontainer_driver_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_kontainer_driver_mock.go @@ -674,6 +674,7 @@ var ( lockKontainerDriverInterfaceMockGet sync.RWMutex lockKontainerDriverInterfaceMockGetNamespaced sync.RWMutex lockKontainerDriverInterfaceMockList sync.RWMutex + lockKontainerDriverInterfaceMockListNamespaced sync.RWMutex lockKontainerDriverInterfaceMockObjectClient sync.RWMutex lockKontainerDriverInterfaceMockUpdate sync.RWMutex lockKontainerDriverInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.KontainerDriverInterface = &KontainerDriverInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.KontainerDriverList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.KontainerDriverList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type KontainerDriverInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.KontainerDriverList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.KontainerDriverList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type KontainerDriverInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *KontainerDriverInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *KontainerDriverInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.KontainerDriverList, error) { + if mock.ListNamespacedFunc == nil { + panic("KontainerDriverInterfaceMock.ListNamespacedFunc: method is nil but KontainerDriverInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockKontainerDriverInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockKontainerDriverInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedKontainerDriverInterface.ListNamespacedCalls()) +func (mock *KontainerDriverInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockKontainerDriverInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockKontainerDriverInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *KontainerDriverInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_ldap_config_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_ldap_config_mock.go index 8ab09977..a31d2077 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_ldap_config_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_ldap_config_mock.go @@ -674,6 +674,7 @@ var ( lockLdapConfigInterfaceMockGet sync.RWMutex lockLdapConfigInterfaceMockGetNamespaced sync.RWMutex lockLdapConfigInterfaceMockList sync.RWMutex + lockLdapConfigInterfaceMockListNamespaced sync.RWMutex lockLdapConfigInterfaceMockObjectClient sync.RWMutex lockLdapConfigInterfaceMockUpdate sync.RWMutex lockLdapConfigInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.LdapConfigInterface = &LdapConfigInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.LdapConfigList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.LdapConfigList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type LdapConfigInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.LdapConfigList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.LdapConfigList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type LdapConfigInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *LdapConfigInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *LdapConfigInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.LdapConfigList, error) { + if mock.ListNamespacedFunc == nil { + panic("LdapConfigInterfaceMock.ListNamespacedFunc: method is nil but LdapConfigInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockLdapConfigInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockLdapConfigInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedLdapConfigInterface.ListNamespacedCalls()) +func (mock *LdapConfigInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockLdapConfigInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockLdapConfigInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *LdapConfigInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_listen_config_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_listen_config_mock.go index 3ea247f1..70c874d5 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_listen_config_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_listen_config_mock.go @@ -674,6 +674,7 @@ var ( lockListenConfigInterfaceMockGet sync.RWMutex lockListenConfigInterfaceMockGetNamespaced sync.RWMutex lockListenConfigInterfaceMockList sync.RWMutex + lockListenConfigInterfaceMockListNamespaced sync.RWMutex lockListenConfigInterfaceMockObjectClient sync.RWMutex lockListenConfigInterfaceMockUpdate sync.RWMutex lockListenConfigInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ListenConfigInterface = &ListenConfigInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ListenConfigList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ListenConfigList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ListenConfigInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ListenConfigList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ListenConfigList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ListenConfigInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ListenConfigInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ListenConfigInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ListenConfigList, error) { + if mock.ListNamespacedFunc == nil { + panic("ListenConfigInterfaceMock.ListNamespacedFunc: method is nil but ListenConfigInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockListenConfigInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockListenConfigInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedListenConfigInterface.ListNamespacedCalls()) +func (mock *ListenConfigInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockListenConfigInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockListenConfigInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ListenConfigInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_monitor_metric_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_monitor_metric_mock.go index b9ab0605..f028b35d 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_monitor_metric_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_monitor_metric_mock.go @@ -674,6 +674,7 @@ var ( lockMonitorMetricInterfaceMockGet sync.RWMutex lockMonitorMetricInterfaceMockGetNamespaced sync.RWMutex lockMonitorMetricInterfaceMockList sync.RWMutex + lockMonitorMetricInterfaceMockListNamespaced sync.RWMutex lockMonitorMetricInterfaceMockObjectClient sync.RWMutex lockMonitorMetricInterfaceMockUpdate sync.RWMutex lockMonitorMetricInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.MonitorMetricInterface = &MonitorMetricInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.MonitorMetricList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.MonitorMetricList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type MonitorMetricInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.MonitorMetricList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.MonitorMetricList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type MonitorMetricInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *MonitorMetricInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *MonitorMetricInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.MonitorMetricList, error) { + if mock.ListNamespacedFunc == nil { + panic("MonitorMetricInterfaceMock.ListNamespacedFunc: method is nil but MonitorMetricInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockMonitorMetricInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockMonitorMetricInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedMonitorMetricInterface.ListNamespacedCalls()) +func (mock *MonitorMetricInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockMonitorMetricInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockMonitorMetricInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *MonitorMetricInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_multi_cluster_app_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_multi_cluster_app_mock.go index 763f48d8..41a52964 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_multi_cluster_app_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_multi_cluster_app_mock.go @@ -674,6 +674,7 @@ var ( lockMultiClusterAppInterfaceMockGet sync.RWMutex lockMultiClusterAppInterfaceMockGetNamespaced sync.RWMutex lockMultiClusterAppInterfaceMockList sync.RWMutex + lockMultiClusterAppInterfaceMockListNamespaced sync.RWMutex lockMultiClusterAppInterfaceMockObjectClient sync.RWMutex lockMultiClusterAppInterfaceMockUpdate sync.RWMutex lockMultiClusterAppInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.MultiClusterAppInterface = &MultiClusterAppInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.MultiClusterAppList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.MultiClusterAppList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type MultiClusterAppInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.MultiClusterAppList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.MultiClusterAppList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type MultiClusterAppInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *MultiClusterAppInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *MultiClusterAppInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.MultiClusterAppList, error) { + if mock.ListNamespacedFunc == nil { + panic("MultiClusterAppInterfaceMock.ListNamespacedFunc: method is nil but MultiClusterAppInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockMultiClusterAppInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockMultiClusterAppInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedMultiClusterAppInterface.ListNamespacedCalls()) +func (mock *MultiClusterAppInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockMultiClusterAppInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockMultiClusterAppInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *MultiClusterAppInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_multi_cluster_app_revision_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_multi_cluster_app_revision_mock.go index b0bef376..5f2074fc 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_multi_cluster_app_revision_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_multi_cluster_app_revision_mock.go @@ -674,6 +674,7 @@ var ( lockMultiClusterAppRevisionInterfaceMockGet sync.RWMutex lockMultiClusterAppRevisionInterfaceMockGetNamespaced sync.RWMutex lockMultiClusterAppRevisionInterfaceMockList sync.RWMutex + lockMultiClusterAppRevisionInterfaceMockListNamespaced sync.RWMutex lockMultiClusterAppRevisionInterfaceMockObjectClient sync.RWMutex lockMultiClusterAppRevisionInterfaceMockUpdate sync.RWMutex lockMultiClusterAppRevisionInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.MultiClusterAppRevisionInterface = &MultiClusterAppRevisionInterfaceMoc // ListFunc: func(opts v1.ListOptions) (*v3.MultiClusterAppRevisionList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.MultiClusterAppRevisionList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type MultiClusterAppRevisionInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.MultiClusterAppRevisionList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.MultiClusterAppRevisionList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type MultiClusterAppRevisionInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *MultiClusterAppRevisionInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *MultiClusterAppRevisionInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.MultiClusterAppRevisionList, error) { + if mock.ListNamespacedFunc == nil { + panic("MultiClusterAppRevisionInterfaceMock.ListNamespacedFunc: method is nil but MultiClusterAppRevisionInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockMultiClusterAppRevisionInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockMultiClusterAppRevisionInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedMultiClusterAppRevisionInterface.ListNamespacedCalls()) +func (mock *MultiClusterAppRevisionInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockMultiClusterAppRevisionInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockMultiClusterAppRevisionInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *MultiClusterAppRevisionInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_node_driver_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_node_driver_mock.go index e6688620..050a2881 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_node_driver_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_node_driver_mock.go @@ -674,6 +674,7 @@ var ( lockNodeDriverInterfaceMockGet sync.RWMutex lockNodeDriverInterfaceMockGetNamespaced sync.RWMutex lockNodeDriverInterfaceMockList sync.RWMutex + lockNodeDriverInterfaceMockListNamespaced sync.RWMutex lockNodeDriverInterfaceMockObjectClient sync.RWMutex lockNodeDriverInterfaceMockUpdate sync.RWMutex lockNodeDriverInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NodeDriverInterface = &NodeDriverInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.NodeDriverList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NodeDriverList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NodeDriverInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NodeDriverList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NodeDriverList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NodeDriverInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NodeDriverInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NodeDriverInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NodeDriverList, error) { + if mock.ListNamespacedFunc == nil { + panic("NodeDriverInterfaceMock.ListNamespacedFunc: method is nil but NodeDriverInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNodeDriverInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNodeDriverInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNodeDriverInterface.ListNamespacedCalls()) +func (mock *NodeDriverInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNodeDriverInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNodeDriverInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NodeDriverInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_node_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_node_mock.go index 98c7a5ae..8378891e 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_node_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_node_mock.go @@ -674,6 +674,7 @@ var ( lockNodeInterfaceMockGet sync.RWMutex lockNodeInterfaceMockGetNamespaced sync.RWMutex lockNodeInterfaceMockList sync.RWMutex + lockNodeInterfaceMockListNamespaced sync.RWMutex lockNodeInterfaceMockObjectClient sync.RWMutex lockNodeInterfaceMockUpdate sync.RWMutex lockNodeInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NodeInterface = &NodeInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.NodeList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NodeList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NodeInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NodeList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NodeList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NodeInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NodeInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NodeInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NodeList, error) { + if mock.ListNamespacedFunc == nil { + panic("NodeInterfaceMock.ListNamespacedFunc: method is nil but NodeInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNodeInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNodeInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNodeInterface.ListNamespacedCalls()) +func (mock *NodeInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNodeInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNodeInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NodeInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_node_pool_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_node_pool_mock.go index 82abebc7..f5d2067c 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_node_pool_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_node_pool_mock.go @@ -674,6 +674,7 @@ var ( lockNodePoolInterfaceMockGet sync.RWMutex lockNodePoolInterfaceMockGetNamespaced sync.RWMutex lockNodePoolInterfaceMockList sync.RWMutex + lockNodePoolInterfaceMockListNamespaced sync.RWMutex lockNodePoolInterfaceMockObjectClient sync.RWMutex lockNodePoolInterfaceMockUpdate sync.RWMutex lockNodePoolInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NodePoolInterface = &NodePoolInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.NodePoolList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NodePoolList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NodePoolInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NodePoolList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NodePoolList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NodePoolInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NodePoolInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NodePoolInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NodePoolList, error) { + if mock.ListNamespacedFunc == nil { + panic("NodePoolInterfaceMock.ListNamespacedFunc: method is nil but NodePoolInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNodePoolInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNodePoolInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNodePoolInterface.ListNamespacedCalls()) +func (mock *NodePoolInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNodePoolInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNodePoolInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NodePoolInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_node_template_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_node_template_mock.go index 01695f1a..8e7bf4b2 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_node_template_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_node_template_mock.go @@ -674,6 +674,7 @@ var ( lockNodeTemplateInterfaceMockGet sync.RWMutex lockNodeTemplateInterfaceMockGetNamespaced sync.RWMutex lockNodeTemplateInterfaceMockList sync.RWMutex + lockNodeTemplateInterfaceMockListNamespaced sync.RWMutex lockNodeTemplateInterfaceMockObjectClient sync.RWMutex lockNodeTemplateInterfaceMockUpdate sync.RWMutex lockNodeTemplateInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NodeTemplateInterface = &NodeTemplateInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.NodeTemplateList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NodeTemplateList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NodeTemplateInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NodeTemplateList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NodeTemplateList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NodeTemplateInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NodeTemplateInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NodeTemplateInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NodeTemplateList, error) { + if mock.ListNamespacedFunc == nil { + panic("NodeTemplateInterfaceMock.ListNamespacedFunc: method is nil but NodeTemplateInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNodeTemplateInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNodeTemplateInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNodeTemplateInterface.ListNamespacedCalls()) +func (mock *NodeTemplateInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNodeTemplateInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNodeTemplateInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NodeTemplateInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_notifier_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_notifier_mock.go index 0c5a8edb..ea362013 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_notifier_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_notifier_mock.go @@ -674,6 +674,7 @@ var ( lockNotifierInterfaceMockGet sync.RWMutex lockNotifierInterfaceMockGetNamespaced sync.RWMutex lockNotifierInterfaceMockList sync.RWMutex + lockNotifierInterfaceMockListNamespaced sync.RWMutex lockNotifierInterfaceMockObjectClient sync.RWMutex lockNotifierInterfaceMockUpdate sync.RWMutex lockNotifierInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NotifierInterface = &NotifierInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.NotifierList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NotifierList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NotifierInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NotifierList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NotifierList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NotifierInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NotifierInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NotifierInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NotifierList, error) { + if mock.ListNamespacedFunc == nil { + panic("NotifierInterfaceMock.ListNamespacedFunc: method is nil but NotifierInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNotifierInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNotifierInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNotifierInterface.ListNamespacedCalls()) +func (mock *NotifierInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNotifierInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNotifierInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NotifierInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_mock.go index 2f942cc4..d168d150 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_mock.go @@ -674,6 +674,7 @@ var ( lockPodSecurityPolicyTemplateInterfaceMockGet sync.RWMutex lockPodSecurityPolicyTemplateInterfaceMockGetNamespaced sync.RWMutex lockPodSecurityPolicyTemplateInterfaceMockList sync.RWMutex + lockPodSecurityPolicyTemplateInterfaceMockListNamespaced sync.RWMutex lockPodSecurityPolicyTemplateInterfaceMockObjectClient sync.RWMutex lockPodSecurityPolicyTemplateInterfaceMockUpdate sync.RWMutex lockPodSecurityPolicyTemplateInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.PodSecurityPolicyTemplateInterface = &PodSecurityPolicyTemplateInterfac // ListFunc: func(opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type PodSecurityPolicyTemplateInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type PodSecurityPolicyTemplateInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *PodSecurityPolicyTemplateInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PodSecurityPolicyTemplateInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) { + if mock.ListNamespacedFunc == nil { + panic("PodSecurityPolicyTemplateInterfaceMock.ListNamespacedFunc: method is nil but PodSecurityPolicyTemplateInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPodSecurityPolicyTemplateInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPodSecurityPolicyTemplateInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPodSecurityPolicyTemplateInterface.ListNamespacedCalls()) +func (mock *PodSecurityPolicyTemplateInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockPodSecurityPolicyTemplateInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPodSecurityPolicyTemplateInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PodSecurityPolicyTemplateInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_project_binding_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_project_binding_mock.go index cbb451fb..db7da4de 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_project_binding_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_project_binding_mock.go @@ -674,6 +674,7 @@ var ( lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGet sync.RWMutex lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGetNamespaced sync.RWMutex lockPodSecurityPolicyTemplateProjectBindingInterfaceMockList sync.RWMutex + lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced sync.RWMutex lockPodSecurityPolicyTemplateProjectBindingInterfaceMockObjectClient sync.RWMutex lockPodSecurityPolicyTemplateProjectBindingInterfaceMockUpdate sync.RWMutex lockPodSecurityPolicyTemplateProjectBindingInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.PodSecurityPolicyTemplateProjectBindingInterface = &PodSecurityPolicyTe // ListFunc: func(opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type PodSecurityPolicyTemplateProjectBindingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type PodSecurityPolicyTemplateProjectBindingInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ListCalls() [] return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) { + if mock.ListNamespacedFunc == nil { + panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.ListNamespacedFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPodSecurityPolicyTemplateProjectBindingInterface.ListNamespacedCalls()) +func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_preference_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_preference_mock.go index c689d8f7..4838155f 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_preference_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_preference_mock.go @@ -674,6 +674,7 @@ var ( lockPreferenceInterfaceMockGet sync.RWMutex lockPreferenceInterfaceMockGetNamespaced sync.RWMutex lockPreferenceInterfaceMockList sync.RWMutex + lockPreferenceInterfaceMockListNamespaced sync.RWMutex lockPreferenceInterfaceMockObjectClient sync.RWMutex lockPreferenceInterfaceMockUpdate sync.RWMutex lockPreferenceInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.PreferenceInterface = &PreferenceInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.PreferenceList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.PreferenceList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type PreferenceInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PreferenceList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.PreferenceList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type PreferenceInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *PreferenceInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PreferenceInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.PreferenceList, error) { + if mock.ListNamespacedFunc == nil { + panic("PreferenceInterfaceMock.ListNamespacedFunc: method is nil but PreferenceInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPreferenceInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPreferenceInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPreferenceInterface.ListNamespacedCalls()) +func (mock *PreferenceInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockPreferenceInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPreferenceInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PreferenceInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_principal_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_principal_mock.go index e899cb20..3dddbbe2 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_principal_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_principal_mock.go @@ -674,6 +674,7 @@ var ( lockPrincipalInterfaceMockGet sync.RWMutex lockPrincipalInterfaceMockGetNamespaced sync.RWMutex lockPrincipalInterfaceMockList sync.RWMutex + lockPrincipalInterfaceMockListNamespaced sync.RWMutex lockPrincipalInterfaceMockObjectClient sync.RWMutex lockPrincipalInterfaceMockUpdate sync.RWMutex lockPrincipalInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.PrincipalInterface = &PrincipalInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.PrincipalList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.PrincipalList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type PrincipalInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PrincipalList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.PrincipalList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type PrincipalInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *PrincipalInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PrincipalInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.PrincipalList, error) { + if mock.ListNamespacedFunc == nil { + panic("PrincipalInterfaceMock.ListNamespacedFunc: method is nil but PrincipalInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPrincipalInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPrincipalInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPrincipalInterface.ListNamespacedCalls()) +func (mock *PrincipalInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockPrincipalInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPrincipalInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PrincipalInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_group_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_group_mock.go index ae23feb4..128afb02 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_group_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_group_mock.go @@ -674,6 +674,7 @@ var ( lockProjectAlertGroupInterfaceMockGet sync.RWMutex lockProjectAlertGroupInterfaceMockGetNamespaced sync.RWMutex lockProjectAlertGroupInterfaceMockList sync.RWMutex + lockProjectAlertGroupInterfaceMockListNamespaced sync.RWMutex lockProjectAlertGroupInterfaceMockObjectClient sync.RWMutex lockProjectAlertGroupInterfaceMockUpdate sync.RWMutex lockProjectAlertGroupInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectAlertGroupInterface = &ProjectAlertGroupInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ProjectAlertGroupList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectAlertGroupList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectAlertGroupInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectAlertGroupList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectAlertGroupList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectAlertGroupInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectAlertGroupInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectAlertGroupInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectAlertGroupList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectAlertGroupInterfaceMock.ListNamespacedFunc: method is nil but ProjectAlertGroupInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectAlertGroupInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectAlertGroupInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectAlertGroupInterface.ListNamespacedCalls()) +func (mock *ProjectAlertGroupInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectAlertGroupInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectAlertGroupInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectAlertGroupInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_mock.go index 617b8bcf..a05d1c56 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_mock.go @@ -674,6 +674,7 @@ var ( lockProjectAlertInterfaceMockGet sync.RWMutex lockProjectAlertInterfaceMockGetNamespaced sync.RWMutex lockProjectAlertInterfaceMockList sync.RWMutex + lockProjectAlertInterfaceMockListNamespaced sync.RWMutex lockProjectAlertInterfaceMockObjectClient sync.RWMutex lockProjectAlertInterfaceMockUpdate sync.RWMutex lockProjectAlertInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectAlertInterface = &ProjectAlertInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ProjectAlertList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectAlertList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectAlertInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectAlertList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectAlertList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectAlertInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectAlertInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectAlertInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectAlertList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectAlertInterfaceMock.ListNamespacedFunc: method is nil but ProjectAlertInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectAlertInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectAlertInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectAlertInterface.ListNamespacedCalls()) +func (mock *ProjectAlertInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectAlertInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectAlertInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectAlertInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_rule_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_rule_mock.go index 8ae6c046..aa8dd4b0 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_rule_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_alert_rule_mock.go @@ -674,6 +674,7 @@ var ( lockProjectAlertRuleInterfaceMockGet sync.RWMutex lockProjectAlertRuleInterfaceMockGetNamespaced sync.RWMutex lockProjectAlertRuleInterfaceMockList sync.RWMutex + lockProjectAlertRuleInterfaceMockListNamespaced sync.RWMutex lockProjectAlertRuleInterfaceMockObjectClient sync.RWMutex lockProjectAlertRuleInterfaceMockUpdate sync.RWMutex lockProjectAlertRuleInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectAlertRuleInterface = &ProjectAlertRuleInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ProjectAlertRuleList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectAlertRuleList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectAlertRuleInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectAlertRuleList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectAlertRuleList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectAlertRuleInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectAlertRuleInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectAlertRuleInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectAlertRuleList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectAlertRuleInterfaceMock.ListNamespacedFunc: method is nil but ProjectAlertRuleInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectAlertRuleInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectAlertRuleInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectAlertRuleInterface.ListNamespacedCalls()) +func (mock *ProjectAlertRuleInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectAlertRuleInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectAlertRuleInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectAlertRuleInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_catalog_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_catalog_mock.go index 181ccb98..c6075631 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_catalog_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_catalog_mock.go @@ -674,6 +674,7 @@ var ( lockProjectCatalogInterfaceMockGet sync.RWMutex lockProjectCatalogInterfaceMockGetNamespaced sync.RWMutex lockProjectCatalogInterfaceMockList sync.RWMutex + lockProjectCatalogInterfaceMockListNamespaced sync.RWMutex lockProjectCatalogInterfaceMockObjectClient sync.RWMutex lockProjectCatalogInterfaceMockUpdate sync.RWMutex lockProjectCatalogInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectCatalogInterface = &ProjectCatalogInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ProjectCatalogList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectCatalogList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectCatalogInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectCatalogList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectCatalogList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectCatalogInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectCatalogInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectCatalogInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectCatalogList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectCatalogInterfaceMock.ListNamespacedFunc: method is nil but ProjectCatalogInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectCatalogInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectCatalogInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectCatalogInterface.ListNamespacedCalls()) +func (mock *ProjectCatalogInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectCatalogInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectCatalogInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectCatalogInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_logging_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_logging_mock.go index 1e6b037c..e90eadfd 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_logging_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_logging_mock.go @@ -674,6 +674,7 @@ var ( lockProjectLoggingInterfaceMockGet sync.RWMutex lockProjectLoggingInterfaceMockGetNamespaced sync.RWMutex lockProjectLoggingInterfaceMockList sync.RWMutex + lockProjectLoggingInterfaceMockListNamespaced sync.RWMutex lockProjectLoggingInterfaceMockObjectClient sync.RWMutex lockProjectLoggingInterfaceMockUpdate sync.RWMutex lockProjectLoggingInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectLoggingInterface = &ProjectLoggingInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ProjectLoggingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectLoggingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectLoggingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectLoggingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectLoggingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectLoggingInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectLoggingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectLoggingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectLoggingList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectLoggingInterfaceMock.ListNamespacedFunc: method is nil but ProjectLoggingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectLoggingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectLoggingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectLoggingInterface.ListNamespacedCalls()) +func (mock *ProjectLoggingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectLoggingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectLoggingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectLoggingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_mock.go index 286ab0ca..1aeac181 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_mock.go @@ -674,6 +674,7 @@ var ( lockProjectInterfaceMockGet sync.RWMutex lockProjectInterfaceMockGetNamespaced sync.RWMutex lockProjectInterfaceMockList sync.RWMutex + lockProjectInterfaceMockListNamespaced sync.RWMutex lockProjectInterfaceMockObjectClient sync.RWMutex lockProjectInterfaceMockUpdate sync.RWMutex lockProjectInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectInterface = &ProjectInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ProjectList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectInterfaceMock.ListNamespacedFunc: method is nil but ProjectInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectInterface.ListNamespacedCalls()) +func (mock *ProjectInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_monitor_graph_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_monitor_graph_mock.go index 0a8c3053..e0b18086 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_monitor_graph_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_monitor_graph_mock.go @@ -674,6 +674,7 @@ var ( lockProjectMonitorGraphInterfaceMockGet sync.RWMutex lockProjectMonitorGraphInterfaceMockGetNamespaced sync.RWMutex lockProjectMonitorGraphInterfaceMockList sync.RWMutex + lockProjectMonitorGraphInterfaceMockListNamespaced sync.RWMutex lockProjectMonitorGraphInterfaceMockObjectClient sync.RWMutex lockProjectMonitorGraphInterfaceMockUpdate sync.RWMutex lockProjectMonitorGraphInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectMonitorGraphInterface = &ProjectMonitorGraphInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ProjectMonitorGraphList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectMonitorGraphList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectMonitorGraphInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectMonitorGraphList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectMonitorGraphList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectMonitorGraphInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectMonitorGraphInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectMonitorGraphInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectMonitorGraphList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectMonitorGraphInterfaceMock.ListNamespacedFunc: method is nil but ProjectMonitorGraphInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectMonitorGraphInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectMonitorGraphInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectMonitorGraphInterface.ListNamespacedCalls()) +func (mock *ProjectMonitorGraphInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectMonitorGraphInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectMonitorGraphInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectMonitorGraphInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_network_policy_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_network_policy_mock.go index feca47bc..9d79943d 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_network_policy_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_network_policy_mock.go @@ -674,6 +674,7 @@ var ( lockProjectNetworkPolicyInterfaceMockGet sync.RWMutex lockProjectNetworkPolicyInterfaceMockGetNamespaced sync.RWMutex lockProjectNetworkPolicyInterfaceMockList sync.RWMutex + lockProjectNetworkPolicyInterfaceMockListNamespaced sync.RWMutex lockProjectNetworkPolicyInterfaceMockObjectClient sync.RWMutex lockProjectNetworkPolicyInterfaceMockUpdate sync.RWMutex lockProjectNetworkPolicyInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectNetworkPolicyInterface = &ProjectNetworkPolicyInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ProjectNetworkPolicyList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectNetworkPolicyList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectNetworkPolicyInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectNetworkPolicyList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectNetworkPolicyList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectNetworkPolicyInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectNetworkPolicyInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectNetworkPolicyInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectNetworkPolicyList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectNetworkPolicyInterfaceMock.ListNamespacedFunc: method is nil but ProjectNetworkPolicyInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectNetworkPolicyInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectNetworkPolicyInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectNetworkPolicyInterface.ListNamespacedCalls()) +func (mock *ProjectNetworkPolicyInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectNetworkPolicyInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectNetworkPolicyInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectNetworkPolicyInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_project_role_template_binding_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_project_role_template_binding_mock.go index 0dca8a30..abb152fd 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_project_role_template_binding_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_project_role_template_binding_mock.go @@ -674,6 +674,7 @@ var ( lockProjectRoleTemplateBindingInterfaceMockGet sync.RWMutex lockProjectRoleTemplateBindingInterfaceMockGetNamespaced sync.RWMutex lockProjectRoleTemplateBindingInterfaceMockList sync.RWMutex + lockProjectRoleTemplateBindingInterfaceMockListNamespaced sync.RWMutex lockProjectRoleTemplateBindingInterfaceMockObjectClient sync.RWMutex lockProjectRoleTemplateBindingInterfaceMockUpdate sync.RWMutex lockProjectRoleTemplateBindingInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ProjectRoleTemplateBindingInterface = &ProjectRoleTemplateBindingInterf // ListFunc: func(opts v1.ListOptions) (*v3.ProjectRoleTemplateBindingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ProjectRoleTemplateBindingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ProjectRoleTemplateBindingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ProjectRoleTemplateBindingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ProjectRoleTemplateBindingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ProjectRoleTemplateBindingInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ProjectRoleTemplateBindingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ProjectRoleTemplateBindingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ProjectRoleTemplateBindingList, error) { + if mock.ListNamespacedFunc == nil { + panic("ProjectRoleTemplateBindingInterfaceMock.ListNamespacedFunc: method is nil but ProjectRoleTemplateBindingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockProjectRoleTemplateBindingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockProjectRoleTemplateBindingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedProjectRoleTemplateBindingInterface.ListNamespacedCalls()) +func (mock *ProjectRoleTemplateBindingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockProjectRoleTemplateBindingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockProjectRoleTemplateBindingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ProjectRoleTemplateBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_rke_addon_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_rke_addon_mock.go index 658ae622..da163f0b 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_rke_addon_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_rke_addon_mock.go @@ -674,6 +674,7 @@ var ( lockRKEAddonInterfaceMockGet sync.RWMutex lockRKEAddonInterfaceMockGetNamespaced sync.RWMutex lockRKEAddonInterfaceMockList sync.RWMutex + lockRKEAddonInterfaceMockListNamespaced sync.RWMutex lockRKEAddonInterfaceMockObjectClient sync.RWMutex lockRKEAddonInterfaceMockUpdate sync.RWMutex lockRKEAddonInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.RKEAddonInterface = &RKEAddonInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.RKEAddonList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.RKEAddonList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type RKEAddonInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.RKEAddonList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.RKEAddonList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type RKEAddonInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *RKEAddonInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *RKEAddonInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.RKEAddonList, error) { + if mock.ListNamespacedFunc == nil { + panic("RKEAddonInterfaceMock.ListNamespacedFunc: method is nil but RKEAddonInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockRKEAddonInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockRKEAddonInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedRKEAddonInterface.ListNamespacedCalls()) +func (mock *RKEAddonInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockRKEAddonInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockRKEAddonInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *RKEAddonInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_rke_k8s_service_option_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_rke_k8s_service_option_mock.go index 07896ab0..4fd2fbb6 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_rke_k8s_service_option_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_rke_k8s_service_option_mock.go @@ -674,6 +674,7 @@ var ( lockRKEK8sServiceOptionInterfaceMockGet sync.RWMutex lockRKEK8sServiceOptionInterfaceMockGetNamespaced sync.RWMutex lockRKEK8sServiceOptionInterfaceMockList sync.RWMutex + lockRKEK8sServiceOptionInterfaceMockListNamespaced sync.RWMutex lockRKEK8sServiceOptionInterfaceMockObjectClient sync.RWMutex lockRKEK8sServiceOptionInterfaceMockUpdate sync.RWMutex lockRKEK8sServiceOptionInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.RKEK8sServiceOptionInterface = &RKEK8sServiceOptionInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.RKEK8sServiceOptionList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.RKEK8sServiceOptionList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type RKEK8sServiceOptionInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.RKEK8sServiceOptionList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.RKEK8sServiceOptionList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type RKEK8sServiceOptionInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *RKEK8sServiceOptionInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *RKEK8sServiceOptionInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.RKEK8sServiceOptionList, error) { + if mock.ListNamespacedFunc == nil { + panic("RKEK8sServiceOptionInterfaceMock.ListNamespacedFunc: method is nil but RKEK8sServiceOptionInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockRKEK8sServiceOptionInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockRKEK8sServiceOptionInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedRKEK8sServiceOptionInterface.ListNamespacedCalls()) +func (mock *RKEK8sServiceOptionInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockRKEK8sServiceOptionInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockRKEK8sServiceOptionInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *RKEK8sServiceOptionInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_rke_k8s_system_image_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_rke_k8s_system_image_mock.go index cbc4d767..aee962c8 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_rke_k8s_system_image_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_rke_k8s_system_image_mock.go @@ -674,6 +674,7 @@ var ( lockRKEK8sSystemImageInterfaceMockGet sync.RWMutex lockRKEK8sSystemImageInterfaceMockGetNamespaced sync.RWMutex lockRKEK8sSystemImageInterfaceMockList sync.RWMutex + lockRKEK8sSystemImageInterfaceMockListNamespaced sync.RWMutex lockRKEK8sSystemImageInterfaceMockObjectClient sync.RWMutex lockRKEK8sSystemImageInterfaceMockUpdate sync.RWMutex lockRKEK8sSystemImageInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.RKEK8sSystemImageInterface = &RKEK8sSystemImageInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.RKEK8sSystemImageList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.RKEK8sSystemImageList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type RKEK8sSystemImageInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.RKEK8sSystemImageList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.RKEK8sSystemImageList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type RKEK8sSystemImageInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *RKEK8sSystemImageInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *RKEK8sSystemImageInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.RKEK8sSystemImageList, error) { + if mock.ListNamespacedFunc == nil { + panic("RKEK8sSystemImageInterfaceMock.ListNamespacedFunc: method is nil but RKEK8sSystemImageInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockRKEK8sSystemImageInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockRKEK8sSystemImageInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedRKEK8sSystemImageInterface.ListNamespacedCalls()) +func (mock *RKEK8sSystemImageInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockRKEK8sSystemImageInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockRKEK8sSystemImageInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *RKEK8sSystemImageInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_role_template_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_role_template_mock.go index 6fa45677..cd74de6a 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_role_template_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_role_template_mock.go @@ -674,6 +674,7 @@ var ( lockRoleTemplateInterfaceMockGet sync.RWMutex lockRoleTemplateInterfaceMockGetNamespaced sync.RWMutex lockRoleTemplateInterfaceMockList sync.RWMutex + lockRoleTemplateInterfaceMockListNamespaced sync.RWMutex lockRoleTemplateInterfaceMockObjectClient sync.RWMutex lockRoleTemplateInterfaceMockUpdate sync.RWMutex lockRoleTemplateInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.RoleTemplateInterface = &RoleTemplateInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.RoleTemplateList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.RoleTemplateList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type RoleTemplateInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.RoleTemplateList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.RoleTemplateList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type RoleTemplateInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *RoleTemplateInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *RoleTemplateInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.RoleTemplateList, error) { + if mock.ListNamespacedFunc == nil { + panic("RoleTemplateInterfaceMock.ListNamespacedFunc: method is nil but RoleTemplateInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockRoleTemplateInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockRoleTemplateInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedRoleTemplateInterface.ListNamespacedCalls()) +func (mock *RoleTemplateInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockRoleTemplateInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockRoleTemplateInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *RoleTemplateInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_setting_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_setting_mock.go index bc0fb736..6a6f27d9 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_setting_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_setting_mock.go @@ -674,6 +674,7 @@ var ( lockSettingInterfaceMockGet sync.RWMutex lockSettingInterfaceMockGetNamespaced sync.RWMutex lockSettingInterfaceMockList sync.RWMutex + lockSettingInterfaceMockListNamespaced sync.RWMutex lockSettingInterfaceMockObjectClient sync.RWMutex lockSettingInterfaceMockUpdate sync.RWMutex lockSettingInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.SettingInterface = &SettingInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.SettingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.SettingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type SettingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SettingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.SettingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type SettingInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *SettingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *SettingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.SettingList, error) { + if mock.ListNamespacedFunc == nil { + panic("SettingInterfaceMock.ListNamespacedFunc: method is nil but SettingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockSettingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockSettingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedSettingInterface.ListNamespacedCalls()) +func (mock *SettingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockSettingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockSettingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *SettingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_template_content_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_template_content_mock.go index 0d33e651..b74c0093 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_template_content_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_template_content_mock.go @@ -674,6 +674,7 @@ var ( lockTemplateContentInterfaceMockGet sync.RWMutex lockTemplateContentInterfaceMockGetNamespaced sync.RWMutex lockTemplateContentInterfaceMockList sync.RWMutex + lockTemplateContentInterfaceMockListNamespaced sync.RWMutex lockTemplateContentInterfaceMockObjectClient sync.RWMutex lockTemplateContentInterfaceMockUpdate sync.RWMutex lockTemplateContentInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.TemplateContentInterface = &TemplateContentInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.TemplateContentList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.TemplateContentList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type TemplateContentInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.TemplateContentList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.TemplateContentList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type TemplateContentInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *TemplateContentInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *TemplateContentInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.TemplateContentList, error) { + if mock.ListNamespacedFunc == nil { + panic("TemplateContentInterfaceMock.ListNamespacedFunc: method is nil but TemplateContentInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockTemplateContentInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockTemplateContentInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedTemplateContentInterface.ListNamespacedCalls()) +func (mock *TemplateContentInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockTemplateContentInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockTemplateContentInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *TemplateContentInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_template_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_template_mock.go index 36c373b2..81d8d89c 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_template_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_template_mock.go @@ -674,6 +674,7 @@ var ( lockTemplateInterfaceMockGet sync.RWMutex lockTemplateInterfaceMockGetNamespaced sync.RWMutex lockTemplateInterfaceMockList sync.RWMutex + lockTemplateInterfaceMockListNamespaced sync.RWMutex lockTemplateInterfaceMockObjectClient sync.RWMutex lockTemplateInterfaceMockUpdate sync.RWMutex lockTemplateInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.TemplateInterface = &TemplateInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.TemplateList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.TemplateList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type TemplateInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.TemplateList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.TemplateList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type TemplateInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *TemplateInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *TemplateInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.TemplateList, error) { + if mock.ListNamespacedFunc == nil { + panic("TemplateInterfaceMock.ListNamespacedFunc: method is nil but TemplateInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockTemplateInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockTemplateInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedTemplateInterface.ListNamespacedCalls()) +func (mock *TemplateInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockTemplateInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockTemplateInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *TemplateInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_template_version_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_template_version_mock.go index f80338f5..4e9cf9f3 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_template_version_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_template_version_mock.go @@ -674,6 +674,7 @@ var ( lockTemplateVersionInterfaceMockGet sync.RWMutex lockTemplateVersionInterfaceMockGetNamespaced sync.RWMutex lockTemplateVersionInterfaceMockList sync.RWMutex + lockTemplateVersionInterfaceMockListNamespaced sync.RWMutex lockTemplateVersionInterfaceMockObjectClient sync.RWMutex lockTemplateVersionInterfaceMockUpdate sync.RWMutex lockTemplateVersionInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.TemplateVersionInterface = &TemplateVersionInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.TemplateVersionList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.TemplateVersionList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type TemplateVersionInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.TemplateVersionList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.TemplateVersionList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type TemplateVersionInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *TemplateVersionInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *TemplateVersionInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.TemplateVersionList, error) { + if mock.ListNamespacedFunc == nil { + panic("TemplateVersionInterfaceMock.ListNamespacedFunc: method is nil but TemplateVersionInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockTemplateVersionInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockTemplateVersionInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedTemplateVersionInterface.ListNamespacedCalls()) +func (mock *TemplateVersionInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockTemplateVersionInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockTemplateVersionInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *TemplateVersionInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_token_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_token_mock.go index 28d27e06..f41c7feb 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_token_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_token_mock.go @@ -674,6 +674,7 @@ var ( lockTokenInterfaceMockGet sync.RWMutex lockTokenInterfaceMockGetNamespaced sync.RWMutex lockTokenInterfaceMockList sync.RWMutex + lockTokenInterfaceMockListNamespaced sync.RWMutex lockTokenInterfaceMockObjectClient sync.RWMutex lockTokenInterfaceMockUpdate sync.RWMutex lockTokenInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.TokenInterface = &TokenInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.TokenList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.TokenList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type TokenInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.TokenList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.TokenList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type TokenInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *TokenInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *TokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.TokenList, error) { + if mock.ListNamespacedFunc == nil { + panic("TokenInterfaceMock.ListNamespacedFunc: method is nil but TokenInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockTokenInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockTokenInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedTokenInterface.ListNamespacedCalls()) +func (mock *TokenInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockTokenInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockTokenInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *TokenInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_user_attribute_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_user_attribute_mock.go index 86236648..ac81f275 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_user_attribute_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_user_attribute_mock.go @@ -674,6 +674,7 @@ var ( lockUserAttributeInterfaceMockGet sync.RWMutex lockUserAttributeInterfaceMockGetNamespaced sync.RWMutex lockUserAttributeInterfaceMockList sync.RWMutex + lockUserAttributeInterfaceMockListNamespaced sync.RWMutex lockUserAttributeInterfaceMockObjectClient sync.RWMutex lockUserAttributeInterfaceMockUpdate sync.RWMutex lockUserAttributeInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.UserAttributeInterface = &UserAttributeInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.UserAttributeList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.UserAttributeList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type UserAttributeInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.UserAttributeList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.UserAttributeList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type UserAttributeInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *UserAttributeInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *UserAttributeInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.UserAttributeList, error) { + if mock.ListNamespacedFunc == nil { + panic("UserAttributeInterfaceMock.ListNamespacedFunc: method is nil but UserAttributeInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockUserAttributeInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockUserAttributeInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedUserAttributeInterface.ListNamespacedCalls()) +func (mock *UserAttributeInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockUserAttributeInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockUserAttributeInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *UserAttributeInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/fakes/zz_generated_user_mock.go b/apis/management.cattle.io/v3/fakes/zz_generated_user_mock.go index 010e7271..b23e55c2 100644 --- a/apis/management.cattle.io/v3/fakes/zz_generated_user_mock.go +++ b/apis/management.cattle.io/v3/fakes/zz_generated_user_mock.go @@ -674,6 +674,7 @@ var ( lockUserInterfaceMockGet sync.RWMutex lockUserInterfaceMockGetNamespaced sync.RWMutex lockUserInterfaceMockList sync.RWMutex + lockUserInterfaceMockListNamespaced sync.RWMutex lockUserInterfaceMockObjectClient sync.RWMutex lockUserInterfaceMockUpdate sync.RWMutex lockUserInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.UserInterface = &UserInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.UserList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.UserList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type UserInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.UserList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.UserList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type UserInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *UserInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *UserInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.UserList, error) { + if mock.ListNamespacedFunc == nil { + panic("UserInterfaceMock.ListNamespacedFunc: method is nil but UserInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockUserInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockUserInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedUserInterface.ListNamespacedCalls()) +func (mock *UserInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockUserInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockUserInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *UserInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3/zz_generated_auth_config_controller.go b/apis/management.cattle.io/v3/zz_generated_auth_config_controller.go index 5d75da80..2c6d7ed9 100644 --- a/apis/management.cattle.io/v3/zz_generated_auth_config_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_auth_config_controller.go @@ -84,6 +84,7 @@ type AuthConfigInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*AuthConfigList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*AuthConfigList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() AuthConfigController @@ -271,6 +272,11 @@ func (s *authConfigClient) List(opts metav1.ListOptions) (*AuthConfigList, error return obj.(*AuthConfigList), err } +func (s *authConfigClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*AuthConfigList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*AuthConfigList), err +} + func (s *authConfigClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_catalog_controller.go b/apis/management.cattle.io/v3/zz_generated_catalog_controller.go index 11615598..0a3ccc4d 100644 --- a/apis/management.cattle.io/v3/zz_generated_catalog_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_catalog_controller.go @@ -84,6 +84,7 @@ type CatalogInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*CatalogList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*CatalogList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() CatalogController @@ -271,6 +272,11 @@ func (s *catalogClient) List(opts metav1.ListOptions) (*CatalogList, error) { return obj.(*CatalogList), err } +func (s *catalogClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*CatalogList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*CatalogList), err +} + func (s *catalogClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_catalog_template_controller.go b/apis/management.cattle.io/v3/zz_generated_catalog_template_controller.go index cdf3766e..ff3d9078 100644 --- a/apis/management.cattle.io/v3/zz_generated_catalog_template_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_catalog_template_controller.go @@ -85,6 +85,7 @@ type CatalogTemplateInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*CatalogTemplateList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*CatalogTemplateList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() CatalogTemplateController @@ -272,6 +273,11 @@ func (s *catalogTemplateClient) List(opts metav1.ListOptions) (*CatalogTemplateL return obj.(*CatalogTemplateList), err } +func (s *catalogTemplateClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*CatalogTemplateList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*CatalogTemplateList), err +} + func (s *catalogTemplateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_catalog_template_version_controller.go b/apis/management.cattle.io/v3/zz_generated_catalog_template_version_controller.go index ac365a46..430531ad 100644 --- a/apis/management.cattle.io/v3/zz_generated_catalog_template_version_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_catalog_template_version_controller.go @@ -85,6 +85,7 @@ type CatalogTemplateVersionInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*CatalogTemplateVersionList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*CatalogTemplateVersionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() CatalogTemplateVersionController @@ -272,6 +273,11 @@ func (s *catalogTemplateVersionClient) List(opts metav1.ListOptions) (*CatalogTe return obj.(*CatalogTemplateVersionList), err } +func (s *catalogTemplateVersionClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*CatalogTemplateVersionList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*CatalogTemplateVersionList), err +} + func (s *catalogTemplateVersionClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cloud_credential_controller.go b/apis/management.cattle.io/v3/zz_generated_cloud_credential_controller.go index 64fc2bc1..60bd58ff 100644 --- a/apis/management.cattle.io/v3/zz_generated_cloud_credential_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cloud_credential_controller.go @@ -85,6 +85,7 @@ type CloudCredentialInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*CloudCredentialList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*CloudCredentialList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() CloudCredentialController @@ -272,6 +273,11 @@ func (s *cloudCredentialClient) List(opts metav1.ListOptions) (*CloudCredentialL return obj.(*CloudCredentialList), err } +func (s *cloudCredentialClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*CloudCredentialList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*CloudCredentialList), err +} + func (s *cloudCredentialClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_alert_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_alert_controller.go index ced78970..f3d42783 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_alert_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_alert_controller.go @@ -85,6 +85,7 @@ type ClusterAlertInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterAlertList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterAlertList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterAlertController @@ -272,6 +273,11 @@ func (s *clusterAlertClient) List(opts metav1.ListOptions) (*ClusterAlertList, e return obj.(*ClusterAlertList), err } +func (s *clusterAlertClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterAlertList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterAlertList), err +} + func (s *clusterAlertClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_alert_group_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_alert_group_controller.go index c4ee951e..5aac567b 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_alert_group_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_alert_group_controller.go @@ -85,6 +85,7 @@ type ClusterAlertGroupInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterAlertGroupList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterAlertGroupList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterAlertGroupController @@ -272,6 +273,11 @@ func (s *clusterAlertGroupClient) List(opts metav1.ListOptions) (*ClusterAlertGr return obj.(*ClusterAlertGroupList), err } +func (s *clusterAlertGroupClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterAlertGroupList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterAlertGroupList), err +} + func (s *clusterAlertGroupClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_alert_rule_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_alert_rule_controller.go index d0a0dc83..536b8521 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_alert_rule_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_alert_rule_controller.go @@ -85,6 +85,7 @@ type ClusterAlertRuleInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterAlertRuleList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterAlertRuleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterAlertRuleController @@ -272,6 +273,11 @@ func (s *clusterAlertRuleClient) List(opts metav1.ListOptions) (*ClusterAlertRul return obj.(*ClusterAlertRuleList), err } +func (s *clusterAlertRuleClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterAlertRuleList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterAlertRuleList), err +} + func (s *clusterAlertRuleClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_catalog_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_catalog_controller.go index ff72503f..a0e9a9cf 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_catalog_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_catalog_controller.go @@ -85,6 +85,7 @@ type ClusterCatalogInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterCatalogList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterCatalogList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterCatalogController @@ -272,6 +273,11 @@ func (s *clusterCatalogClient) List(opts metav1.ListOptions) (*ClusterCatalogLis return obj.(*ClusterCatalogList), err } +func (s *clusterCatalogClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterCatalogList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterCatalogList), err +} + func (s *clusterCatalogClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_controller.go index f47b8d5e..049afb85 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_controller.go @@ -84,6 +84,7 @@ type ClusterInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterController @@ -271,6 +272,11 @@ func (s *clusterClient) List(opts metav1.ListOptions) (*ClusterList, error) { return obj.(*ClusterList), err } +func (s *clusterClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterList), err +} + func (s *clusterClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_logging_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_logging_controller.go index 73c18807..3bdbfe93 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_logging_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_logging_controller.go @@ -85,6 +85,7 @@ type ClusterLoggingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterLoggingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterLoggingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterLoggingController @@ -272,6 +273,11 @@ func (s *clusterLoggingClient) List(opts metav1.ListOptions) (*ClusterLoggingLis return obj.(*ClusterLoggingList), err } +func (s *clusterLoggingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterLoggingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterLoggingList), err +} + func (s *clusterLoggingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_monitor_graph_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_monitor_graph_controller.go index 18c2223c..593192f1 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_monitor_graph_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_monitor_graph_controller.go @@ -85,6 +85,7 @@ type ClusterMonitorGraphInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterMonitorGraphList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterMonitorGraphList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterMonitorGraphController @@ -272,6 +273,11 @@ func (s *clusterMonitorGraphClient) List(opts metav1.ListOptions) (*ClusterMonit return obj.(*ClusterMonitorGraphList), err } +func (s *clusterMonitorGraphClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterMonitorGraphList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterMonitorGraphList), err +} + func (s *clusterMonitorGraphClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_registration_token_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_registration_token_controller.go index d7891d1e..0f28d20b 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_registration_token_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_registration_token_controller.go @@ -85,6 +85,7 @@ type ClusterRegistrationTokenInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterRegistrationTokenList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterRegistrationTokenList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterRegistrationTokenController @@ -272,6 +273,11 @@ func (s *clusterRegistrationTokenClient) List(opts metav1.ListOptions) (*Cluster return obj.(*ClusterRegistrationTokenList), err } +func (s *clusterRegistrationTokenClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterRegistrationTokenList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterRegistrationTokenList), err +} + func (s *clusterRegistrationTokenClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_role_template_binding_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_role_template_binding_controller.go index 039ca94b..6bee89ef 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_role_template_binding_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_role_template_binding_controller.go @@ -85,6 +85,7 @@ type ClusterRoleTemplateBindingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterRoleTemplateBindingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterRoleTemplateBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterRoleTemplateBindingController @@ -272,6 +273,11 @@ func (s *clusterRoleTemplateBindingClient) List(opts metav1.ListOptions) (*Clust return obj.(*ClusterRoleTemplateBindingList), err } +func (s *clusterRoleTemplateBindingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterRoleTemplateBindingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterRoleTemplateBindingList), err +} + func (s *clusterRoleTemplateBindingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_scan_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_scan_controller.go index f29b08ef..f1b09037 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_scan_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_scan_controller.go @@ -85,6 +85,7 @@ type ClusterScanInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterScanList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterScanList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterScanController @@ -272,6 +273,11 @@ func (s *clusterScanClient) List(opts metav1.ListOptions) (*ClusterScanList, err return obj.(*ClusterScanList), err } +func (s *clusterScanClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterScanList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterScanList), err +} + func (s *clusterScanClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_template_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_template_controller.go index e2d59b14..ecf8eabe 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_template_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_template_controller.go @@ -85,6 +85,7 @@ type ClusterTemplateInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterTemplateList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterTemplateList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterTemplateController @@ -272,6 +273,11 @@ func (s *clusterTemplateClient) List(opts metav1.ListOptions) (*ClusterTemplateL return obj.(*ClusterTemplateList), err } +func (s *clusterTemplateClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterTemplateList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterTemplateList), err +} + func (s *clusterTemplateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_cluster_template_revision_controller.go b/apis/management.cattle.io/v3/zz_generated_cluster_template_revision_controller.go index 6b7f9788..32bdfca4 100644 --- a/apis/management.cattle.io/v3/zz_generated_cluster_template_revision_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_cluster_template_revision_controller.go @@ -85,6 +85,7 @@ type ClusterTemplateRevisionInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterTemplateRevisionList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterTemplateRevisionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterTemplateRevisionController @@ -272,6 +273,11 @@ func (s *clusterTemplateRevisionClient) List(opts metav1.ListOptions) (*ClusterT return obj.(*ClusterTemplateRevisionList), err } +func (s *clusterTemplateRevisionClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterTemplateRevisionList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterTemplateRevisionList), err +} + func (s *clusterTemplateRevisionClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_compose_config_controller.go b/apis/management.cattle.io/v3/zz_generated_compose_config_controller.go index 6ebb0de9..9707f46b 100644 --- a/apis/management.cattle.io/v3/zz_generated_compose_config_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_compose_config_controller.go @@ -84,6 +84,7 @@ type ComposeConfigInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ComposeConfigList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ComposeConfigList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ComposeConfigController @@ -271,6 +272,11 @@ func (s *composeConfigClient) List(opts metav1.ListOptions) (*ComposeConfigList, return obj.(*ComposeConfigList), err } +func (s *composeConfigClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ComposeConfigList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ComposeConfigList), err +} + func (s *composeConfigClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_dynamic_schema_controller.go b/apis/management.cattle.io/v3/zz_generated_dynamic_schema_controller.go index cb7ad94c..220726a2 100644 --- a/apis/management.cattle.io/v3/zz_generated_dynamic_schema_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_dynamic_schema_controller.go @@ -84,6 +84,7 @@ type DynamicSchemaInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DynamicSchemaList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*DynamicSchemaList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() DynamicSchemaController @@ -271,6 +272,11 @@ func (s *dynamicSchemaClient) List(opts metav1.ListOptions) (*DynamicSchemaList, return obj.(*DynamicSchemaList), err } +func (s *dynamicSchemaClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*DynamicSchemaList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*DynamicSchemaList), err +} + func (s *dynamicSchemaClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_etcd_backup_controller.go b/apis/management.cattle.io/v3/zz_generated_etcd_backup_controller.go index def4960a..7e08a5da 100644 --- a/apis/management.cattle.io/v3/zz_generated_etcd_backup_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_etcd_backup_controller.go @@ -85,6 +85,7 @@ type EtcdBackupInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*EtcdBackupList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*EtcdBackupList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() EtcdBackupController @@ -272,6 +273,11 @@ func (s *etcdBackupClient) List(opts metav1.ListOptions) (*EtcdBackupList, error return obj.(*EtcdBackupList), err } +func (s *etcdBackupClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*EtcdBackupList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*EtcdBackupList), err +} + func (s *etcdBackupClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_feature_controller.go b/apis/management.cattle.io/v3/zz_generated_feature_controller.go index 14341b57..935bc289 100644 --- a/apis/management.cattle.io/v3/zz_generated_feature_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_feature_controller.go @@ -84,6 +84,7 @@ type FeatureInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*FeatureList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*FeatureList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() FeatureController @@ -271,6 +272,11 @@ func (s *featureClient) List(opts metav1.ListOptions) (*FeatureList, error) { return obj.(*FeatureList), err } +func (s *featureClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*FeatureList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*FeatureList), err +} + func (s *featureClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_global_dns_controller.go b/apis/management.cattle.io/v3/zz_generated_global_dns_controller.go index 16c2834a..fbc3b045 100644 --- a/apis/management.cattle.io/v3/zz_generated_global_dns_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_global_dns_controller.go @@ -85,6 +85,7 @@ type GlobalDNSInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*GlobalDNSList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*GlobalDNSList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() GlobalDNSController @@ -272,6 +273,11 @@ func (s *globalDnsClient) List(opts metav1.ListOptions) (*GlobalDNSList, error) return obj.(*GlobalDNSList), err } +func (s *globalDnsClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*GlobalDNSList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*GlobalDNSList), err +} + func (s *globalDnsClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_global_dns_provider_controller.go b/apis/management.cattle.io/v3/zz_generated_global_dns_provider_controller.go index 84de2d07..a4d32125 100644 --- a/apis/management.cattle.io/v3/zz_generated_global_dns_provider_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_global_dns_provider_controller.go @@ -85,6 +85,7 @@ type GlobalDNSProviderInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*GlobalDNSProviderList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*GlobalDNSProviderList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() GlobalDNSProviderController @@ -272,6 +273,11 @@ func (s *globalDnsProviderClient) List(opts metav1.ListOptions) (*GlobalDNSProvi return obj.(*GlobalDNSProviderList), err } +func (s *globalDnsProviderClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*GlobalDNSProviderList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*GlobalDNSProviderList), err +} + func (s *globalDnsProviderClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_global_role_binding_controller.go b/apis/management.cattle.io/v3/zz_generated_global_role_binding_controller.go index f2af37b6..d7834d11 100644 --- a/apis/management.cattle.io/v3/zz_generated_global_role_binding_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_global_role_binding_controller.go @@ -84,6 +84,7 @@ type GlobalRoleBindingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*GlobalRoleBindingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*GlobalRoleBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() GlobalRoleBindingController @@ -271,6 +272,11 @@ func (s *globalRoleBindingClient) List(opts metav1.ListOptions) (*GlobalRoleBind return obj.(*GlobalRoleBindingList), err } +func (s *globalRoleBindingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*GlobalRoleBindingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*GlobalRoleBindingList), err +} + func (s *globalRoleBindingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_global_role_controller.go b/apis/management.cattle.io/v3/zz_generated_global_role_controller.go index c6911777..a252da77 100644 --- a/apis/management.cattle.io/v3/zz_generated_global_role_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_global_role_controller.go @@ -84,6 +84,7 @@ type GlobalRoleInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*GlobalRoleList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*GlobalRoleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() GlobalRoleController @@ -271,6 +272,11 @@ func (s *globalRoleClient) List(opts metav1.ListOptions) (*GlobalRoleList, error return obj.(*GlobalRoleList), err } +func (s *globalRoleClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*GlobalRoleList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*GlobalRoleList), err +} + func (s *globalRoleClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_group_controller.go b/apis/management.cattle.io/v3/zz_generated_group_controller.go index 49d01c6a..74b69916 100644 --- a/apis/management.cattle.io/v3/zz_generated_group_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_group_controller.go @@ -84,6 +84,7 @@ type GroupInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*GroupList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*GroupList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() GroupController @@ -271,6 +272,11 @@ func (s *groupClient) List(opts metav1.ListOptions) (*GroupList, error) { return obj.(*GroupList), err } +func (s *groupClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*GroupList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*GroupList), err +} + func (s *groupClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_group_member_controller.go b/apis/management.cattle.io/v3/zz_generated_group_member_controller.go index 47c9087d..37818dcd 100644 --- a/apis/management.cattle.io/v3/zz_generated_group_member_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_group_member_controller.go @@ -84,6 +84,7 @@ type GroupMemberInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*GroupMemberList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*GroupMemberList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() GroupMemberController @@ -271,6 +272,11 @@ func (s *groupMemberClient) List(opts metav1.ListOptions) (*GroupMemberList, err return obj.(*GroupMemberList), err } +func (s *groupMemberClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*GroupMemberList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*GroupMemberList), err +} + func (s *groupMemberClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_kontainer_driver_controller.go b/apis/management.cattle.io/v3/zz_generated_kontainer_driver_controller.go index 8ec58bee..99643e5e 100644 --- a/apis/management.cattle.io/v3/zz_generated_kontainer_driver_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_kontainer_driver_controller.go @@ -84,6 +84,7 @@ type KontainerDriverInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*KontainerDriverList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*KontainerDriverList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() KontainerDriverController @@ -271,6 +272,11 @@ func (s *kontainerDriverClient) List(opts metav1.ListOptions) (*KontainerDriverL return obj.(*KontainerDriverList), err } +func (s *kontainerDriverClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*KontainerDriverList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*KontainerDriverList), err +} + func (s *kontainerDriverClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_ldap_config_controller.go b/apis/management.cattle.io/v3/zz_generated_ldap_config_controller.go index 3695b590..6a6bc9eb 100644 --- a/apis/management.cattle.io/v3/zz_generated_ldap_config_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_ldap_config_controller.go @@ -84,6 +84,7 @@ type LdapConfigInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*LdapConfigList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*LdapConfigList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() LdapConfigController @@ -271,6 +272,11 @@ func (s *ldapConfigClient) List(opts metav1.ListOptions) (*LdapConfigList, error return obj.(*LdapConfigList), err } +func (s *ldapConfigClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*LdapConfigList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*LdapConfigList), err +} + func (s *ldapConfigClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_listen_config_controller.go b/apis/management.cattle.io/v3/zz_generated_listen_config_controller.go index e884ba77..f04d5159 100644 --- a/apis/management.cattle.io/v3/zz_generated_listen_config_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_listen_config_controller.go @@ -84,6 +84,7 @@ type ListenConfigInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ListenConfigList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ListenConfigList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ListenConfigController @@ -271,6 +272,11 @@ func (s *listenConfigClient) List(opts metav1.ListOptions) (*ListenConfigList, e return obj.(*ListenConfigList), err } +func (s *listenConfigClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ListenConfigList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ListenConfigList), err +} + func (s *listenConfigClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_monitor_metric_controller.go b/apis/management.cattle.io/v3/zz_generated_monitor_metric_controller.go index dc7a99b1..39c02f52 100644 --- a/apis/management.cattle.io/v3/zz_generated_monitor_metric_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_monitor_metric_controller.go @@ -85,6 +85,7 @@ type MonitorMetricInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*MonitorMetricList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*MonitorMetricList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() MonitorMetricController @@ -272,6 +273,11 @@ func (s *monitorMetricClient) List(opts metav1.ListOptions) (*MonitorMetricList, return obj.(*MonitorMetricList), err } +func (s *monitorMetricClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*MonitorMetricList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*MonitorMetricList), err +} + func (s *monitorMetricClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_multi_cluster_app_controller.go b/apis/management.cattle.io/v3/zz_generated_multi_cluster_app_controller.go index 02817938..2707183b 100644 --- a/apis/management.cattle.io/v3/zz_generated_multi_cluster_app_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_multi_cluster_app_controller.go @@ -85,6 +85,7 @@ type MultiClusterAppInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*MultiClusterAppList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*MultiClusterAppList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() MultiClusterAppController @@ -272,6 +273,11 @@ func (s *multiClusterAppClient) List(opts metav1.ListOptions) (*MultiClusterAppL return obj.(*MultiClusterAppList), err } +func (s *multiClusterAppClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*MultiClusterAppList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*MultiClusterAppList), err +} + func (s *multiClusterAppClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_multi_cluster_app_revision_controller.go b/apis/management.cattle.io/v3/zz_generated_multi_cluster_app_revision_controller.go index 1afdb8c5..8dbcceec 100644 --- a/apis/management.cattle.io/v3/zz_generated_multi_cluster_app_revision_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_multi_cluster_app_revision_controller.go @@ -85,6 +85,7 @@ type MultiClusterAppRevisionInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*MultiClusterAppRevisionList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*MultiClusterAppRevisionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() MultiClusterAppRevisionController @@ -272,6 +273,11 @@ func (s *multiClusterAppRevisionClient) List(opts metav1.ListOptions) (*MultiClu return obj.(*MultiClusterAppRevisionList), err } +func (s *multiClusterAppRevisionClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*MultiClusterAppRevisionList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*MultiClusterAppRevisionList), err +} + func (s *multiClusterAppRevisionClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_node_controller.go b/apis/management.cattle.io/v3/zz_generated_node_controller.go index 20452264..26a899e6 100644 --- a/apis/management.cattle.io/v3/zz_generated_node_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_node_controller.go @@ -85,6 +85,7 @@ type NodeInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NodeList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NodeList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NodeController @@ -272,6 +273,11 @@ func (s *nodeClient) List(opts metav1.ListOptions) (*NodeList, error) { return obj.(*NodeList), err } +func (s *nodeClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NodeList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NodeList), err +} + func (s *nodeClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_node_driver_controller.go b/apis/management.cattle.io/v3/zz_generated_node_driver_controller.go index 2eca4596..db21d580 100644 --- a/apis/management.cattle.io/v3/zz_generated_node_driver_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_node_driver_controller.go @@ -84,6 +84,7 @@ type NodeDriverInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NodeDriverList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NodeDriverList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NodeDriverController @@ -271,6 +272,11 @@ func (s *nodeDriverClient) List(opts metav1.ListOptions) (*NodeDriverList, error return obj.(*NodeDriverList), err } +func (s *nodeDriverClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NodeDriverList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NodeDriverList), err +} + func (s *nodeDriverClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_node_pool_controller.go b/apis/management.cattle.io/v3/zz_generated_node_pool_controller.go index 0729e88c..d17b11cc 100644 --- a/apis/management.cattle.io/v3/zz_generated_node_pool_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_node_pool_controller.go @@ -85,6 +85,7 @@ type NodePoolInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NodePoolList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NodePoolList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NodePoolController @@ -272,6 +273,11 @@ func (s *nodePoolClient) List(opts metav1.ListOptions) (*NodePoolList, error) { return obj.(*NodePoolList), err } +func (s *nodePoolClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NodePoolList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NodePoolList), err +} + func (s *nodePoolClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_node_template_controller.go b/apis/management.cattle.io/v3/zz_generated_node_template_controller.go index adb4b4f2..b17703f4 100644 --- a/apis/management.cattle.io/v3/zz_generated_node_template_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_node_template_controller.go @@ -85,6 +85,7 @@ type NodeTemplateInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NodeTemplateList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NodeTemplateList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NodeTemplateController @@ -272,6 +273,11 @@ func (s *nodeTemplateClient) List(opts metav1.ListOptions) (*NodeTemplateList, e return obj.(*NodeTemplateList), err } +func (s *nodeTemplateClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NodeTemplateList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NodeTemplateList), err +} + func (s *nodeTemplateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_notifier_controller.go b/apis/management.cattle.io/v3/zz_generated_notifier_controller.go index 4c88b74d..c0a18cc9 100644 --- a/apis/management.cattle.io/v3/zz_generated_notifier_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_notifier_controller.go @@ -85,6 +85,7 @@ type NotifierInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NotifierList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NotifierList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NotifierController @@ -272,6 +273,11 @@ func (s *notifierClient) List(opts metav1.ListOptions) (*NotifierList, error) { return obj.(*NotifierList), err } +func (s *notifierClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NotifierList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NotifierList), err +} + func (s *notifierClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_pod_security_policy_template_controller.go b/apis/management.cattle.io/v3/zz_generated_pod_security_policy_template_controller.go index 5975d226..f3c50299 100644 --- a/apis/management.cattle.io/v3/zz_generated_pod_security_policy_template_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_pod_security_policy_template_controller.go @@ -84,6 +84,7 @@ type PodSecurityPolicyTemplateInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PodSecurityPolicyTemplateList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PodSecurityPolicyTemplateList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PodSecurityPolicyTemplateController @@ -271,6 +272,11 @@ func (s *podSecurityPolicyTemplateClient) List(opts metav1.ListOptions) (*PodSec return obj.(*PodSecurityPolicyTemplateList), err } +func (s *podSecurityPolicyTemplateClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PodSecurityPolicyTemplateList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PodSecurityPolicyTemplateList), err +} + func (s *podSecurityPolicyTemplateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_pod_security_policy_template_project_binding_controller.go b/apis/management.cattle.io/v3/zz_generated_pod_security_policy_template_project_binding_controller.go index cbc7b58c..3bffe6e9 100644 --- a/apis/management.cattle.io/v3/zz_generated_pod_security_policy_template_project_binding_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_pod_security_policy_template_project_binding_controller.go @@ -85,6 +85,7 @@ type PodSecurityPolicyTemplateProjectBindingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PodSecurityPolicyTemplateProjectBindingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PodSecurityPolicyTemplateProjectBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PodSecurityPolicyTemplateProjectBindingController @@ -272,6 +273,11 @@ func (s *podSecurityPolicyTemplateProjectBindingClient) List(opts metav1.ListOpt return obj.(*PodSecurityPolicyTemplateProjectBindingList), err } +func (s *podSecurityPolicyTemplateProjectBindingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PodSecurityPolicyTemplateProjectBindingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PodSecurityPolicyTemplateProjectBindingList), err +} + func (s *podSecurityPolicyTemplateProjectBindingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_preference_controller.go b/apis/management.cattle.io/v3/zz_generated_preference_controller.go index d3b23acf..265fbfcc 100644 --- a/apis/management.cattle.io/v3/zz_generated_preference_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_preference_controller.go @@ -85,6 +85,7 @@ type PreferenceInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PreferenceList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PreferenceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PreferenceController @@ -272,6 +273,11 @@ func (s *preferenceClient) List(opts metav1.ListOptions) (*PreferenceList, error return obj.(*PreferenceList), err } +func (s *preferenceClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PreferenceList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PreferenceList), err +} + func (s *preferenceClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_principal_controller.go b/apis/management.cattle.io/v3/zz_generated_principal_controller.go index a98e2b19..148d108a 100644 --- a/apis/management.cattle.io/v3/zz_generated_principal_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_principal_controller.go @@ -84,6 +84,7 @@ type PrincipalInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PrincipalList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PrincipalList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PrincipalController @@ -271,6 +272,11 @@ func (s *principalClient) List(opts metav1.ListOptions) (*PrincipalList, error) return obj.(*PrincipalList), err } +func (s *principalClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PrincipalList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PrincipalList), err +} + func (s *principalClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_alert_controller.go b/apis/management.cattle.io/v3/zz_generated_project_alert_controller.go index 3516ab1d..c124d37d 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_alert_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_alert_controller.go @@ -85,6 +85,7 @@ type ProjectAlertInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectAlertList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectAlertList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectAlertController @@ -272,6 +273,11 @@ func (s *projectAlertClient) List(opts metav1.ListOptions) (*ProjectAlertList, e return obj.(*ProjectAlertList), err } +func (s *projectAlertClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectAlertList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectAlertList), err +} + func (s *projectAlertClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_alert_group_controller.go b/apis/management.cattle.io/v3/zz_generated_project_alert_group_controller.go index bb95b471..52e149d7 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_alert_group_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_alert_group_controller.go @@ -85,6 +85,7 @@ type ProjectAlertGroupInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectAlertGroupList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectAlertGroupList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectAlertGroupController @@ -272,6 +273,11 @@ func (s *projectAlertGroupClient) List(opts metav1.ListOptions) (*ProjectAlertGr return obj.(*ProjectAlertGroupList), err } +func (s *projectAlertGroupClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectAlertGroupList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectAlertGroupList), err +} + func (s *projectAlertGroupClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_alert_rule_controller.go b/apis/management.cattle.io/v3/zz_generated_project_alert_rule_controller.go index 4d464599..d5f590bf 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_alert_rule_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_alert_rule_controller.go @@ -85,6 +85,7 @@ type ProjectAlertRuleInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectAlertRuleList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectAlertRuleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectAlertRuleController @@ -272,6 +273,11 @@ func (s *projectAlertRuleClient) List(opts metav1.ListOptions) (*ProjectAlertRul return obj.(*ProjectAlertRuleList), err } +func (s *projectAlertRuleClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectAlertRuleList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectAlertRuleList), err +} + func (s *projectAlertRuleClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_catalog_controller.go b/apis/management.cattle.io/v3/zz_generated_project_catalog_controller.go index 7b011e71..3ed59be1 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_catalog_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_catalog_controller.go @@ -85,6 +85,7 @@ type ProjectCatalogInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectCatalogList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectCatalogList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectCatalogController @@ -272,6 +273,11 @@ func (s *projectCatalogClient) List(opts metav1.ListOptions) (*ProjectCatalogLis return obj.(*ProjectCatalogList), err } +func (s *projectCatalogClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectCatalogList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectCatalogList), err +} + func (s *projectCatalogClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_controller.go b/apis/management.cattle.io/v3/zz_generated_project_controller.go index 2066405c..84d09121 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_controller.go @@ -85,6 +85,7 @@ type ProjectInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectController @@ -272,6 +273,11 @@ func (s *projectClient) List(opts metav1.ListOptions) (*ProjectList, error) { return obj.(*ProjectList), err } +func (s *projectClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectList), err +} + func (s *projectClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_logging_controller.go b/apis/management.cattle.io/v3/zz_generated_project_logging_controller.go index 59e99485..8bda9577 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_logging_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_logging_controller.go @@ -85,6 +85,7 @@ type ProjectLoggingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectLoggingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectLoggingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectLoggingController @@ -272,6 +273,11 @@ func (s *projectLoggingClient) List(opts metav1.ListOptions) (*ProjectLoggingLis return obj.(*ProjectLoggingList), err } +func (s *projectLoggingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectLoggingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectLoggingList), err +} + func (s *projectLoggingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_monitor_graph_controller.go b/apis/management.cattle.io/v3/zz_generated_project_monitor_graph_controller.go index ec5f8553..dfd5225d 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_monitor_graph_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_monitor_graph_controller.go @@ -85,6 +85,7 @@ type ProjectMonitorGraphInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectMonitorGraphList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectMonitorGraphList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectMonitorGraphController @@ -272,6 +273,11 @@ func (s *projectMonitorGraphClient) List(opts metav1.ListOptions) (*ProjectMonit return obj.(*ProjectMonitorGraphList), err } +func (s *projectMonitorGraphClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectMonitorGraphList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectMonitorGraphList), err +} + func (s *projectMonitorGraphClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_network_policy_controller.go b/apis/management.cattle.io/v3/zz_generated_project_network_policy_controller.go index e00798b1..820b12c5 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_network_policy_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_network_policy_controller.go @@ -85,6 +85,7 @@ type ProjectNetworkPolicyInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectNetworkPolicyList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectNetworkPolicyList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectNetworkPolicyController @@ -272,6 +273,11 @@ func (s *projectNetworkPolicyClient) List(opts metav1.ListOptions) (*ProjectNetw return obj.(*ProjectNetworkPolicyList), err } +func (s *projectNetworkPolicyClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectNetworkPolicyList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectNetworkPolicyList), err +} + func (s *projectNetworkPolicyClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_project_role_template_binding_controller.go b/apis/management.cattle.io/v3/zz_generated_project_role_template_binding_controller.go index 3d15c738..b389aedd 100644 --- a/apis/management.cattle.io/v3/zz_generated_project_role_template_binding_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_project_role_template_binding_controller.go @@ -85,6 +85,7 @@ type ProjectRoleTemplateBindingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ProjectRoleTemplateBindingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectRoleTemplateBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ProjectRoleTemplateBindingController @@ -272,6 +273,11 @@ func (s *projectRoleTemplateBindingClient) List(opts metav1.ListOptions) (*Proje return obj.(*ProjectRoleTemplateBindingList), err } +func (s *projectRoleTemplateBindingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ProjectRoleTemplateBindingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ProjectRoleTemplateBindingList), err +} + func (s *projectRoleTemplateBindingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_rke_addon_controller.go b/apis/management.cattle.io/v3/zz_generated_rke_addon_controller.go index b607e2d2..8dd90ac3 100644 --- a/apis/management.cattle.io/v3/zz_generated_rke_addon_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_rke_addon_controller.go @@ -85,6 +85,7 @@ type RKEAddonInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*RKEAddonList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*RKEAddonList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() RKEAddonController @@ -272,6 +273,11 @@ func (s *rkeAddonClient) List(opts metav1.ListOptions) (*RKEAddonList, error) { return obj.(*RKEAddonList), err } +func (s *rkeAddonClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*RKEAddonList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*RKEAddonList), err +} + func (s *rkeAddonClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_rke_k8s_service_option_controller.go b/apis/management.cattle.io/v3/zz_generated_rke_k8s_service_option_controller.go index b254ebb0..deb010b9 100644 --- a/apis/management.cattle.io/v3/zz_generated_rke_k8s_service_option_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_rke_k8s_service_option_controller.go @@ -85,6 +85,7 @@ type RKEK8sServiceOptionInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*RKEK8sServiceOptionList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*RKEK8sServiceOptionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() RKEK8sServiceOptionController @@ -272,6 +273,11 @@ func (s *rkeK8sServiceOptionClient) List(opts metav1.ListOptions) (*RKEK8sServic return obj.(*RKEK8sServiceOptionList), err } +func (s *rkeK8sServiceOptionClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*RKEK8sServiceOptionList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*RKEK8sServiceOptionList), err +} + func (s *rkeK8sServiceOptionClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_rke_k8s_system_image_controller.go b/apis/management.cattle.io/v3/zz_generated_rke_k8s_system_image_controller.go index 29568f39..e17c7c73 100644 --- a/apis/management.cattle.io/v3/zz_generated_rke_k8s_system_image_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_rke_k8s_system_image_controller.go @@ -85,6 +85,7 @@ type RKEK8sSystemImageInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*RKEK8sSystemImageList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*RKEK8sSystemImageList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() RKEK8sSystemImageController @@ -272,6 +273,11 @@ func (s *rkeK8sSystemImageClient) List(opts metav1.ListOptions) (*RKEK8sSystemIm return obj.(*RKEK8sSystemImageList), err } +func (s *rkeK8sSystemImageClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*RKEK8sSystemImageList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*RKEK8sSystemImageList), err +} + func (s *rkeK8sSystemImageClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_role_template_controller.go b/apis/management.cattle.io/v3/zz_generated_role_template_controller.go index 45033156..f2265f5d 100644 --- a/apis/management.cattle.io/v3/zz_generated_role_template_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_role_template_controller.go @@ -84,6 +84,7 @@ type RoleTemplateInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*RoleTemplateList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*RoleTemplateList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() RoleTemplateController @@ -271,6 +272,11 @@ func (s *roleTemplateClient) List(opts metav1.ListOptions) (*RoleTemplateList, e return obj.(*RoleTemplateList), err } +func (s *roleTemplateClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*RoleTemplateList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*RoleTemplateList), err +} + func (s *roleTemplateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_setting_controller.go b/apis/management.cattle.io/v3/zz_generated_setting_controller.go index 03d481b5..f936a663 100644 --- a/apis/management.cattle.io/v3/zz_generated_setting_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_setting_controller.go @@ -84,6 +84,7 @@ type SettingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*SettingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*SettingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() SettingController @@ -271,6 +272,11 @@ func (s *settingClient) List(opts metav1.ListOptions) (*SettingList, error) { return obj.(*SettingList), err } +func (s *settingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*SettingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*SettingList), err +} + func (s *settingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_template_content_controller.go b/apis/management.cattle.io/v3/zz_generated_template_content_controller.go index 1b17859c..19b7ee36 100644 --- a/apis/management.cattle.io/v3/zz_generated_template_content_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_template_content_controller.go @@ -84,6 +84,7 @@ type TemplateContentInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*TemplateContentList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*TemplateContentList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() TemplateContentController @@ -271,6 +272,11 @@ func (s *templateContentClient) List(opts metav1.ListOptions) (*TemplateContentL return obj.(*TemplateContentList), err } +func (s *templateContentClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*TemplateContentList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*TemplateContentList), err +} + func (s *templateContentClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_template_controller.go b/apis/management.cattle.io/v3/zz_generated_template_controller.go index 149766ad..dc357beb 100644 --- a/apis/management.cattle.io/v3/zz_generated_template_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_template_controller.go @@ -84,6 +84,7 @@ type TemplateInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*TemplateList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*TemplateList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() TemplateController @@ -271,6 +272,11 @@ func (s *templateClient) List(opts metav1.ListOptions) (*TemplateList, error) { return obj.(*TemplateList), err } +func (s *templateClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*TemplateList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*TemplateList), err +} + func (s *templateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_template_version_controller.go b/apis/management.cattle.io/v3/zz_generated_template_version_controller.go index f15068a4..f44e5126 100644 --- a/apis/management.cattle.io/v3/zz_generated_template_version_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_template_version_controller.go @@ -84,6 +84,7 @@ type TemplateVersionInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*TemplateVersionList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*TemplateVersionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() TemplateVersionController @@ -271,6 +272,11 @@ func (s *templateVersionClient) List(opts metav1.ListOptions) (*TemplateVersionL return obj.(*TemplateVersionList), err } +func (s *templateVersionClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*TemplateVersionList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*TemplateVersionList), err +} + func (s *templateVersionClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_token_controller.go b/apis/management.cattle.io/v3/zz_generated_token_controller.go index dd1ed4a3..f1e55757 100644 --- a/apis/management.cattle.io/v3/zz_generated_token_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_token_controller.go @@ -84,6 +84,7 @@ type TokenInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*TokenList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*TokenList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() TokenController @@ -271,6 +272,11 @@ func (s *tokenClient) List(opts metav1.ListOptions) (*TokenList, error) { return obj.(*TokenList), err } +func (s *tokenClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*TokenList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*TokenList), err +} + func (s *tokenClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_user_attribute_controller.go b/apis/management.cattle.io/v3/zz_generated_user_attribute_controller.go index a75767cd..c7f6fa3a 100644 --- a/apis/management.cattle.io/v3/zz_generated_user_attribute_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_user_attribute_controller.go @@ -84,6 +84,7 @@ type UserAttributeInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*UserAttributeList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*UserAttributeList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() UserAttributeController @@ -271,6 +272,11 @@ func (s *userAttributeClient) List(opts metav1.ListOptions) (*UserAttributeList, return obj.(*UserAttributeList), err } +func (s *userAttributeClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*UserAttributeList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*UserAttributeList), err +} + func (s *userAttributeClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3/zz_generated_user_controller.go b/apis/management.cattle.io/v3/zz_generated_user_controller.go index 25f5f332..18e446d5 100644 --- a/apis/management.cattle.io/v3/zz_generated_user_controller.go +++ b/apis/management.cattle.io/v3/zz_generated_user_controller.go @@ -84,6 +84,7 @@ type UserInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*UserList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*UserList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() UserController @@ -271,6 +272,11 @@ func (s *userClient) List(opts metav1.ListOptions) (*UserList, error) { return obj.(*UserList), err } +func (s *userClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*UserList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*UserList), err +} + func (s *userClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/management.cattle.io/v3public/fakes/zz_generated_auth_provider_mock.go b/apis/management.cattle.io/v3public/fakes/zz_generated_auth_provider_mock.go index 741e5a12..8113737c 100644 --- a/apis/management.cattle.io/v3public/fakes/zz_generated_auth_provider_mock.go +++ b/apis/management.cattle.io/v3public/fakes/zz_generated_auth_provider_mock.go @@ -674,6 +674,7 @@ var ( lockAuthProviderInterfaceMockGet sync.RWMutex lockAuthProviderInterfaceMockGetNamespaced sync.RWMutex lockAuthProviderInterfaceMockList sync.RWMutex + lockAuthProviderInterfaceMockListNamespaced sync.RWMutex lockAuthProviderInterfaceMockObjectClient sync.RWMutex lockAuthProviderInterfaceMockUpdate sync.RWMutex lockAuthProviderInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3public.AuthProviderInterface = &AuthProviderInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3public.AuthProviderList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type AuthProviderInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3public.AuthProviderList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type AuthProviderInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *AuthProviderInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *AuthProviderInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error) { + if mock.ListNamespacedFunc == nil { + panic("AuthProviderInterfaceMock.ListNamespacedFunc: method is nil but AuthProviderInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockAuthProviderInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockAuthProviderInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedAuthProviderInterface.ListNamespacedCalls()) +func (mock *AuthProviderInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockAuthProviderInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockAuthProviderInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *AuthProviderInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/management.cattle.io/v3public/zz_generated_auth_provider_controller.go b/apis/management.cattle.io/v3public/zz_generated_auth_provider_controller.go index 06bd7bf9..2d6d0d45 100644 --- a/apis/management.cattle.io/v3public/zz_generated_auth_provider_controller.go +++ b/apis/management.cattle.io/v3public/zz_generated_auth_provider_controller.go @@ -84,6 +84,7 @@ type AuthProviderInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*AuthProviderList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*AuthProviderList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() AuthProviderController @@ -271,6 +272,11 @@ func (s *authProviderClient) List(opts metav1.ListOptions) (*AuthProviderList, e return obj.(*AuthProviderList), err } +func (s *authProviderClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*AuthProviderList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*AuthProviderList), err +} + func (s *authProviderClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/monitoring.coreos.com/v1/fakes/zz_generated_alertmanager_mock.go b/apis/monitoring.coreos.com/v1/fakes/zz_generated_alertmanager_mock.go index 8c804566..50e9d69b 100644 --- a/apis/monitoring.coreos.com/v1/fakes/zz_generated_alertmanager_mock.go +++ b/apis/monitoring.coreos.com/v1/fakes/zz_generated_alertmanager_mock.go @@ -675,6 +675,7 @@ var ( lockAlertmanagerInterfaceMockGet sync.RWMutex lockAlertmanagerInterfaceMockGetNamespaced sync.RWMutex lockAlertmanagerInterfaceMockList sync.RWMutex + lockAlertmanagerInterfaceMockListNamespaced sync.RWMutex lockAlertmanagerInterfaceMockObjectClient sync.RWMutex lockAlertmanagerInterfaceMockUpdate sync.RWMutex lockAlertmanagerInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.AlertmanagerInterface = &AlertmanagerInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.AlertmanagerList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.AlertmanagerList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type AlertmanagerInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.AlertmanagerList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.AlertmanagerList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type AlertmanagerInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *AlertmanagerInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *AlertmanagerInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.AlertmanagerList, error) { + if mock.ListNamespacedFunc == nil { + panic("AlertmanagerInterfaceMock.ListNamespacedFunc: method is nil but AlertmanagerInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockAlertmanagerInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockAlertmanagerInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedAlertmanagerInterface.ListNamespacedCalls()) +func (mock *AlertmanagerInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockAlertmanagerInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockAlertmanagerInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *AlertmanagerInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/monitoring.coreos.com/v1/fakes/zz_generated_prometheus_mock.go b/apis/monitoring.coreos.com/v1/fakes/zz_generated_prometheus_mock.go index c64785ad..77a232e4 100644 --- a/apis/monitoring.coreos.com/v1/fakes/zz_generated_prometheus_mock.go +++ b/apis/monitoring.coreos.com/v1/fakes/zz_generated_prometheus_mock.go @@ -675,6 +675,7 @@ var ( lockPrometheusInterfaceMockGet sync.RWMutex lockPrometheusInterfaceMockGetNamespaced sync.RWMutex lockPrometheusInterfaceMockList sync.RWMutex + lockPrometheusInterfaceMockListNamespaced sync.RWMutex lockPrometheusInterfaceMockObjectClient sync.RWMutex lockPrometheusInterfaceMockUpdate sync.RWMutex lockPrometheusInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.PrometheusInterface = &PrometheusInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.PrometheusList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PrometheusList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type PrometheusInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.PrometheusList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.PrometheusList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type PrometheusInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *PrometheusInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PrometheusInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PrometheusList, error) { + if mock.ListNamespacedFunc == nil { + panic("PrometheusInterfaceMock.ListNamespacedFunc: method is nil but PrometheusInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPrometheusInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPrometheusInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPrometheusInterface.ListNamespacedCalls()) +func (mock *PrometheusInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockPrometheusInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPrometheusInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PrometheusInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/monitoring.coreos.com/v1/fakes/zz_generated_prometheus_rule_mock.go b/apis/monitoring.coreos.com/v1/fakes/zz_generated_prometheus_rule_mock.go index 65314224..8dcd4621 100644 --- a/apis/monitoring.coreos.com/v1/fakes/zz_generated_prometheus_rule_mock.go +++ b/apis/monitoring.coreos.com/v1/fakes/zz_generated_prometheus_rule_mock.go @@ -675,6 +675,7 @@ var ( lockPrometheusRuleInterfaceMockGet sync.RWMutex lockPrometheusRuleInterfaceMockGetNamespaced sync.RWMutex lockPrometheusRuleInterfaceMockList sync.RWMutex + lockPrometheusRuleInterfaceMockListNamespaced sync.RWMutex lockPrometheusRuleInterfaceMockObjectClient sync.RWMutex lockPrometheusRuleInterfaceMockUpdate sync.RWMutex lockPrometheusRuleInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.PrometheusRuleInterface = &PrometheusRuleInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type PrometheusRuleInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type PrometheusRuleInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *PrometheusRuleInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PrometheusRuleInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) { + if mock.ListNamespacedFunc == nil { + panic("PrometheusRuleInterfaceMock.ListNamespacedFunc: method is nil but PrometheusRuleInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPrometheusRuleInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPrometheusRuleInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPrometheusRuleInterface.ListNamespacedCalls()) +func (mock *PrometheusRuleInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockPrometheusRuleInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPrometheusRuleInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PrometheusRuleInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/monitoring.coreos.com/v1/fakes/zz_generated_service_monitor_mock.go b/apis/monitoring.coreos.com/v1/fakes/zz_generated_service_monitor_mock.go index c9c80fd9..21e5c5ed 100644 --- a/apis/monitoring.coreos.com/v1/fakes/zz_generated_service_monitor_mock.go +++ b/apis/monitoring.coreos.com/v1/fakes/zz_generated_service_monitor_mock.go @@ -675,6 +675,7 @@ var ( lockServiceMonitorInterfaceMockGet sync.RWMutex lockServiceMonitorInterfaceMockGetNamespaced sync.RWMutex lockServiceMonitorInterfaceMockList sync.RWMutex + lockServiceMonitorInterfaceMockListNamespaced sync.RWMutex lockServiceMonitorInterfaceMockObjectClient sync.RWMutex lockServiceMonitorInterfaceMockUpdate sync.RWMutex lockServiceMonitorInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ServiceMonitorInterface = &ServiceMonitorInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ServiceMonitorInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ServiceMonitorInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ServiceMonitorInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ServiceMonitorInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) { + if mock.ListNamespacedFunc == nil { + panic("ServiceMonitorInterfaceMock.ListNamespacedFunc: method is nil but ServiceMonitorInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockServiceMonitorInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockServiceMonitorInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedServiceMonitorInterface.ListNamespacedCalls()) +func (mock *ServiceMonitorInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockServiceMonitorInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockServiceMonitorInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ServiceMonitorInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/monitoring.coreos.com/v1/zz_generated_alertmanager_controller.go b/apis/monitoring.coreos.com/v1/zz_generated_alertmanager_controller.go index eefca0ca..f2b570ba 100644 --- a/apis/monitoring.coreos.com/v1/zz_generated_alertmanager_controller.go +++ b/apis/monitoring.coreos.com/v1/zz_generated_alertmanager_controller.go @@ -86,6 +86,7 @@ type AlertmanagerInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*AlertmanagerList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*AlertmanagerList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() AlertmanagerController @@ -273,6 +274,11 @@ func (s *alertmanagerClient) List(opts metav1.ListOptions) (*AlertmanagerList, e return obj.(*AlertmanagerList), err } +func (s *alertmanagerClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*AlertmanagerList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*AlertmanagerList), err +} + func (s *alertmanagerClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/monitoring.coreos.com/v1/zz_generated_prometheus_controller.go b/apis/monitoring.coreos.com/v1/zz_generated_prometheus_controller.go index c8f36566..afb98761 100644 --- a/apis/monitoring.coreos.com/v1/zz_generated_prometheus_controller.go +++ b/apis/monitoring.coreos.com/v1/zz_generated_prometheus_controller.go @@ -86,6 +86,7 @@ type PrometheusInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PrometheusList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PrometheusList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PrometheusController @@ -273,6 +274,11 @@ func (s *prometheusClient) List(opts metav1.ListOptions) (*PrometheusList, error return obj.(*PrometheusList), err } +func (s *prometheusClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PrometheusList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PrometheusList), err +} + func (s *prometheusClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/monitoring.coreos.com/v1/zz_generated_prometheus_rule_controller.go b/apis/monitoring.coreos.com/v1/zz_generated_prometheus_rule_controller.go index c07d2c88..e2ea268f 100644 --- a/apis/monitoring.coreos.com/v1/zz_generated_prometheus_rule_controller.go +++ b/apis/monitoring.coreos.com/v1/zz_generated_prometheus_rule_controller.go @@ -86,6 +86,7 @@ type PrometheusRuleInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PrometheusRuleList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PrometheusRuleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PrometheusRuleController @@ -273,6 +274,11 @@ func (s *prometheusRuleClient) List(opts metav1.ListOptions) (*PrometheusRuleLis return obj.(*PrometheusRuleList), err } +func (s *prometheusRuleClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PrometheusRuleList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PrometheusRuleList), err +} + func (s *prometheusRuleClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/monitoring.coreos.com/v1/zz_generated_service_monitor_controller.go b/apis/monitoring.coreos.com/v1/zz_generated_service_monitor_controller.go index ea96903a..bdc23aaa 100644 --- a/apis/monitoring.coreos.com/v1/zz_generated_service_monitor_controller.go +++ b/apis/monitoring.coreos.com/v1/zz_generated_service_monitor_controller.go @@ -86,6 +86,7 @@ type ServiceMonitorInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ServiceMonitorList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ServiceMonitorList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ServiceMonitorController @@ -273,6 +274,11 @@ func (s *serviceMonitorClient) List(opts metav1.ListOptions) (*ServiceMonitorLis return obj.(*ServiceMonitorList), err } +func (s *serviceMonitorClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ServiceMonitorList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ServiceMonitorList), err +} + func (s *serviceMonitorClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/networking.istio.io/v1alpha3/fakes/zz_generated_destination_rule_mock.go b/apis/networking.istio.io/v1alpha3/fakes/zz_generated_destination_rule_mock.go index 5b801c79..0dfe43c5 100644 --- a/apis/networking.istio.io/v1alpha3/fakes/zz_generated_destination_rule_mock.go +++ b/apis/networking.istio.io/v1alpha3/fakes/zz_generated_destination_rule_mock.go @@ -675,6 +675,7 @@ var ( lockDestinationRuleInterfaceMockGet sync.RWMutex lockDestinationRuleInterfaceMockGetNamespaced sync.RWMutex lockDestinationRuleInterfaceMockList sync.RWMutex + lockDestinationRuleInterfaceMockListNamespaced sync.RWMutex lockDestinationRuleInterfaceMockObjectClient sync.RWMutex lockDestinationRuleInterfaceMockUpdate sync.RWMutex lockDestinationRuleInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1alpha3a.DestinationRuleInterface = &DestinationRuleInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type DestinationRuleInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type DestinationRuleInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *DestinationRuleInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *DestinationRuleInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) { + if mock.ListNamespacedFunc == nil { + panic("DestinationRuleInterfaceMock.ListNamespacedFunc: method is nil but DestinationRuleInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockDestinationRuleInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockDestinationRuleInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedDestinationRuleInterface.ListNamespacedCalls()) +func (mock *DestinationRuleInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockDestinationRuleInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockDestinationRuleInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *DestinationRuleInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/networking.istio.io/v1alpha3/fakes/zz_generated_virtual_service_mock.go b/apis/networking.istio.io/v1alpha3/fakes/zz_generated_virtual_service_mock.go index 43fcf888..2fb15286 100644 --- a/apis/networking.istio.io/v1alpha3/fakes/zz_generated_virtual_service_mock.go +++ b/apis/networking.istio.io/v1alpha3/fakes/zz_generated_virtual_service_mock.go @@ -675,6 +675,7 @@ var ( lockVirtualServiceInterfaceMockGet sync.RWMutex lockVirtualServiceInterfaceMockGetNamespaced sync.RWMutex lockVirtualServiceInterfaceMockList sync.RWMutex + lockVirtualServiceInterfaceMockListNamespaced sync.RWMutex lockVirtualServiceInterfaceMockObjectClient sync.RWMutex lockVirtualServiceInterfaceMockUpdate sync.RWMutex lockVirtualServiceInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1alpha3a.VirtualServiceInterface = &VirtualServiceInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type VirtualServiceInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type VirtualServiceInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *VirtualServiceInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *VirtualServiceInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) { + if mock.ListNamespacedFunc == nil { + panic("VirtualServiceInterfaceMock.ListNamespacedFunc: method is nil but VirtualServiceInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockVirtualServiceInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockVirtualServiceInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedVirtualServiceInterface.ListNamespacedCalls()) +func (mock *VirtualServiceInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockVirtualServiceInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockVirtualServiceInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *VirtualServiceInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/networking.istio.io/v1alpha3/zz_generated_destination_rule_controller.go b/apis/networking.istio.io/v1alpha3/zz_generated_destination_rule_controller.go index d7841ac8..6cd11e80 100644 --- a/apis/networking.istio.io/v1alpha3/zz_generated_destination_rule_controller.go +++ b/apis/networking.istio.io/v1alpha3/zz_generated_destination_rule_controller.go @@ -86,6 +86,7 @@ type DestinationRuleInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DestinationRuleList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*DestinationRuleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() DestinationRuleController @@ -273,6 +274,11 @@ func (s *destinationRuleClient) List(opts metav1.ListOptions) (*DestinationRuleL return obj.(*DestinationRuleList), err } +func (s *destinationRuleClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*DestinationRuleList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*DestinationRuleList), err +} + func (s *destinationRuleClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/networking.istio.io/v1alpha3/zz_generated_virtual_service_controller.go b/apis/networking.istio.io/v1alpha3/zz_generated_virtual_service_controller.go index 13470205..c786b382 100644 --- a/apis/networking.istio.io/v1alpha3/zz_generated_virtual_service_controller.go +++ b/apis/networking.istio.io/v1alpha3/zz_generated_virtual_service_controller.go @@ -86,6 +86,7 @@ type VirtualServiceInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*VirtualServiceList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*VirtualServiceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() VirtualServiceController @@ -273,6 +274,11 @@ func (s *virtualServiceClient) List(opts metav1.ListOptions) (*VirtualServiceLis return obj.(*VirtualServiceList), err } +func (s *virtualServiceClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*VirtualServiceList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*VirtualServiceList), err +} + func (s *virtualServiceClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/networking.k8s.io/v1/fakes/zz_generated_network_policy_mock.go b/apis/networking.k8s.io/v1/fakes/zz_generated_network_policy_mock.go index fcf5b20e..d3ba7326 100644 --- a/apis/networking.k8s.io/v1/fakes/zz_generated_network_policy_mock.go +++ b/apis/networking.k8s.io/v1/fakes/zz_generated_network_policy_mock.go @@ -675,6 +675,7 @@ var ( lockNetworkPolicyInterfaceMockGet sync.RWMutex lockNetworkPolicyInterfaceMockGetNamespaced sync.RWMutex lockNetworkPolicyInterfaceMockList sync.RWMutex + lockNetworkPolicyInterfaceMockListNamespaced sync.RWMutex lockNetworkPolicyInterfaceMockObjectClient sync.RWMutex lockNetworkPolicyInterfaceMockUpdate sync.RWMutex lockNetworkPolicyInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.NetworkPolicyInterface = &NetworkPolicyInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.NetworkPolicyList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.NetworkPolicyList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type NetworkPolicyInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.NetworkPolicyList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.NetworkPolicyList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type NetworkPolicyInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *NetworkPolicyInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NetworkPolicyInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.NetworkPolicyList, error) { + if mock.ListNamespacedFunc == nil { + panic("NetworkPolicyInterfaceMock.ListNamespacedFunc: method is nil but NetworkPolicyInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNetworkPolicyInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNetworkPolicyInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNetworkPolicyInterface.ListNamespacedCalls()) +func (mock *NetworkPolicyInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockNetworkPolicyInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNetworkPolicyInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NetworkPolicyInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/networking.k8s.io/v1/zz_generated_network_policy_controller.go b/apis/networking.k8s.io/v1/zz_generated_network_policy_controller.go index 0d9fa762..43592631 100644 --- a/apis/networking.k8s.io/v1/zz_generated_network_policy_controller.go +++ b/apis/networking.k8s.io/v1/zz_generated_network_policy_controller.go @@ -86,6 +86,7 @@ type NetworkPolicyInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NetworkPolicyList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NetworkPolicyList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NetworkPolicyController @@ -273,6 +274,11 @@ func (s *networkPolicyClient) List(opts metav1.ListOptions) (*NetworkPolicyList, return obj.(*NetworkPolicyList), err } +func (s *networkPolicyClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NetworkPolicyList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NetworkPolicyList), err +} + func (s *networkPolicyClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/policy/v1beta1/fakes/zz_generated_pod_security_policy_mock.go b/apis/policy/v1beta1/fakes/zz_generated_pod_security_policy_mock.go index 04a43462..959773f1 100644 --- a/apis/policy/v1beta1/fakes/zz_generated_pod_security_policy_mock.go +++ b/apis/policy/v1beta1/fakes/zz_generated_pod_security_policy_mock.go @@ -675,6 +675,7 @@ var ( lockPodSecurityPolicyInterfaceMockGet sync.RWMutex lockPodSecurityPolicyInterfaceMockGetNamespaced sync.RWMutex lockPodSecurityPolicyInterfaceMockList sync.RWMutex + lockPodSecurityPolicyInterfaceMockListNamespaced sync.RWMutex lockPodSecurityPolicyInterfaceMockObjectClient sync.RWMutex lockPodSecurityPolicyInterfaceMockUpdate sync.RWMutex lockPodSecurityPolicyInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1beta1a.PodSecurityPolicyInterface = &PodSecurityPolicyInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v1beta1a.PodSecurityPolicyList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1beta1a.PodSecurityPolicyList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type PodSecurityPolicyInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v1beta1a.PodSecurityPolicyList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v1beta1a.PodSecurityPolicyList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type PodSecurityPolicyInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *PodSecurityPolicyInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PodSecurityPolicyInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1beta1a.PodSecurityPolicyList, error) { + if mock.ListNamespacedFunc == nil { + panic("PodSecurityPolicyInterfaceMock.ListNamespacedFunc: method is nil but PodSecurityPolicyInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPodSecurityPolicyInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPodSecurityPolicyInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPodSecurityPolicyInterface.ListNamespacedCalls()) +func (mock *PodSecurityPolicyInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockPodSecurityPolicyInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPodSecurityPolicyInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PodSecurityPolicyInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/policy/v1beta1/zz_generated_pod_security_policy_controller.go b/apis/policy/v1beta1/zz_generated_pod_security_policy_controller.go index 6ab55187..3d88cfc3 100644 --- a/apis/policy/v1beta1/zz_generated_pod_security_policy_controller.go +++ b/apis/policy/v1beta1/zz_generated_pod_security_policy_controller.go @@ -85,6 +85,7 @@ type PodSecurityPolicyInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PodSecurityPolicyList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PodSecurityPolicyList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PodSecurityPolicyController @@ -272,6 +273,11 @@ func (s *podSecurityPolicyClient) List(opts metav1.ListOptions) (*PodSecurityPol return obj.(*PodSecurityPolicyList), err } +func (s *podSecurityPolicyClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PodSecurityPolicyList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PodSecurityPolicyList), err +} + func (s *podSecurityPolicyClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_app_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_app_mock.go index 2063b02d..5fb901fa 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_app_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_app_mock.go @@ -674,6 +674,7 @@ var ( lockAppInterfaceMockGet sync.RWMutex lockAppInterfaceMockGetNamespaced sync.RWMutex lockAppInterfaceMockList sync.RWMutex + lockAppInterfaceMockListNamespaced sync.RWMutex lockAppInterfaceMockObjectClient sync.RWMutex lockAppInterfaceMockUpdate sync.RWMutex lockAppInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.AppInterface = &AppInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.AppList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.AppList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type AppInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.AppList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.AppList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type AppInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *AppInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *AppInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.AppList, error) { + if mock.ListNamespacedFunc == nil { + panic("AppInterfaceMock.ListNamespacedFunc: method is nil but AppInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockAppInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockAppInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedAppInterface.ListNamespacedCalls()) +func (mock *AppInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockAppInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockAppInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *AppInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_app_revision_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_app_revision_mock.go index b73a8c54..ff127c58 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_app_revision_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_app_revision_mock.go @@ -674,6 +674,7 @@ var ( lockAppRevisionInterfaceMockGet sync.RWMutex lockAppRevisionInterfaceMockGetNamespaced sync.RWMutex lockAppRevisionInterfaceMockList sync.RWMutex + lockAppRevisionInterfaceMockListNamespaced sync.RWMutex lockAppRevisionInterfaceMockObjectClient sync.RWMutex lockAppRevisionInterfaceMockUpdate sync.RWMutex lockAppRevisionInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.AppRevisionInterface = &AppRevisionInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.AppRevisionList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.AppRevisionList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type AppRevisionInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.AppRevisionList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.AppRevisionList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type AppRevisionInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *AppRevisionInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *AppRevisionInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.AppRevisionList, error) { + if mock.ListNamespacedFunc == nil { + panic("AppRevisionInterfaceMock.ListNamespacedFunc: method is nil but AppRevisionInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockAppRevisionInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockAppRevisionInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedAppRevisionInterface.ListNamespacedCalls()) +func (mock *AppRevisionInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockAppRevisionInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockAppRevisionInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *AppRevisionInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_basic_auth_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_basic_auth_mock.go index c5780d8b..e1223130 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_basic_auth_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_basic_auth_mock.go @@ -674,6 +674,7 @@ var ( lockBasicAuthInterfaceMockGet sync.RWMutex lockBasicAuthInterfaceMockGetNamespaced sync.RWMutex lockBasicAuthInterfaceMockList sync.RWMutex + lockBasicAuthInterfaceMockListNamespaced sync.RWMutex lockBasicAuthInterfaceMockObjectClient sync.RWMutex lockBasicAuthInterfaceMockUpdate sync.RWMutex lockBasicAuthInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.BasicAuthInterface = &BasicAuthInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.BasicAuthList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.BasicAuthList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type BasicAuthInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.BasicAuthList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.BasicAuthList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type BasicAuthInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *BasicAuthInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *BasicAuthInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.BasicAuthList, error) { + if mock.ListNamespacedFunc == nil { + panic("BasicAuthInterfaceMock.ListNamespacedFunc: method is nil but BasicAuthInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockBasicAuthInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockBasicAuthInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedBasicAuthInterface.ListNamespacedCalls()) +func (mock *BasicAuthInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockBasicAuthInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockBasicAuthInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *BasicAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_certificate_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_certificate_mock.go index 7dc31813..39a6360d 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_certificate_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_certificate_mock.go @@ -674,6 +674,7 @@ var ( lockCertificateInterfaceMockGet sync.RWMutex lockCertificateInterfaceMockGetNamespaced sync.RWMutex lockCertificateInterfaceMockList sync.RWMutex + lockCertificateInterfaceMockListNamespaced sync.RWMutex lockCertificateInterfaceMockObjectClient sync.RWMutex lockCertificateInterfaceMockUpdate sync.RWMutex lockCertificateInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.CertificateInterface = &CertificateInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.CertificateList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.CertificateList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type CertificateInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.CertificateList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.CertificateList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type CertificateInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *CertificateInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *CertificateInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.CertificateList, error) { + if mock.ListNamespacedFunc == nil { + panic("CertificateInterfaceMock.ListNamespacedFunc: method is nil but CertificateInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockCertificateInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockCertificateInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedCertificateInterface.ListNamespacedCalls()) +func (mock *CertificateInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockCertificateInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockCertificateInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *CertificateInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_docker_credential_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_docker_credential_mock.go index f0387a4f..38b54049 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_docker_credential_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_docker_credential_mock.go @@ -674,6 +674,7 @@ var ( lockDockerCredentialInterfaceMockGet sync.RWMutex lockDockerCredentialInterfaceMockGetNamespaced sync.RWMutex lockDockerCredentialInterfaceMockList sync.RWMutex + lockDockerCredentialInterfaceMockListNamespaced sync.RWMutex lockDockerCredentialInterfaceMockObjectClient sync.RWMutex lockDockerCredentialInterfaceMockUpdate sync.RWMutex lockDockerCredentialInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.DockerCredentialInterface = &DockerCredentialInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.DockerCredentialList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.DockerCredentialList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type DockerCredentialInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.DockerCredentialList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.DockerCredentialList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type DockerCredentialInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *DockerCredentialInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *DockerCredentialInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.DockerCredentialList, error) { + if mock.ListNamespacedFunc == nil { + panic("DockerCredentialInterfaceMock.ListNamespacedFunc: method is nil but DockerCredentialInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockDockerCredentialInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockDockerCredentialInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedDockerCredentialInterface.ListNamespacedCalls()) +func (mock *DockerCredentialInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockDockerCredentialInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockDockerCredentialInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *DockerCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_basic_auth_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_basic_auth_mock.go index ff2baa2a..ab491457 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_basic_auth_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_basic_auth_mock.go @@ -674,6 +674,7 @@ var ( lockNamespacedBasicAuthInterfaceMockGet sync.RWMutex lockNamespacedBasicAuthInterfaceMockGetNamespaced sync.RWMutex lockNamespacedBasicAuthInterfaceMockList sync.RWMutex + lockNamespacedBasicAuthInterfaceMockListNamespaced sync.RWMutex lockNamespacedBasicAuthInterfaceMockObjectClient sync.RWMutex lockNamespacedBasicAuthInterfaceMockUpdate sync.RWMutex lockNamespacedBasicAuthInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NamespacedBasicAuthInterface = &NamespacedBasicAuthInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NamespacedBasicAuthInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NamespacedBasicAuthInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NamespacedBasicAuthInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NamespacedBasicAuthInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error) { + if mock.ListNamespacedFunc == nil { + panic("NamespacedBasicAuthInterfaceMock.ListNamespacedFunc: method is nil but NamespacedBasicAuthInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNamespacedBasicAuthInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNamespacedBasicAuthInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNamespacedBasicAuthInterface.ListNamespacedCalls()) +func (mock *NamespacedBasicAuthInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNamespacedBasicAuthInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNamespacedBasicAuthInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NamespacedBasicAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_certificate_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_certificate_mock.go index c22d619e..fc522aa5 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_certificate_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_certificate_mock.go @@ -674,6 +674,7 @@ var ( lockNamespacedCertificateInterfaceMockGet sync.RWMutex lockNamespacedCertificateInterfaceMockGetNamespaced sync.RWMutex lockNamespacedCertificateInterfaceMockList sync.RWMutex + lockNamespacedCertificateInterfaceMockListNamespaced sync.RWMutex lockNamespacedCertificateInterfaceMockObjectClient sync.RWMutex lockNamespacedCertificateInterfaceMockUpdate sync.RWMutex lockNamespacedCertificateInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NamespacedCertificateInterface = &NamespacedCertificateInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.NamespacedCertificateList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NamespacedCertificateList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NamespacedCertificateInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedCertificateList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NamespacedCertificateList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NamespacedCertificateInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NamespacedCertificateInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NamespacedCertificateInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NamespacedCertificateList, error) { + if mock.ListNamespacedFunc == nil { + panic("NamespacedCertificateInterfaceMock.ListNamespacedFunc: method is nil but NamespacedCertificateInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNamespacedCertificateInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNamespacedCertificateInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNamespacedCertificateInterface.ListNamespacedCalls()) +func (mock *NamespacedCertificateInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNamespacedCertificateInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNamespacedCertificateInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NamespacedCertificateInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_docker_credential_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_docker_credential_mock.go index fd993799..5137f19c 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_docker_credential_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_docker_credential_mock.go @@ -674,6 +674,7 @@ var ( lockNamespacedDockerCredentialInterfaceMockGet sync.RWMutex lockNamespacedDockerCredentialInterfaceMockGetNamespaced sync.RWMutex lockNamespacedDockerCredentialInterfaceMockList sync.RWMutex + lockNamespacedDockerCredentialInterfaceMockListNamespaced sync.RWMutex lockNamespacedDockerCredentialInterfaceMockObjectClient sync.RWMutex lockNamespacedDockerCredentialInterfaceMockUpdate sync.RWMutex lockNamespacedDockerCredentialInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NamespacedDockerCredentialInterface = &NamespacedDockerCredentialInterf // ListFunc: func(opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NamespacedDockerCredentialInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NamespacedDockerCredentialInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NamespacedDockerCredentialInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NamespacedDockerCredentialInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error) { + if mock.ListNamespacedFunc == nil { + panic("NamespacedDockerCredentialInterfaceMock.ListNamespacedFunc: method is nil but NamespacedDockerCredentialInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNamespacedDockerCredentialInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNamespacedDockerCredentialInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNamespacedDockerCredentialInterface.ListNamespacedCalls()) +func (mock *NamespacedDockerCredentialInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNamespacedDockerCredentialInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNamespacedDockerCredentialInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NamespacedDockerCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_service_account_token_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_service_account_token_mock.go index 66181b68..cb4d8bbb 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_service_account_token_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_service_account_token_mock.go @@ -674,6 +674,7 @@ var ( lockNamespacedServiceAccountTokenInterfaceMockGet sync.RWMutex lockNamespacedServiceAccountTokenInterfaceMockGetNamespaced sync.RWMutex lockNamespacedServiceAccountTokenInterfaceMockList sync.RWMutex + lockNamespacedServiceAccountTokenInterfaceMockListNamespaced sync.RWMutex lockNamespacedServiceAccountTokenInterfaceMockObjectClient sync.RWMutex lockNamespacedServiceAccountTokenInterfaceMockUpdate sync.RWMutex lockNamespacedServiceAccountTokenInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NamespacedServiceAccountTokenInterface = &NamespacedServiceAccountToken // ListFunc: func(opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NamespacedServiceAccountTokenInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NamespacedServiceAccountTokenInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NamespacedServiceAccountTokenInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NamespacedServiceAccountTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error) { + if mock.ListNamespacedFunc == nil { + panic("NamespacedServiceAccountTokenInterfaceMock.ListNamespacedFunc: method is nil but NamespacedServiceAccountTokenInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNamespacedServiceAccountTokenInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNamespacedServiceAccountTokenInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNamespacedServiceAccountTokenInterface.ListNamespacedCalls()) +func (mock *NamespacedServiceAccountTokenInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNamespacedServiceAccountTokenInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNamespacedServiceAccountTokenInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NamespacedServiceAccountTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_ssh_auth_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_ssh_auth_mock.go index d587def2..895ffd9e 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_ssh_auth_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_namespaced_ssh_auth_mock.go @@ -674,6 +674,7 @@ var ( lockNamespacedSSHAuthInterfaceMockGet sync.RWMutex lockNamespacedSSHAuthInterfaceMockGetNamespaced sync.RWMutex lockNamespacedSSHAuthInterfaceMockList sync.RWMutex + lockNamespacedSSHAuthInterfaceMockListNamespaced sync.RWMutex lockNamespacedSSHAuthInterfaceMockObjectClient sync.RWMutex lockNamespacedSSHAuthInterfaceMockUpdate sync.RWMutex lockNamespacedSSHAuthInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.NamespacedSSHAuthInterface = &NamespacedSSHAuthInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type NamespacedSSHAuthInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type NamespacedSSHAuthInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *NamespacedSSHAuthInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *NamespacedSSHAuthInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error) { + if mock.ListNamespacedFunc == nil { + panic("NamespacedSSHAuthInterfaceMock.ListNamespacedFunc: method is nil but NamespacedSSHAuthInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockNamespacedSSHAuthInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockNamespacedSSHAuthInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedNamespacedSSHAuthInterface.ListNamespacedCalls()) +func (mock *NamespacedSSHAuthInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockNamespacedSSHAuthInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockNamespacedSSHAuthInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *NamespacedSSHAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_execution_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_execution_mock.go index 961558dd..1cf111d9 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_execution_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_execution_mock.go @@ -674,6 +674,7 @@ var ( lockPipelineExecutionInterfaceMockGet sync.RWMutex lockPipelineExecutionInterfaceMockGetNamespaced sync.RWMutex lockPipelineExecutionInterfaceMockList sync.RWMutex + lockPipelineExecutionInterfaceMockListNamespaced sync.RWMutex lockPipelineExecutionInterfaceMockObjectClient sync.RWMutex lockPipelineExecutionInterfaceMockUpdate sync.RWMutex lockPipelineExecutionInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.PipelineExecutionInterface = &PipelineExecutionInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.PipelineExecutionList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.PipelineExecutionList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type PipelineExecutionInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PipelineExecutionList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.PipelineExecutionList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type PipelineExecutionInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *PipelineExecutionInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PipelineExecutionInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.PipelineExecutionList, error) { + if mock.ListNamespacedFunc == nil { + panic("PipelineExecutionInterfaceMock.ListNamespacedFunc: method is nil but PipelineExecutionInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPipelineExecutionInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPipelineExecutionInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPipelineExecutionInterface.ListNamespacedCalls()) +func (mock *PipelineExecutionInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockPipelineExecutionInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPipelineExecutionInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PipelineExecutionInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_mock.go index b3f6ce38..69f85b78 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_mock.go @@ -674,6 +674,7 @@ var ( lockPipelineInterfaceMockGet sync.RWMutex lockPipelineInterfaceMockGetNamespaced sync.RWMutex lockPipelineInterfaceMockList sync.RWMutex + lockPipelineInterfaceMockListNamespaced sync.RWMutex lockPipelineInterfaceMockObjectClient sync.RWMutex lockPipelineInterfaceMockUpdate sync.RWMutex lockPipelineInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.PipelineInterface = &PipelineInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.PipelineList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.PipelineList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type PipelineInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PipelineList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.PipelineList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type PipelineInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *PipelineInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PipelineInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.PipelineList, error) { + if mock.ListNamespacedFunc == nil { + panic("PipelineInterfaceMock.ListNamespacedFunc: method is nil but PipelineInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPipelineInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPipelineInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPipelineInterface.ListNamespacedCalls()) +func (mock *PipelineInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockPipelineInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPipelineInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PipelineInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_setting_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_setting_mock.go index ff3b2ee8..2b51cff8 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_setting_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_pipeline_setting_mock.go @@ -674,6 +674,7 @@ var ( lockPipelineSettingInterfaceMockGet sync.RWMutex lockPipelineSettingInterfaceMockGetNamespaced sync.RWMutex lockPipelineSettingInterfaceMockList sync.RWMutex + lockPipelineSettingInterfaceMockListNamespaced sync.RWMutex lockPipelineSettingInterfaceMockObjectClient sync.RWMutex lockPipelineSettingInterfaceMockUpdate sync.RWMutex lockPipelineSettingInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.PipelineSettingInterface = &PipelineSettingInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.PipelineSettingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.PipelineSettingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type PipelineSettingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PipelineSettingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.PipelineSettingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type PipelineSettingInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *PipelineSettingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *PipelineSettingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.PipelineSettingList, error) { + if mock.ListNamespacedFunc == nil { + panic("PipelineSettingInterfaceMock.ListNamespacedFunc: method is nil but PipelineSettingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockPipelineSettingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockPipelineSettingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedPipelineSettingInterface.ListNamespacedCalls()) +func (mock *PipelineSettingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockPipelineSettingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockPipelineSettingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *PipelineSettingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_service_account_token_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_service_account_token_mock.go index bcc93719..99da5e82 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_service_account_token_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_service_account_token_mock.go @@ -674,6 +674,7 @@ var ( lockServiceAccountTokenInterfaceMockGet sync.RWMutex lockServiceAccountTokenInterfaceMockGetNamespaced sync.RWMutex lockServiceAccountTokenInterfaceMockList sync.RWMutex + lockServiceAccountTokenInterfaceMockListNamespaced sync.RWMutex lockServiceAccountTokenInterfaceMockObjectClient sync.RWMutex lockServiceAccountTokenInterfaceMockUpdate sync.RWMutex lockServiceAccountTokenInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.ServiceAccountTokenInterface = &ServiceAccountTokenInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.ServiceAccountTokenList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ServiceAccountTokenList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type ServiceAccountTokenInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ServiceAccountTokenList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ServiceAccountTokenList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type ServiceAccountTokenInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *ServiceAccountTokenInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ServiceAccountTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ServiceAccountTokenList, error) { + if mock.ListNamespacedFunc == nil { + panic("ServiceAccountTokenInterfaceMock.ListNamespacedFunc: method is nil but ServiceAccountTokenInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockServiceAccountTokenInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockServiceAccountTokenInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedServiceAccountTokenInterface.ListNamespacedCalls()) +func (mock *ServiceAccountTokenInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockServiceAccountTokenInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockServiceAccountTokenInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ServiceAccountTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_source_code_credential_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_source_code_credential_mock.go index 5d38dd65..7cd751a6 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_source_code_credential_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_source_code_credential_mock.go @@ -674,6 +674,7 @@ var ( lockSourceCodeCredentialInterfaceMockGet sync.RWMutex lockSourceCodeCredentialInterfaceMockGetNamespaced sync.RWMutex lockSourceCodeCredentialInterfaceMockList sync.RWMutex + lockSourceCodeCredentialInterfaceMockListNamespaced sync.RWMutex lockSourceCodeCredentialInterfaceMockObjectClient sync.RWMutex lockSourceCodeCredentialInterfaceMockUpdate sync.RWMutex lockSourceCodeCredentialInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.SourceCodeCredentialInterface = &SourceCodeCredentialInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.SourceCodeCredentialList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.SourceCodeCredentialList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type SourceCodeCredentialInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SourceCodeCredentialList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.SourceCodeCredentialList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type SourceCodeCredentialInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *SourceCodeCredentialInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *SourceCodeCredentialInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.SourceCodeCredentialList, error) { + if mock.ListNamespacedFunc == nil { + panic("SourceCodeCredentialInterfaceMock.ListNamespacedFunc: method is nil but SourceCodeCredentialInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockSourceCodeCredentialInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockSourceCodeCredentialInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedSourceCodeCredentialInterface.ListNamespacedCalls()) +func (mock *SourceCodeCredentialInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockSourceCodeCredentialInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockSourceCodeCredentialInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *SourceCodeCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_source_code_provider_config_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_source_code_provider_config_mock.go index 968a658a..81fc928b 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_source_code_provider_config_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_source_code_provider_config_mock.go @@ -674,6 +674,7 @@ var ( lockSourceCodeProviderConfigInterfaceMockGet sync.RWMutex lockSourceCodeProviderConfigInterfaceMockGetNamespaced sync.RWMutex lockSourceCodeProviderConfigInterfaceMockList sync.RWMutex + lockSourceCodeProviderConfigInterfaceMockListNamespaced sync.RWMutex lockSourceCodeProviderConfigInterfaceMockObjectClient sync.RWMutex lockSourceCodeProviderConfigInterfaceMockUpdate sync.RWMutex lockSourceCodeProviderConfigInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.SourceCodeProviderConfigInterface = &SourceCodeProviderConfigInterfaceM // ListFunc: func(opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type SourceCodeProviderConfigInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type SourceCodeProviderConfigInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *SourceCodeProviderConfigInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *SourceCodeProviderConfigInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error) { + if mock.ListNamespacedFunc == nil { + panic("SourceCodeProviderConfigInterfaceMock.ListNamespacedFunc: method is nil but SourceCodeProviderConfigInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockSourceCodeProviderConfigInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockSourceCodeProviderConfigInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedSourceCodeProviderConfigInterface.ListNamespacedCalls()) +func (mock *SourceCodeProviderConfigInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockSourceCodeProviderConfigInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockSourceCodeProviderConfigInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *SourceCodeProviderConfigInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_source_code_provider_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_source_code_provider_mock.go index 5d4b5365..2bed006c 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_source_code_provider_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_source_code_provider_mock.go @@ -674,6 +674,7 @@ var ( lockSourceCodeProviderInterfaceMockGet sync.RWMutex lockSourceCodeProviderInterfaceMockGetNamespaced sync.RWMutex lockSourceCodeProviderInterfaceMockList sync.RWMutex + lockSourceCodeProviderInterfaceMockListNamespaced sync.RWMutex lockSourceCodeProviderInterfaceMockObjectClient sync.RWMutex lockSourceCodeProviderInterfaceMockUpdate sync.RWMutex lockSourceCodeProviderInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.SourceCodeProviderInterface = &SourceCodeProviderInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.SourceCodeProviderList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.SourceCodeProviderList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type SourceCodeProviderInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SourceCodeProviderList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.SourceCodeProviderList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type SourceCodeProviderInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *SourceCodeProviderInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *SourceCodeProviderInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.SourceCodeProviderList, error) { + if mock.ListNamespacedFunc == nil { + panic("SourceCodeProviderInterfaceMock.ListNamespacedFunc: method is nil but SourceCodeProviderInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockSourceCodeProviderInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockSourceCodeProviderInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedSourceCodeProviderInterface.ListNamespacedCalls()) +func (mock *SourceCodeProviderInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockSourceCodeProviderInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockSourceCodeProviderInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *SourceCodeProviderInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_source_code_repository_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_source_code_repository_mock.go index c77c0139..54edb799 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_source_code_repository_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_source_code_repository_mock.go @@ -674,6 +674,7 @@ var ( lockSourceCodeRepositoryInterfaceMockGet sync.RWMutex lockSourceCodeRepositoryInterfaceMockGetNamespaced sync.RWMutex lockSourceCodeRepositoryInterfaceMockList sync.RWMutex + lockSourceCodeRepositoryInterfaceMockListNamespaced sync.RWMutex lockSourceCodeRepositoryInterfaceMockObjectClient sync.RWMutex lockSourceCodeRepositoryInterfaceMockUpdate sync.RWMutex lockSourceCodeRepositoryInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.SourceCodeRepositoryInterface = &SourceCodeRepositoryInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type SourceCodeRepositoryInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type SourceCodeRepositoryInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *SourceCodeRepositoryInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *SourceCodeRepositoryInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error) { + if mock.ListNamespacedFunc == nil { + panic("SourceCodeRepositoryInterfaceMock.ListNamespacedFunc: method is nil but SourceCodeRepositoryInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockSourceCodeRepositoryInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockSourceCodeRepositoryInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedSourceCodeRepositoryInterface.ListNamespacedCalls()) +func (mock *SourceCodeRepositoryInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockSourceCodeRepositoryInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockSourceCodeRepositoryInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *SourceCodeRepositoryInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_ssh_auth_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_ssh_auth_mock.go index c6da36e7..ff16582a 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_ssh_auth_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_ssh_auth_mock.go @@ -674,6 +674,7 @@ var ( lockSSHAuthInterfaceMockGet sync.RWMutex lockSSHAuthInterfaceMockGetNamespaced sync.RWMutex lockSSHAuthInterfaceMockList sync.RWMutex + lockSSHAuthInterfaceMockListNamespaced sync.RWMutex lockSSHAuthInterfaceMockObjectClient sync.RWMutex lockSSHAuthInterfaceMockUpdate sync.RWMutex lockSSHAuthInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.SSHAuthInterface = &SSHAuthInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.SSHAuthList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.SSHAuthList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type SSHAuthInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SSHAuthList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.SSHAuthList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type SSHAuthInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *SSHAuthInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *SSHAuthInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.SSHAuthList, error) { + if mock.ListNamespacedFunc == nil { + panic("SSHAuthInterfaceMock.ListNamespacedFunc: method is nil but SSHAuthInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockSSHAuthInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockSSHAuthInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedSSHAuthInterface.ListNamespacedCalls()) +func (mock *SSHAuthInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockSSHAuthInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockSSHAuthInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *SSHAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/fakes/zz_generated_workload_mock.go b/apis/project.cattle.io/v3/fakes/zz_generated_workload_mock.go index 4f7cc5be..fcc23ab5 100644 --- a/apis/project.cattle.io/v3/fakes/zz_generated_workload_mock.go +++ b/apis/project.cattle.io/v3/fakes/zz_generated_workload_mock.go @@ -674,6 +674,7 @@ var ( lockWorkloadInterfaceMockGet sync.RWMutex lockWorkloadInterfaceMockGetNamespaced sync.RWMutex lockWorkloadInterfaceMockList sync.RWMutex + lockWorkloadInterfaceMockListNamespaced sync.RWMutex lockWorkloadInterfaceMockObjectClient sync.RWMutex lockWorkloadInterfaceMockUpdate sync.RWMutex lockWorkloadInterfaceMockWatch sync.RWMutex @@ -737,6 +738,9 @@ var _ v3.WorkloadInterface = &WorkloadInterfaceMock{} // ListFunc: func(opts v1.ListOptions) (*v3.WorkloadList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.WorkloadList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -801,6 +805,9 @@ type WorkloadInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.WorkloadList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.WorkloadList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -952,6 +959,13 @@ type WorkloadInterfaceMock struct { // Opts is the opts argument value. Opts v1.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1583,6 +1597,41 @@ func (mock *WorkloadInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *WorkloadInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.WorkloadList, error) { + if mock.ListNamespacedFunc == nil { + panic("WorkloadInterfaceMock.ListNamespacedFunc: method is nil but WorkloadInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockWorkloadInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockWorkloadInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedWorkloadInterface.ListNamespacedCalls()) +func (mock *WorkloadInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1.ListOptions +} { + var calls []struct { + Namespace string + Opts v1.ListOptions + } + lockWorkloadInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockWorkloadInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *WorkloadInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/project.cattle.io/v3/zz_generated_app_controller.go b/apis/project.cattle.io/v3/zz_generated_app_controller.go index 1ff16b41..b2bec563 100644 --- a/apis/project.cattle.io/v3/zz_generated_app_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_app_controller.go @@ -85,6 +85,7 @@ type AppInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*AppList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*AppList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() AppController @@ -272,6 +273,11 @@ func (s *appClient) List(opts metav1.ListOptions) (*AppList, error) { return obj.(*AppList), err } +func (s *appClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*AppList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*AppList), err +} + func (s *appClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_app_revision_controller.go b/apis/project.cattle.io/v3/zz_generated_app_revision_controller.go index 979db665..7b58a18f 100644 --- a/apis/project.cattle.io/v3/zz_generated_app_revision_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_app_revision_controller.go @@ -85,6 +85,7 @@ type AppRevisionInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*AppRevisionList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*AppRevisionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() AppRevisionController @@ -272,6 +273,11 @@ func (s *appRevisionClient) List(opts metav1.ListOptions) (*AppRevisionList, err return obj.(*AppRevisionList), err } +func (s *appRevisionClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*AppRevisionList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*AppRevisionList), err +} + func (s *appRevisionClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_basic_auth_controller.go b/apis/project.cattle.io/v3/zz_generated_basic_auth_controller.go index 80c8ad98..b4c72867 100644 --- a/apis/project.cattle.io/v3/zz_generated_basic_auth_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_basic_auth_controller.go @@ -85,6 +85,7 @@ type BasicAuthInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*BasicAuthList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*BasicAuthList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() BasicAuthController @@ -272,6 +273,11 @@ func (s *basicAuthClient) List(opts metav1.ListOptions) (*BasicAuthList, error) return obj.(*BasicAuthList), err } +func (s *basicAuthClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*BasicAuthList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*BasicAuthList), err +} + func (s *basicAuthClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_certificate_controller.go b/apis/project.cattle.io/v3/zz_generated_certificate_controller.go index 64e63e12..74847dc0 100644 --- a/apis/project.cattle.io/v3/zz_generated_certificate_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_certificate_controller.go @@ -85,6 +85,7 @@ type CertificateInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*CertificateList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*CertificateList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() CertificateController @@ -272,6 +273,11 @@ func (s *certificateClient) List(opts metav1.ListOptions) (*CertificateList, err return obj.(*CertificateList), err } +func (s *certificateClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*CertificateList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*CertificateList), err +} + func (s *certificateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_docker_credential_controller.go b/apis/project.cattle.io/v3/zz_generated_docker_credential_controller.go index adbe448d..cfeec6fe 100644 --- a/apis/project.cattle.io/v3/zz_generated_docker_credential_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_docker_credential_controller.go @@ -85,6 +85,7 @@ type DockerCredentialInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DockerCredentialList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*DockerCredentialList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() DockerCredentialController @@ -272,6 +273,11 @@ func (s *dockerCredentialClient) List(opts metav1.ListOptions) (*DockerCredentia return obj.(*DockerCredentialList), err } +func (s *dockerCredentialClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*DockerCredentialList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*DockerCredentialList), err +} + func (s *dockerCredentialClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_namespaced_basic_auth_controller.go b/apis/project.cattle.io/v3/zz_generated_namespaced_basic_auth_controller.go index 69f9464b..dfdc5789 100644 --- a/apis/project.cattle.io/v3/zz_generated_namespaced_basic_auth_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_namespaced_basic_auth_controller.go @@ -85,6 +85,7 @@ type NamespacedBasicAuthInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NamespacedBasicAuthList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedBasicAuthList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NamespacedBasicAuthController @@ -272,6 +273,11 @@ func (s *namespacedBasicAuthClient) List(opts metav1.ListOptions) (*NamespacedBa return obj.(*NamespacedBasicAuthList), err } +func (s *namespacedBasicAuthClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedBasicAuthList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NamespacedBasicAuthList), err +} + func (s *namespacedBasicAuthClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_namespaced_certificate_controller.go b/apis/project.cattle.io/v3/zz_generated_namespaced_certificate_controller.go index 54f70638..195ab74d 100644 --- a/apis/project.cattle.io/v3/zz_generated_namespaced_certificate_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_namespaced_certificate_controller.go @@ -85,6 +85,7 @@ type NamespacedCertificateInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NamespacedCertificateList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedCertificateList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NamespacedCertificateController @@ -272,6 +273,11 @@ func (s *namespacedCertificateClient) List(opts metav1.ListOptions) (*Namespaced return obj.(*NamespacedCertificateList), err } +func (s *namespacedCertificateClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedCertificateList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NamespacedCertificateList), err +} + func (s *namespacedCertificateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_namespaced_docker_credential_controller.go b/apis/project.cattle.io/v3/zz_generated_namespaced_docker_credential_controller.go index a0c0aaba..2b6817e5 100644 --- a/apis/project.cattle.io/v3/zz_generated_namespaced_docker_credential_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_namespaced_docker_credential_controller.go @@ -85,6 +85,7 @@ type NamespacedDockerCredentialInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NamespacedDockerCredentialList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedDockerCredentialList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NamespacedDockerCredentialController @@ -272,6 +273,11 @@ func (s *namespacedDockerCredentialClient) List(opts metav1.ListOptions) (*Names return obj.(*NamespacedDockerCredentialList), err } +func (s *namespacedDockerCredentialClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedDockerCredentialList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NamespacedDockerCredentialList), err +} + func (s *namespacedDockerCredentialClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_namespaced_service_account_token_controller.go b/apis/project.cattle.io/v3/zz_generated_namespaced_service_account_token_controller.go index 90bcd998..e29f1169 100644 --- a/apis/project.cattle.io/v3/zz_generated_namespaced_service_account_token_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_namespaced_service_account_token_controller.go @@ -85,6 +85,7 @@ type NamespacedServiceAccountTokenInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NamespacedServiceAccountTokenList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedServiceAccountTokenList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NamespacedServiceAccountTokenController @@ -272,6 +273,11 @@ func (s *namespacedServiceAccountTokenClient) List(opts metav1.ListOptions) (*Na return obj.(*NamespacedServiceAccountTokenList), err } +func (s *namespacedServiceAccountTokenClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedServiceAccountTokenList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NamespacedServiceAccountTokenList), err +} + func (s *namespacedServiceAccountTokenClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_namespaced_ssh_auth_controller.go b/apis/project.cattle.io/v3/zz_generated_namespaced_ssh_auth_controller.go index 5ada6e13..45caf685 100644 --- a/apis/project.cattle.io/v3/zz_generated_namespaced_ssh_auth_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_namespaced_ssh_auth_controller.go @@ -85,6 +85,7 @@ type NamespacedSSHAuthInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*NamespacedSSHAuthList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedSSHAuthList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() NamespacedSSHAuthController @@ -272,6 +273,11 @@ func (s *namespacedSshAuthClient) List(opts metav1.ListOptions) (*NamespacedSSHA return obj.(*NamespacedSSHAuthList), err } +func (s *namespacedSshAuthClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*NamespacedSSHAuthList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*NamespacedSSHAuthList), err +} + func (s *namespacedSshAuthClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_pipeline_controller.go b/apis/project.cattle.io/v3/zz_generated_pipeline_controller.go index b54fe287..482f0160 100644 --- a/apis/project.cattle.io/v3/zz_generated_pipeline_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_pipeline_controller.go @@ -85,6 +85,7 @@ type PipelineInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PipelineList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PipelineList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PipelineController @@ -272,6 +273,11 @@ func (s *pipelineClient) List(opts metav1.ListOptions) (*PipelineList, error) { return obj.(*PipelineList), err } +func (s *pipelineClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PipelineList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PipelineList), err +} + func (s *pipelineClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_pipeline_execution_controller.go b/apis/project.cattle.io/v3/zz_generated_pipeline_execution_controller.go index 8fc2dde8..93337619 100644 --- a/apis/project.cattle.io/v3/zz_generated_pipeline_execution_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_pipeline_execution_controller.go @@ -85,6 +85,7 @@ type PipelineExecutionInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PipelineExecutionList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PipelineExecutionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PipelineExecutionController @@ -272,6 +273,11 @@ func (s *pipelineExecutionClient) List(opts metav1.ListOptions) (*PipelineExecut return obj.(*PipelineExecutionList), err } +func (s *pipelineExecutionClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PipelineExecutionList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PipelineExecutionList), err +} + func (s *pipelineExecutionClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_pipeline_setting_controller.go b/apis/project.cattle.io/v3/zz_generated_pipeline_setting_controller.go index bf6eb675..a368ef2b 100644 --- a/apis/project.cattle.io/v3/zz_generated_pipeline_setting_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_pipeline_setting_controller.go @@ -85,6 +85,7 @@ type PipelineSettingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PipelineSettingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*PipelineSettingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PipelineSettingController @@ -272,6 +273,11 @@ func (s *pipelineSettingClient) List(opts metav1.ListOptions) (*PipelineSettingL return obj.(*PipelineSettingList), err } +func (s *pipelineSettingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*PipelineSettingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*PipelineSettingList), err +} + func (s *pipelineSettingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_service_account_token_controller.go b/apis/project.cattle.io/v3/zz_generated_service_account_token_controller.go index f6e7406a..e082572d 100644 --- a/apis/project.cattle.io/v3/zz_generated_service_account_token_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_service_account_token_controller.go @@ -85,6 +85,7 @@ type ServiceAccountTokenInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ServiceAccountTokenList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ServiceAccountTokenList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ServiceAccountTokenController @@ -272,6 +273,11 @@ func (s *serviceAccountTokenClient) List(opts metav1.ListOptions) (*ServiceAccou return obj.(*ServiceAccountTokenList), err } +func (s *serviceAccountTokenClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ServiceAccountTokenList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ServiceAccountTokenList), err +} + func (s *serviceAccountTokenClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_source_code_credential_controller.go b/apis/project.cattle.io/v3/zz_generated_source_code_credential_controller.go index b7305867..79ba8fee 100644 --- a/apis/project.cattle.io/v3/zz_generated_source_code_credential_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_source_code_credential_controller.go @@ -85,6 +85,7 @@ type SourceCodeCredentialInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*SourceCodeCredentialList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*SourceCodeCredentialList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() SourceCodeCredentialController @@ -272,6 +273,11 @@ func (s *sourceCodeCredentialClient) List(opts metav1.ListOptions) (*SourceCodeC return obj.(*SourceCodeCredentialList), err } +func (s *sourceCodeCredentialClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*SourceCodeCredentialList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*SourceCodeCredentialList), err +} + func (s *sourceCodeCredentialClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_source_code_provider_config_controller.go b/apis/project.cattle.io/v3/zz_generated_source_code_provider_config_controller.go index 7826d983..26aa826b 100644 --- a/apis/project.cattle.io/v3/zz_generated_source_code_provider_config_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_source_code_provider_config_controller.go @@ -85,6 +85,7 @@ type SourceCodeProviderConfigInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*SourceCodeProviderConfigList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*SourceCodeProviderConfigList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() SourceCodeProviderConfigController @@ -272,6 +273,11 @@ func (s *sourceCodeProviderConfigClient) List(opts metav1.ListOptions) (*SourceC return obj.(*SourceCodeProviderConfigList), err } +func (s *sourceCodeProviderConfigClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*SourceCodeProviderConfigList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*SourceCodeProviderConfigList), err +} + func (s *sourceCodeProviderConfigClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_source_code_provider_controller.go b/apis/project.cattle.io/v3/zz_generated_source_code_provider_controller.go index 7fc9b38e..d3ba1ab8 100644 --- a/apis/project.cattle.io/v3/zz_generated_source_code_provider_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_source_code_provider_controller.go @@ -84,6 +84,7 @@ type SourceCodeProviderInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*SourceCodeProviderList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*SourceCodeProviderList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() SourceCodeProviderController @@ -271,6 +272,11 @@ func (s *sourceCodeProviderClient) List(opts metav1.ListOptions) (*SourceCodePro return obj.(*SourceCodeProviderList), err } +func (s *sourceCodeProviderClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*SourceCodeProviderList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*SourceCodeProviderList), err +} + func (s *sourceCodeProviderClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_source_code_repository_controller.go b/apis/project.cattle.io/v3/zz_generated_source_code_repository_controller.go index 93c552e8..71c7db63 100644 --- a/apis/project.cattle.io/v3/zz_generated_source_code_repository_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_source_code_repository_controller.go @@ -85,6 +85,7 @@ type SourceCodeRepositoryInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*SourceCodeRepositoryList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*SourceCodeRepositoryList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() SourceCodeRepositoryController @@ -272,6 +273,11 @@ func (s *sourceCodeRepositoryClient) List(opts metav1.ListOptions) (*SourceCodeR return obj.(*SourceCodeRepositoryList), err } +func (s *sourceCodeRepositoryClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*SourceCodeRepositoryList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*SourceCodeRepositoryList), err +} + func (s *sourceCodeRepositoryClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_ssh_auth_controller.go b/apis/project.cattle.io/v3/zz_generated_ssh_auth_controller.go index bc4e3d72..ab1280a7 100644 --- a/apis/project.cattle.io/v3/zz_generated_ssh_auth_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_ssh_auth_controller.go @@ -85,6 +85,7 @@ type SSHAuthInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*SSHAuthList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*SSHAuthList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() SSHAuthController @@ -272,6 +273,11 @@ func (s *sshAuthClient) List(opts metav1.ListOptions) (*SSHAuthList, error) { return obj.(*SSHAuthList), err } +func (s *sshAuthClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*SSHAuthList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*SSHAuthList), err +} + func (s *sshAuthClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/project.cattle.io/v3/zz_generated_workload_controller.go b/apis/project.cattle.io/v3/zz_generated_workload_controller.go index 656b109c..35957df4 100644 --- a/apis/project.cattle.io/v3/zz_generated_workload_controller.go +++ b/apis/project.cattle.io/v3/zz_generated_workload_controller.go @@ -85,6 +85,7 @@ type WorkloadInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*WorkloadList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*WorkloadList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() WorkloadController @@ -272,6 +273,11 @@ func (s *workloadClient) List(opts metav1.ListOptions) (*WorkloadList, error) { return obj.(*WorkloadList), err } +func (s *workloadClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*WorkloadList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*WorkloadList), err +} + func (s *workloadClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_cluster_role_binding_mock.go b/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_cluster_role_binding_mock.go index c4bf0160..e0f1118b 100644 --- a/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_cluster_role_binding_mock.go +++ b/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_cluster_role_binding_mock.go @@ -675,6 +675,7 @@ var ( lockClusterRoleBindingInterfaceMockGet sync.RWMutex lockClusterRoleBindingInterfaceMockGetNamespaced sync.RWMutex lockClusterRoleBindingInterfaceMockList sync.RWMutex + lockClusterRoleBindingInterfaceMockListNamespaced sync.RWMutex lockClusterRoleBindingInterfaceMockObjectClient sync.RWMutex lockClusterRoleBindingInterfaceMockUpdate sync.RWMutex lockClusterRoleBindingInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ClusterRoleBindingInterface = &ClusterRoleBindingInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ClusterRoleBindingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ClusterRoleBindingInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ClusterRoleBindingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterRoleBindingInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterRoleBindingInterfaceMock.ListNamespacedFunc: method is nil but ClusterRoleBindingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterRoleBindingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterRoleBindingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterRoleBindingInterface.ListNamespacedCalls()) +func (mock *ClusterRoleBindingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockClusterRoleBindingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterRoleBindingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterRoleBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_cluster_role_mock.go b/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_cluster_role_mock.go index 000a46c3..256ca791 100644 --- a/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_cluster_role_mock.go +++ b/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_cluster_role_mock.go @@ -675,6 +675,7 @@ var ( lockClusterRoleInterfaceMockGet sync.RWMutex lockClusterRoleInterfaceMockGetNamespaced sync.RWMutex lockClusterRoleInterfaceMockList sync.RWMutex + lockClusterRoleInterfaceMockListNamespaced sync.RWMutex lockClusterRoleInterfaceMockObjectClient sync.RWMutex lockClusterRoleInterfaceMockUpdate sync.RWMutex lockClusterRoleInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.ClusterRoleInterface = &ClusterRoleInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.ClusterRoleList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ClusterRoleList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type ClusterRoleInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ClusterRoleList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ClusterRoleList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type ClusterRoleInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *ClusterRoleInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *ClusterRoleInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ClusterRoleList, error) { + if mock.ListNamespacedFunc == nil { + panic("ClusterRoleInterfaceMock.ListNamespacedFunc: method is nil but ClusterRoleInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockClusterRoleInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockClusterRoleInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedClusterRoleInterface.ListNamespacedCalls()) +func (mock *ClusterRoleInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockClusterRoleInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockClusterRoleInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *ClusterRoleInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_role_binding_mock.go b/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_role_binding_mock.go index 95be3aaf..841469ad 100644 --- a/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_role_binding_mock.go +++ b/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_role_binding_mock.go @@ -675,6 +675,7 @@ var ( lockRoleBindingInterfaceMockGet sync.RWMutex lockRoleBindingInterfaceMockGetNamespaced sync.RWMutex lockRoleBindingInterfaceMockList sync.RWMutex + lockRoleBindingInterfaceMockListNamespaced sync.RWMutex lockRoleBindingInterfaceMockObjectClient sync.RWMutex lockRoleBindingInterfaceMockUpdate sync.RWMutex lockRoleBindingInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.RoleBindingInterface = &RoleBindingInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.RoleBindingList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type RoleBindingInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.RoleBindingList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type RoleBindingInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *RoleBindingInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *RoleBindingInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error) { + if mock.ListNamespacedFunc == nil { + panic("RoleBindingInterfaceMock.ListNamespacedFunc: method is nil but RoleBindingInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockRoleBindingInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockRoleBindingInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedRoleBindingInterface.ListNamespacedCalls()) +func (mock *RoleBindingInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockRoleBindingInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockRoleBindingInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *RoleBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_role_mock.go b/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_role_mock.go index 0567892b..22fd4eed 100644 --- a/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_role_mock.go +++ b/apis/rbac.authorization.k8s.io/v1/fakes/zz_generated_role_mock.go @@ -675,6 +675,7 @@ var ( lockRoleInterfaceMockGet sync.RWMutex lockRoleInterfaceMockGetNamespaced sync.RWMutex lockRoleInterfaceMockList sync.RWMutex + lockRoleInterfaceMockListNamespaced sync.RWMutex lockRoleInterfaceMockObjectClient sync.RWMutex lockRoleInterfaceMockUpdate sync.RWMutex lockRoleInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.RoleInterface = &RoleInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.RoleList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type RoleInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.RoleList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type RoleInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *RoleInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *RoleInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error) { + if mock.ListNamespacedFunc == nil { + panic("RoleInterfaceMock.ListNamespacedFunc: method is nil but RoleInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockRoleInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockRoleInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedRoleInterface.ListNamespacedCalls()) +func (mock *RoleInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockRoleInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockRoleInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *RoleInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/rbac.authorization.k8s.io/v1/zz_generated_cluster_role_binding_controller.go b/apis/rbac.authorization.k8s.io/v1/zz_generated_cluster_role_binding_controller.go index 6e3c39fb..eebc12f9 100644 --- a/apis/rbac.authorization.k8s.io/v1/zz_generated_cluster_role_binding_controller.go +++ b/apis/rbac.authorization.k8s.io/v1/zz_generated_cluster_role_binding_controller.go @@ -85,6 +85,7 @@ type ClusterRoleBindingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterRoleBindingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterRoleBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterRoleBindingController @@ -272,6 +273,11 @@ func (s *clusterRoleBindingClient) List(opts metav1.ListOptions) (*ClusterRoleBi return obj.(*ClusterRoleBindingList), err } +func (s *clusterRoleBindingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterRoleBindingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterRoleBindingList), err +} + func (s *clusterRoleBindingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/rbac.authorization.k8s.io/v1/zz_generated_cluster_role_controller.go b/apis/rbac.authorization.k8s.io/v1/zz_generated_cluster_role_controller.go index 2998aeae..76aec32a 100644 --- a/apis/rbac.authorization.k8s.io/v1/zz_generated_cluster_role_controller.go +++ b/apis/rbac.authorization.k8s.io/v1/zz_generated_cluster_role_controller.go @@ -85,6 +85,7 @@ type ClusterRoleInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterRoleList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterRoleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterRoleController @@ -272,6 +273,11 @@ func (s *clusterRoleClient) List(opts metav1.ListOptions) (*ClusterRoleList, err return obj.(*ClusterRoleList), err } +func (s *clusterRoleClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*ClusterRoleList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*ClusterRoleList), err +} + func (s *clusterRoleClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/rbac.authorization.k8s.io/v1/zz_generated_role_binding_controller.go b/apis/rbac.authorization.k8s.io/v1/zz_generated_role_binding_controller.go index fab4636b..0fc90b7a 100644 --- a/apis/rbac.authorization.k8s.io/v1/zz_generated_role_binding_controller.go +++ b/apis/rbac.authorization.k8s.io/v1/zz_generated_role_binding_controller.go @@ -86,6 +86,7 @@ type RoleBindingInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*RoleBindingList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*RoleBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() RoleBindingController @@ -273,6 +274,11 @@ func (s *roleBindingClient) List(opts metav1.ListOptions) (*RoleBindingList, err return obj.(*RoleBindingList), err } +func (s *roleBindingClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*RoleBindingList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*RoleBindingList), err +} + func (s *roleBindingClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/rbac.authorization.k8s.io/v1/zz_generated_role_controller.go b/apis/rbac.authorization.k8s.io/v1/zz_generated_role_controller.go index 4a2a62d7..ac55e897 100644 --- a/apis/rbac.authorization.k8s.io/v1/zz_generated_role_controller.go +++ b/apis/rbac.authorization.k8s.io/v1/zz_generated_role_controller.go @@ -86,6 +86,7 @@ type RoleInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*RoleList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*RoleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() RoleController @@ -273,6 +274,11 @@ func (s *roleClient) List(opts metav1.ListOptions) (*RoleList, error) { return obj.(*RoleList), err } +func (s *roleClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*RoleList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*RoleList), err +} + func (s *roleClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) } diff --git a/apis/storage.k8s.io/v1/fakes/zz_generated_storage_class_mock.go b/apis/storage.k8s.io/v1/fakes/zz_generated_storage_class_mock.go index 9b208c5e..daf2bd53 100644 --- a/apis/storage.k8s.io/v1/fakes/zz_generated_storage_class_mock.go +++ b/apis/storage.k8s.io/v1/fakes/zz_generated_storage_class_mock.go @@ -675,6 +675,7 @@ var ( lockStorageClassInterfaceMockGet sync.RWMutex lockStorageClassInterfaceMockGetNamespaced sync.RWMutex lockStorageClassInterfaceMockList sync.RWMutex + lockStorageClassInterfaceMockListNamespaced sync.RWMutex lockStorageClassInterfaceMockObjectClient sync.RWMutex lockStorageClassInterfaceMockUpdate sync.RWMutex lockStorageClassInterfaceMockWatch sync.RWMutex @@ -738,6 +739,9 @@ var _ v1a.StorageClassInterface = &StorageClassInterfaceMock{} // ListFunc: func(opts v1b.ListOptions) (*v1a.StorageClassList, error) { // panic("mock out the List method") // }, +// ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.StorageClassList, error) { +// panic("mock out the ListNamespaced method") +// }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, @@ -802,6 +806,9 @@ type StorageClassInterfaceMock struct { // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.StorageClassList, error) + // ListNamespacedFunc mocks the ListNamespaced method. + ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.StorageClassList, error) + // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient @@ -953,6 +960,13 @@ type StorageClassInterfaceMock struct { // Opts is the opts argument value. Opts v1b.ListOptions } + // ListNamespaced holds details about calls to the ListNamespaced method. + ListNamespaced []struct { + // Namespace is the namespace argument value. + Namespace string + // Opts is the opts argument value. + Opts v1b.ListOptions + } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { } @@ -1584,6 +1598,41 @@ func (mock *StorageClassInterfaceMock) ListCalls() []struct { return calls } +// ListNamespaced calls ListNamespacedFunc. +func (mock *StorageClassInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.StorageClassList, error) { + if mock.ListNamespacedFunc == nil { + panic("StorageClassInterfaceMock.ListNamespacedFunc: method is nil but StorageClassInterface.ListNamespaced was just called") + } + callInfo := struct { + Namespace string + Opts v1b.ListOptions + }{ + Namespace: namespace, + Opts: opts, + } + lockStorageClassInterfaceMockListNamespaced.Lock() + mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) + lockStorageClassInterfaceMockListNamespaced.Unlock() + return mock.ListNamespacedFunc(namespace, opts) +} + +// ListNamespacedCalls gets all the calls that were made to ListNamespaced. +// Check the length with: +// len(mockedStorageClassInterface.ListNamespacedCalls()) +func (mock *StorageClassInterfaceMock) ListNamespacedCalls() []struct { + Namespace string + Opts v1b.ListOptions +} { + var calls []struct { + Namespace string + Opts v1b.ListOptions + } + lockStorageClassInterfaceMockListNamespaced.RLock() + calls = mock.calls.ListNamespaced + lockStorageClassInterfaceMockListNamespaced.RUnlock() + return calls +} + // ObjectClient calls ObjectClientFunc. func (mock *StorageClassInterfaceMock) ObjectClient() *objectclient.ObjectClient { if mock.ObjectClientFunc == nil { diff --git a/apis/storage.k8s.io/v1/zz_generated_storage_class_controller.go b/apis/storage.k8s.io/v1/zz_generated_storage_class_controller.go index 24000db8..b684946c 100644 --- a/apis/storage.k8s.io/v1/zz_generated_storage_class_controller.go +++ b/apis/storage.k8s.io/v1/zz_generated_storage_class_controller.go @@ -85,6 +85,7 @@ type StorageClassInterface interface { Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*StorageClassList, error) + ListNamespaced(namespace string, opts metav1.ListOptions) (*StorageClassList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() StorageClassController @@ -272,6 +273,11 @@ func (s *storageClassClient) List(opts metav1.ListOptions) (*StorageClassList, e return obj.(*StorageClassList), err } +func (s *storageClassClient) ListNamespaced(namespace string, opts metav1.ListOptions) (*StorageClassList, error) { + obj, err := s.objectClient.ListNamespaced(namespace, opts) + return obj.(*StorageClassList), err +} + func (s *storageClassClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { return s.objectClient.Watch(opts) }