mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) CreateOrUpdateDeployment

func (m *MockClient) CreateOrUpdateDeployment(ctx context.Context, deployment *v1.Deployment, mutators ...func() error) (bool, error)

CreateOrUpdateDeployment mocks base method.

func (*MockClient) CreateOrUpdateService

func (m *MockClient) CreateOrUpdateService(ctx context.Context, service *v10.Service, mutators ...func() error) (bool, error)

CreateOrUpdateService mocks base method.

func (*MockClient) DeleteService

func (m *MockClient) DeleteService(ctx context.Context, service *v10.Service) error

DeleteService mocks base method.

func (*MockClient) DeploymentForGateway

func (m *MockClient) DeploymentForGateway(ctx context.Context, gw *v1alpha2.Gateway) (*v1.Deployment, error)

DeploymentForGateway mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) EnsureFinalizer

func (m *MockClient) EnsureFinalizer(ctx context.Context, object client.Object, finalizer string) (bool, error)

EnsureFinalizer mocks base method.

func (*MockClient) EnsureServiceAccount

func (m *MockClient) EnsureServiceAccount(ctx context.Context, owner *v1alpha2.Gateway, serviceAccount *v10.ServiceAccount) error

EnsureServiceAccount mocks base method.

func (*MockClient) GatewayClassConfigInUse

func (m *MockClient) GatewayClassConfigInUse(ctx context.Context, gcc *v1alpha1.GatewayClassConfig) (bool, error)

GatewayClassConfigInUse mocks base method.

func (*MockClient) GatewayClassInUse

func (m *MockClient) GatewayClassInUse(ctx context.Context, gc *v1alpha2.GatewayClass) (bool, error)

GatewayClassInUse mocks base method.

func (*MockClient) GatewayClassesUsingConfig

func (m *MockClient) GatewayClassesUsingConfig(ctx context.Context, gcc *v1alpha1.GatewayClassConfig) (*v1alpha2.GatewayClassList, error)

GatewayClassesUsingConfig mocks base method.

func (*MockClient) GetConfigForGatewayClassName

func (m *MockClient) GetConfigForGatewayClassName(ctx context.Context, name string) (v1alpha1.GatewayClassConfig, bool, error)

GetConfigForGatewayClassName mocks base method.

func (*MockClient) GetGateway

func (m *MockClient) GetGateway(ctx context.Context, key types.NamespacedName) (*v1alpha2.Gateway, error)

GetGateway mocks base method.

func (*MockClient) GetGatewayClass

func (m *MockClient) GetGatewayClass(ctx context.Context, key types.NamespacedName) (*v1alpha2.GatewayClass, error)

GetGatewayClass mocks base method.

func (*MockClient) GetGatewayClassConfig

func (m *MockClient) GetGatewayClassConfig(ctx context.Context, key types.NamespacedName) (*v1alpha1.GatewayClassConfig, error)

GetGatewayClassConfig mocks base method.

func (*MockClient) GetHTTPRoute

func (m *MockClient) GetHTTPRoute(ctx context.Context, key types.NamespacedName) (*v1alpha2.HTTPRoute, error)

GetHTTPRoute mocks base method.

func (*MockClient) GetMeshService

func (m *MockClient) GetMeshService(ctx context.Context, key types.NamespacedName) (*v1alpha1.MeshService, error)

GetMeshService mocks base method.

func (*MockClient) GetSecret

func (m *MockClient) GetSecret(ctx context.Context, key types.NamespacedName) (*v10.Secret, error)

GetSecret mocks base method.

func (*MockClient) GetService

func (m *MockClient) GetService(ctx context.Context, key types.NamespacedName) (*v10.Service, error)

GetService mocks base method.

func (*MockClient) GetTCPRoute

func (m *MockClient) GetTCPRoute(ctx context.Context, key types.NamespacedName) (*v1alpha2.TCPRoute, error)

GetTCPRoute mocks base method.

func (*MockClient) HasManagedDeployment

func (m *MockClient) HasManagedDeployment(ctx context.Context, gw *v1alpha2.Gateway) (bool, error)

HasManagedDeployment mocks base method.

func (*MockClient) IsManagedRoute

func (m *MockClient) IsManagedRoute(ctx context.Context, namespace string, parents []v1alpha2.ParentRef) (bool, error)

IsManagedRoute mocks base method.

func (*MockClient) PodWithLabels

func (m *MockClient) PodWithLabels(ctx context.Context, labels map[string]string) (*v10.Pod, error)

PodWithLabels mocks base method.

func (*MockClient) RemoveFinalizer

func (m *MockClient) RemoveFinalizer(ctx context.Context, object client.Object, finalizer string) (bool, error)

RemoveFinalizer mocks base method.

func (*MockClient) SetControllerOwnership

func (m *MockClient) SetControllerOwnership(owner, object client.Object) error

SetControllerOwnership mocks base method.

func (*MockClient) Update

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

Update mocks base method.

func (*MockClient) UpdateStatus

func (m *MockClient) UpdateStatus(ctx context.Context, obj client.Object) error

UpdateStatus mocks base method.

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) CreateOrUpdateDeployment

func (mr *MockClientMockRecorder) CreateOrUpdateDeployment(ctx, deployment interface{}, mutators ...interface{}) *gomock.Call

CreateOrUpdateDeployment indicates an expected call of CreateOrUpdateDeployment.

func (*MockClientMockRecorder) CreateOrUpdateService

func (mr *MockClientMockRecorder) CreateOrUpdateService(ctx, service interface{}, mutators ...interface{}) *gomock.Call

CreateOrUpdateService indicates an expected call of CreateOrUpdateService.

func (*MockClientMockRecorder) DeleteService

func (mr *MockClientMockRecorder) DeleteService(ctx, service interface{}) *gomock.Call

DeleteService indicates an expected call of DeleteService.

func (*MockClientMockRecorder) DeploymentForGateway

func (mr *MockClientMockRecorder) DeploymentForGateway(ctx, gw interface{}) *gomock.Call

DeploymentForGateway indicates an expected call of DeploymentForGateway.

func (*MockClientMockRecorder) EnsureFinalizer

func (mr *MockClientMockRecorder) EnsureFinalizer(ctx, object, finalizer interface{}) *gomock.Call

EnsureFinalizer indicates an expected call of EnsureFinalizer.

func (*MockClientMockRecorder) EnsureServiceAccount

func (mr *MockClientMockRecorder) EnsureServiceAccount(ctx, owner, serviceAccount interface{}) *gomock.Call

EnsureServiceAccount indicates an expected call of EnsureServiceAccount.

func (*MockClientMockRecorder) GatewayClassConfigInUse

func (mr *MockClientMockRecorder) GatewayClassConfigInUse(ctx, gcc interface{}) *gomock.Call

GatewayClassConfigInUse indicates an expected call of GatewayClassConfigInUse.

func (*MockClientMockRecorder) GatewayClassInUse

func (mr *MockClientMockRecorder) GatewayClassInUse(ctx, gc interface{}) *gomock.Call

GatewayClassInUse indicates an expected call of GatewayClassInUse.

func (*MockClientMockRecorder) GatewayClassesUsingConfig

func (mr *MockClientMockRecorder) GatewayClassesUsingConfig(ctx, gcc interface{}) *gomock.Call

GatewayClassesUsingConfig indicates an expected call of GatewayClassesUsingConfig.

func (*MockClientMockRecorder) GetConfigForGatewayClassName

func (mr *MockClientMockRecorder) GetConfigForGatewayClassName(ctx, name interface{}) *gomock.Call

GetConfigForGatewayClassName indicates an expected call of GetConfigForGatewayClassName.

func (*MockClientMockRecorder) GetGateway

func (mr *MockClientMockRecorder) GetGateway(ctx, key interface{}) *gomock.Call

GetGateway indicates an expected call of GetGateway.

func (*MockClientMockRecorder) GetGatewayClass

func (mr *MockClientMockRecorder) GetGatewayClass(ctx, key interface{}) *gomock.Call

GetGatewayClass indicates an expected call of GetGatewayClass.

func (*MockClientMockRecorder) GetGatewayClassConfig

func (mr *MockClientMockRecorder) GetGatewayClassConfig(ctx, key interface{}) *gomock.Call

GetGatewayClassConfig indicates an expected call of GetGatewayClassConfig.

func (*MockClientMockRecorder) GetHTTPRoute

func (mr *MockClientMockRecorder) GetHTTPRoute(ctx, key interface{}) *gomock.Call

GetHTTPRoute indicates an expected call of GetHTTPRoute.

func (*MockClientMockRecorder) GetMeshService

func (mr *MockClientMockRecorder) GetMeshService(ctx, key interface{}) *gomock.Call

GetMeshService indicates an expected call of GetMeshService.

func (*MockClientMockRecorder) GetSecret

func (mr *MockClientMockRecorder) GetSecret(ctx, key interface{}) *gomock.Call

GetSecret indicates an expected call of GetSecret.

func (*MockClientMockRecorder) GetService

func (mr *MockClientMockRecorder) GetService(ctx, key interface{}) *gomock.Call

GetService indicates an expected call of GetService.

func (*MockClientMockRecorder) GetTCPRoute

func (mr *MockClientMockRecorder) GetTCPRoute(ctx, key interface{}) *gomock.Call

GetTCPRoute indicates an expected call of GetTCPRoute.

func (*MockClientMockRecorder) HasManagedDeployment

func (mr *MockClientMockRecorder) HasManagedDeployment(ctx, gw interface{}) *gomock.Call

HasManagedDeployment indicates an expected call of HasManagedDeployment.

func (*MockClientMockRecorder) IsManagedRoute

func (mr *MockClientMockRecorder) IsManagedRoute(ctx, namespace, parents interface{}) *gomock.Call

IsManagedRoute indicates an expected call of IsManagedRoute.

func (*MockClientMockRecorder) PodWithLabels

func (mr *MockClientMockRecorder) PodWithLabels(ctx, labels interface{}) *gomock.Call

PodWithLabels indicates an expected call of PodWithLabels.

func (*MockClientMockRecorder) RemoveFinalizer

func (mr *MockClientMockRecorder) RemoveFinalizer(ctx, object, finalizer interface{}) *gomock.Call

RemoveFinalizer indicates an expected call of RemoveFinalizer.

func (*MockClientMockRecorder) SetControllerOwnership

func (mr *MockClientMockRecorder) SetControllerOwnership(owner, object interface{}) *gomock.Call

SetControllerOwnership indicates an expected call of SetControllerOwnership.

func (*MockClientMockRecorder) Update

func (mr *MockClientMockRecorder) Update(ctx, obj interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockClientMockRecorder) UpdateStatus

func (mr *MockClientMockRecorder) UpdateStatus(ctx, obj interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

Jump to

Keyboard shortcuts

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