mocks

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 10 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) CreateOrUpdateSecret added in v0.5.0

func (m *MockClient) CreateOrUpdateSecret(ctx context.Context, secret *v10.Secret, mutators ...func() error) (bool, error)

CreateOrUpdateSecret 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 *v1beta1.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) EnsureExists added in v0.5.0

func (m *MockClient) EnsureExists(ctx context.Context, obj client.Object, mutators ...func() error) (bool, error)

EnsureExists mocks base method.

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 *v1beta1.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 *v1beta1.GatewayClass) (bool, error)

GatewayClassInUse mocks base method.

func (*MockClient) GatewayClassesUsingConfig

func (m *MockClient) GatewayClassesUsingConfig(ctx context.Context, gcc *v1alpha1.GatewayClassConfig) (*v1beta1.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) GetDeployment added in v0.3.0

func (m *MockClient) GetDeployment(ctx context.Context, key types.NamespacedName) (*v1.Deployment, error)

GetDeployment mocks base method.

func (*MockClient) GetGateway

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

GetGateway mocks base method.

func (*MockClient) GetGatewayClass

func (m *MockClient) GetGatewayClass(ctx context.Context, key types.NamespacedName) (*v1beta1.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) GetGatewaysInNamespace added in v0.3.0

func (m *MockClient) GetGatewaysInNamespace(ctx context.Context, ns string) ([]v1beta1.Gateway, error)

GetGatewaysInNamespace 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) GetHTTPRoutes added in v0.4.0

func (m *MockClient) GetHTTPRoutes(ctx context.Context) ([]v1alpha2.HTTPRoute, error)

GetHTTPRoutes mocks base method.

func (*MockClient) GetHTTPRoutesInNamespace added in v0.2.0

func (m *MockClient) GetHTTPRoutesInNamespace(ctx context.Context, ns string) ([]v1alpha2.HTTPRoute, error)

GetHTTPRoutesInNamespace 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) GetNamespace added in v0.2.0

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

GetNamespace mocks base method.

func (*MockClient) GetReferenceGrantsInNamespace added in v0.4.0

func (m *MockClient) GetReferenceGrantsInNamespace(ctx context.Context, namespace string) ([]v1alpha2.ReferenceGrant, error)

GetReferenceGrantsInNamespace 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) GetTCPRoutes added in v0.4.0

func (m *MockClient) GetTCPRoutes(ctx context.Context) ([]v1alpha2.TCPRoute, error)

GetTCPRoutes mocks base method.

func (*MockClient) GetTCPRoutesInNamespace added in v0.2.0

func (m *MockClient) GetTCPRoutesInNamespace(ctx context.Context, ns string) ([]v1alpha2.TCPRoute, error)

GetTCPRoutesInNamespace mocks base method.

func (*MockClient) HasManagedDeployment

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

HasManagedDeployment mocks base method.

func (*MockClient) IsManagedRoute

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

IsManagedRoute mocks base method.

func (*MockClient) PodsWithLabels added in v0.3.0

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

PodsWithLabels 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) CreateOrUpdateSecret added in v0.5.0

func (mr *MockClientMockRecorder) CreateOrUpdateSecret(ctx, secret interface{}, mutators ...interface{}) *gomock.Call

CreateOrUpdateSecret indicates an expected call of CreateOrUpdateSecret.

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) EnsureExists added in v0.5.0

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

EnsureExists indicates an expected call of EnsureExists.

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) GetDeployment added in v0.3.0

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

GetDeployment indicates an expected call of GetDeployment.

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) GetGatewaysInNamespace added in v0.3.0

func (mr *MockClientMockRecorder) GetGatewaysInNamespace(ctx, ns interface{}) *gomock.Call

GetGatewaysInNamespace indicates an expected call of GetGatewaysInNamespace.

func (*MockClientMockRecorder) GetHTTPRoute

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

GetHTTPRoute indicates an expected call of GetHTTPRoute.

func (*MockClientMockRecorder) GetHTTPRoutes added in v0.4.0

func (mr *MockClientMockRecorder) GetHTTPRoutes(ctx interface{}) *gomock.Call

GetHTTPRoutes indicates an expected call of GetHTTPRoutes.

func (*MockClientMockRecorder) GetHTTPRoutesInNamespace added in v0.2.0

func (mr *MockClientMockRecorder) GetHTTPRoutesInNamespace(ctx, ns interface{}) *gomock.Call

GetHTTPRoutesInNamespace indicates an expected call of GetHTTPRoutesInNamespace.

func (*MockClientMockRecorder) GetMeshService

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

GetMeshService indicates an expected call of GetMeshService.

func (*MockClientMockRecorder) GetNamespace added in v0.2.0

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

GetNamespace indicates an expected call of GetNamespace.

func (*MockClientMockRecorder) GetReferenceGrantsInNamespace added in v0.4.0

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

GetReferenceGrantsInNamespace indicates an expected call of GetReferenceGrantsInNamespace.

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) GetTCPRoutes added in v0.4.0

func (mr *MockClientMockRecorder) GetTCPRoutes(ctx interface{}) *gomock.Call

GetTCPRoutes indicates an expected call of GetTCPRoutes.

func (*MockClientMockRecorder) GetTCPRoutesInNamespace added in v0.2.0

func (mr *MockClientMockRecorder) GetTCPRoutesInNamespace(ctx, ns interface{}) *gomock.Call

GetTCPRoutesInNamespace indicates an expected call of GetTCPRoutesInNamespace.

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) PodsWithLabels added in v0.3.0

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

PodsWithLabels indicates an expected call of PodsWithLabels.

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