Documentation ¶
Overview ¶
Package clients is a generated GoMock package.
Index ¶
- Variables
- type ClientsInterface
- type MockClientsInterface
- func (m *MockClientsInterface) ClusterVersionGet(ctx context.Context, opts v11.GetOptions) (*v1.ClusterVersion, error)
- func (m *MockClientsInterface) Create(ctx context.Context, obj client.Object) error
- func (m *MockClientsInterface) CreateOrUpdate(ctx context.Context, obj client.Object, fn controllerutil.MutateFn) (controllerutil.OperationResult, error)
- func (m *MockClientsInterface) Delete(ctx context.Context, obj client.Object) error
- func (m *MockClientsInterface) EXPECT() *MockClientsInterfaceMockRecorder
- func (m *MockClientsInterface) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error
- func (m *MockClientsInterface) GetNamespace(ctx context.Context, name string, opts v11.GetOptions) (*v10.Namespace, error)
- func (m *MockClientsInterface) GetNodesByLabels(ctx context.Context, matchingLabels map[string]string) (*v10.NodeList, error)
- func (m *MockClientsInterface) GetPlatform() (string, error)
- func (m *MockClientsInterface) GetPodLogs(namespace, podName string, podLogOpts *v10.PodLogOptions) *rest.Request
- func (m *MockClientsInterface) GetSecret(ctx context.Context, namespace, name string, opts v11.GetOptions) (*v10.Secret, error)
- func (m *MockClientsInterface) HasResource(resource schema.GroupVersionResource) (bool, error)
- func (m *MockClientsInterface) Invalidate()
- func (m *MockClientsInterface) List(ctx context.Context, obj client.ObjectList, opts ...client.ListOption) error
- func (m *MockClientsInterface) ServerGroups() (*v11.APIGroupList, error)
- func (m *MockClientsInterface) StatusUpdate(ctx context.Context, obj client.Object) error
- func (m *MockClientsInterface) Update(ctx context.Context, obj client.Object) error
- type MockClientsInterfaceMockRecorder
- func (mr *MockClientsInterfaceMockRecorder) ClusterVersionGet(ctx, opts interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) Create(ctx, obj interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) CreateOrUpdate(ctx, obj, fn interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) Delete(ctx, obj interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) Get(ctx, key, obj interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) GetNamespace(ctx, name, opts interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) GetNodesByLabels(ctx, matchingLabels interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) GetPlatform() *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) GetPodLogs(namespace, podName, podLogOpts interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) GetSecret(ctx, namespace, name, opts interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) HasResource(resource interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) Invalidate() *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) List(ctx, obj interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) ServerGroups() *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) StatusUpdate(ctx, obj interface{}) *gomock.Call
- func (mr *MockClientsInterfaceMockRecorder) Update(ctx, obj interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var ( // TODO need to remove this global variable Namespace string )
Functions ¶
This section is empty.
Types ¶
type ClientsInterface ¶
type ClientsInterface interface { Update(ctx context.Context, obj client.Object) error Get(ctx context.Context, key client.ObjectKey, obj client.Object) error Delete(ctx context.Context, obj client.Object) error List(ctx context.Context, obj client.ObjectList, opts ...client.ListOption) error Create(ctx context.Context, obj client.Object) error GetPodLogs(namespace, podName string, podLogOpts *v1.PodLogOptions) *restclient.Request GetNamespace(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Namespace, error) GetSecret(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*v1.Secret, error) ClusterVersionGet(ctx context.Context, opts metav1.GetOptions) (result *configv1.ClusterVersion, err error) Invalidate() ServerGroups() (*metav1.APIGroupList, error) StatusUpdate(ctx context.Context, obj client.Object) error CreateOrUpdate(ctx context.Context, obj client.Object, fn controllerutil.MutateFn) (controllerutil.OperationResult, error) HasResource(resource schema.GroupVersionResource) (bool, error) GetNodesByLabels(ctx context.Context, matchingLabels map[string]string) (*v1.NodeList, error) GetPlatform() (string, error) }
func NewClients ¶
func NewClients(runtimeClient client.Client, restConfig *restclient.Config, eventRecorder record.EventRecorder) (ClientsInterface, error)
type MockClientsInterface ¶
type MockClientsInterface struct {
// contains filtered or unexported fields
}
MockClientsInterface is a mock of ClientsInterface interface.
func NewMockClientsInterface ¶
func NewMockClientsInterface(ctrl *gomock.Controller) *MockClientsInterface
NewMockClientsInterface creates a new mock instance.
func (*MockClientsInterface) ClusterVersionGet ¶
func (m *MockClientsInterface) ClusterVersionGet(ctx context.Context, opts v11.GetOptions) (*v1.ClusterVersion, error)
ClusterVersionGet mocks base method.
func (*MockClientsInterface) CreateOrUpdate ¶
func (m *MockClientsInterface) CreateOrUpdate(ctx context.Context, obj client.Object, fn controllerutil.MutateFn) (controllerutil.OperationResult, error)
CreateOrUpdate mocks base method.
func (*MockClientsInterface) EXPECT ¶
func (m *MockClientsInterface) EXPECT() *MockClientsInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientsInterface) Get ¶
func (m *MockClientsInterface) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error
Get mocks base method.
func (*MockClientsInterface) GetNamespace ¶
func (m *MockClientsInterface) GetNamespace(ctx context.Context, name string, opts v11.GetOptions) (*v10.Namespace, error)
GetNamespace mocks base method.
func (*MockClientsInterface) GetNodesByLabels ¶
func (m *MockClientsInterface) GetNodesByLabels(ctx context.Context, matchingLabels map[string]string) (*v10.NodeList, error)
GetNodesByLabels mocks base method.
func (*MockClientsInterface) GetPlatform ¶
func (m *MockClientsInterface) GetPlatform() (string, error)
GetPlatform mocks base method.
func (*MockClientsInterface) GetPodLogs ¶
func (m *MockClientsInterface) GetPodLogs(namespace, podName string, podLogOpts *v10.PodLogOptions) *rest.Request
GetPodLogs mocks base method.
func (*MockClientsInterface) GetSecret ¶
func (m *MockClientsInterface) GetSecret(ctx context.Context, namespace, name string, opts v11.GetOptions) (*v10.Secret, error)
GetSecret mocks base method.
func (*MockClientsInterface) HasResource ¶
func (m *MockClientsInterface) HasResource(resource schema.GroupVersionResource) (bool, error)
HasResource mocks base method.
func (*MockClientsInterface) Invalidate ¶
func (m *MockClientsInterface) Invalidate()
Invalidate mocks base method.
func (*MockClientsInterface) List ¶
func (m *MockClientsInterface) List(ctx context.Context, obj client.ObjectList, opts ...client.ListOption) error
List mocks base method.
func (*MockClientsInterface) ServerGroups ¶
func (m *MockClientsInterface) ServerGroups() (*v11.APIGroupList, error)
ServerGroups mocks base method.
func (*MockClientsInterface) StatusUpdate ¶
StatusUpdate mocks base method.
type MockClientsInterfaceMockRecorder ¶
type MockClientsInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockClientsInterfaceMockRecorder is the mock recorder for MockClientsInterface.
func (*MockClientsInterfaceMockRecorder) ClusterVersionGet ¶
func (mr *MockClientsInterfaceMockRecorder) ClusterVersionGet(ctx, opts interface{}) *gomock.Call
ClusterVersionGet indicates an expected call of ClusterVersionGet.
func (*MockClientsInterfaceMockRecorder) Create ¶
func (mr *MockClientsInterfaceMockRecorder) Create(ctx, obj interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockClientsInterfaceMockRecorder) CreateOrUpdate ¶
func (mr *MockClientsInterfaceMockRecorder) CreateOrUpdate(ctx, obj, fn interface{}) *gomock.Call
CreateOrUpdate indicates an expected call of CreateOrUpdate.
func (*MockClientsInterfaceMockRecorder) Delete ¶
func (mr *MockClientsInterfaceMockRecorder) Delete(ctx, obj interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockClientsInterfaceMockRecorder) Get ¶
func (mr *MockClientsInterfaceMockRecorder) Get(ctx, key, obj interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockClientsInterfaceMockRecorder) GetNamespace ¶
func (mr *MockClientsInterfaceMockRecorder) GetNamespace(ctx, name, opts interface{}) *gomock.Call
GetNamespace indicates an expected call of GetNamespace.
func (*MockClientsInterfaceMockRecorder) GetNodesByLabels ¶
func (mr *MockClientsInterfaceMockRecorder) GetNodesByLabels(ctx, matchingLabels interface{}) *gomock.Call
GetNodesByLabels indicates an expected call of GetNodesByLabels.
func (*MockClientsInterfaceMockRecorder) GetPlatform ¶
func (mr *MockClientsInterfaceMockRecorder) GetPlatform() *gomock.Call
GetPlatform indicates an expected call of GetPlatform.
func (*MockClientsInterfaceMockRecorder) GetPodLogs ¶
func (mr *MockClientsInterfaceMockRecorder) GetPodLogs(namespace, podName, podLogOpts interface{}) *gomock.Call
GetPodLogs indicates an expected call of GetPodLogs.
func (*MockClientsInterfaceMockRecorder) GetSecret ¶
func (mr *MockClientsInterfaceMockRecorder) GetSecret(ctx, namespace, name, opts interface{}) *gomock.Call
GetSecret indicates an expected call of GetSecret.
func (*MockClientsInterfaceMockRecorder) HasResource ¶
func (mr *MockClientsInterfaceMockRecorder) HasResource(resource interface{}) *gomock.Call
HasResource indicates an expected call of HasResource.
func (*MockClientsInterfaceMockRecorder) Invalidate ¶
func (mr *MockClientsInterfaceMockRecorder) Invalidate() *gomock.Call
Invalidate indicates an expected call of Invalidate.
func (*MockClientsInterfaceMockRecorder) List ¶
func (mr *MockClientsInterfaceMockRecorder) List(ctx, obj interface{}, opts ...interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockClientsInterfaceMockRecorder) ServerGroups ¶
func (mr *MockClientsInterfaceMockRecorder) ServerGroups() *gomock.Call
ServerGroups indicates an expected call of ServerGroups.
func (*MockClientsInterfaceMockRecorder) StatusUpdate ¶
func (mr *MockClientsInterfaceMockRecorder) StatusUpdate(ctx, obj interface{}) *gomock.Call
StatusUpdate indicates an expected call of StatusUpdate.
func (*MockClientsInterfaceMockRecorder) Update ¶
func (mr *MockClientsInterfaceMockRecorder) Update(ctx, obj interface{}) *gomock.Call
Update indicates an expected call of Update.