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