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