mirror of
https://github.com/rancher/types.git
synced 2025-09-16 23:08:25 +00:00
Generated changes
This commit is contained in:
committed by
Alena Prokharchyk
parent
37b6b2cc25
commit
675504f294
@@ -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 {
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user