mocks

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 MockKubernetesClient

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

MockKubernetesClient is a mock of KubernetesClient interface.

func NewMockKubernetesClient

func NewMockKubernetesClient(ctrl *gomock.Controller) *MockKubernetesClient

NewMockKubernetesClient creates a new mock instance.

func (*MockKubernetesClient) EXPECT

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

func (*MockKubernetesClient) GetTLSSecret

func (m *MockKubernetesClient) GetTLSSecret(ctx context.Context, namespace, secretName string) (map[string]any, error)

GetTLSSecret mocks base method.

func (*MockKubernetesClient) GetWebhookCABundle

func (m *MockKubernetesClient) GetWebhookCABundle(ctx context.Context, webhookName string) (string, error)

GetWebhookCABundle mocks base method.

func (*MockKubernetesClient) PatchSecret

func (m *MockKubernetesClient) PatchSecret(ctx context.Context, namespace, secretName string, patchData map[string]any) error

PatchSecret mocks base method.

func (*MockKubernetesClient) PatchWebhookConfiguration

func (m *MockKubernetesClient) PatchWebhookConfiguration(ctx context.Context, webhookName string, patches []certificate.WebhookPatch) error

PatchWebhookConfiguration mocks base method.

type MockKubernetesClientMockRecorder

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

MockKubernetesClientMockRecorder is the mock recorder for MockKubernetesClient.

func (*MockKubernetesClientMockRecorder) GetTLSSecret

func (mr *MockKubernetesClientMockRecorder) GetTLSSecret(ctx, namespace, secretName any) *gomock.Call

GetTLSSecret indicates an expected call of GetTLSSecret.

func (*MockKubernetesClientMockRecorder) GetWebhookCABundle

func (mr *MockKubernetesClientMockRecorder) GetWebhookCABundle(ctx, webhookName any) *gomock.Call

GetWebhookCABundle indicates an expected call of GetWebhookCABundle.

func (*MockKubernetesClientMockRecorder) PatchSecret

func (mr *MockKubernetesClientMockRecorder) PatchSecret(ctx, namespace, secretName, patchData any) *gomock.Call

PatchSecret indicates an expected call of PatchSecret.

func (*MockKubernetesClientMockRecorder) PatchWebhookConfiguration

func (mr *MockKubernetesClientMockRecorder) PatchWebhookConfiguration(ctx, webhookName, patches any) *gomock.Call

PatchWebhookConfiguration indicates an expected call of PatchWebhookConfiguration.

Jump to

Keyboard shortcuts

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