1
0
mirror of https://github.com/rancher/types.git synced 2025-09-02 13:45:51 +00:00

Generated changes

This commit is contained in:
Dan Ramich
2019-11-11 13:33:44 -07:00
committed by Alena Prokharchyk
parent 37b6b2cc25
commit 675504f294
242 changed files with 6655 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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)
}

View File

@@ -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)
}