Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockKubernetesClient
- func (m *MockKubernetesClient) EXPECT() *MockKubernetesClientMockRecorder
- func (m *MockKubernetesClient) GetTLSSecret(ctx context.Context, namespace, secretName string) (map[string]any, error)
- func (m *MockKubernetesClient) GetWebhookCABundle(ctx context.Context, webhookName string) (string, error)
- func (m *MockKubernetesClient) PatchSecret(ctx context.Context, namespace, secretName string, patchData map[string]any) error
- func (m *MockKubernetesClient) PatchWebhookConfiguration(ctx context.Context, webhookName string, patches []certificate.WebhookPatch) error
- type MockKubernetesClientMockRecorder
- func (mr *MockKubernetesClientMockRecorder) GetTLSSecret(ctx, namespace, secretName any) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) GetWebhookCABundle(ctx, webhookName any) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) PatchSecret(ctx, namespace, secretName, patchData any) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) PatchWebhookConfiguration(ctx, webhookName, patches any) *gomock.Call
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 ¶
func (m *MockKubernetesClient) EXPECT() *MockKubernetesClientMockRecorder
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.