clients

package
v0.0.0-...-c9e8fde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package clients is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
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)
	GetConfigMap(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*v1.ConfigMap, error)
	GetImage(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Image, error)
	ClusterVersionGet(ctx context.Context, opts metav1.GetOptions) (result *configv1.ClusterVersion, err error)
	Invalidate()
	ServerGroups() (*metav1.APIGroupList, error)
	ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error)
	StatusUpdate(ctx context.Context, obj client.Object) error
	StatusPatch(ctx context.Context, original, modified 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)
}

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) Create

func (m *MockClientsInterface) Create(ctx context.Context, obj client.Object) error

Create mocks base method.

func (*MockClientsInterface) CreateOrUpdate

CreateOrUpdate mocks base method.

func (*MockClientsInterface) Delete

func (m *MockClientsInterface) Delete(ctx context.Context, obj client.Object) error

Delete mocks base method.

func (*MockClientsInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClientsInterface) Get

Get mocks base method.

func (*MockClientsInterface) GetConfigMap

func (m *MockClientsInterface) GetConfigMap(ctx context.Context, namespace, name string, opts v11.GetOptions) (*v10.ConfigMap, error)

GetConfigMap mocks base method.

func (*MockClientsInterface) GetImage

func (m *MockClientsInterface) GetImage(ctx context.Context, name string, opts v11.GetOptions) (*v1.Image, error)

GetImage 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) 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

List mocks base method.

func (*MockClientsInterface) ServerGroups

func (m *MockClientsInterface) ServerGroups() (*v11.APIGroupList, error)

ServerGroups mocks base method.

func (*MockClientsInterface) ServerGroupsAndResources

func (m *MockClientsInterface) ServerGroupsAndResources() ([]*v11.APIGroup, []*v11.APIResourceList, error)

ServerGroupsAndResources mocks base method.

func (*MockClientsInterface) StatusPatch

func (m *MockClientsInterface) StatusPatch(ctx context.Context, original, modified client.Object) error

StatusPatch mocks base method.

func (*MockClientsInterface) StatusUpdate

func (m *MockClientsInterface) StatusUpdate(ctx context.Context, obj client.Object) error

StatusUpdate mocks base method.

func (*MockClientsInterface) Update

func (m *MockClientsInterface) Update(ctx context.Context, obj client.Object) error

Update 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) GetConfigMap

func (mr *MockClientsInterfaceMockRecorder) GetConfigMap(ctx, namespace, name, opts interface{}) *gomock.Call

GetConfigMap indicates an expected call of GetConfigMap.

func (*MockClientsInterfaceMockRecorder) GetImage

func (mr *MockClientsInterfaceMockRecorder) GetImage(ctx, name, opts interface{}) *gomock.Call

GetImage indicates an expected call of GetImage.

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) 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) ServerGroupsAndResources

func (mr *MockClientsInterfaceMockRecorder) ServerGroupsAndResources() *gomock.Call

ServerGroupsAndResources indicates an expected call of ServerGroupsAndResources.

func (*MockClientsInterfaceMockRecorder) StatusPatch

func (mr *MockClientsInterfaceMockRecorder) StatusPatch(ctx, original, modified interface{}) *gomock.Call

StatusPatch indicates an expected call of StatusPatch.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL