mocks

package
v0.0.0-...-5b0754e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvReleaseMatcher

func EnvReleaseMatcher(envName string) gomock.Matcher

func MockEnvCreation

func MockEnvCreation(config *EnvMockConfig)

func MockEnvDeletion

func MockEnvDeletion(envName string)

func MockPodLogs

func MockPodLogs(envName string, failLogRetrieval bool)

Types

type EnvMockConfig

type EnvMockConfig struct {
	EnvName         string
	CreationDelay   *int // Secs
	FailChartDeploy bool
}

type MockHelmClientWrapper

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

MockHelmClientWrapper is a mock of HelmClientWrapper interface.

var HelmWrapperMock *MockHelmClientWrapper

func NewMockHelmClientWrapper

func NewMockHelmClientWrapper(ctrl *gomock.Controller) *MockHelmClientWrapper

NewMockHelmClientWrapper creates a new mock instance.

func (*MockHelmClientWrapper) EXPECT

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

func (*MockHelmClientWrapper) GetRelease

func (m *MockHelmClientWrapper) GetRelease(relName string, getResourceInfo bool) (*release.Release, error)

GetRelease mocks base method.

func (*MockHelmClientWrapper) InjectClient

func (m *MockHelmClientWrapper) InjectClient(actionConfig *action.Configuration)

InjectClient mocks base method.

func (*MockHelmClientWrapper) InstallRelease

func (m *MockHelmClientWrapper) InstallRelease(relName string, chart *chart.Chart, vals map[string]any) (*release.Release, error)

InstallRelease mocks base method.

func (*MockHelmClientWrapper) UninstallRelease

func (m *MockHelmClientWrapper) UninstallRelease(relName string) (*release.UninstallReleaseResponse, error)

UninstallRelease mocks base method.

func (*MockHelmClientWrapper) UpgradeRelease

func (m *MockHelmClientWrapper) UpgradeRelease(relName string, chart *chart.Chart, vals map[string]any) (*release.Release, error)

UpgradeRelease mocks base method.

type MockHelmClientWrapperMockRecorder

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

MockHelmClientWrapperMockRecorder is the mock recorder for MockHelmClientWrapper.

func (*MockHelmClientWrapperMockRecorder) GetRelease

func (mr *MockHelmClientWrapperMockRecorder) GetRelease(relName, getResourceInfo any) *gomock.Call

GetRelease indicates an expected call of GetRelease.

func (*MockHelmClientWrapperMockRecorder) InjectClient

func (mr *MockHelmClientWrapperMockRecorder) InjectClient(actionConfig any) *gomock.Call

InjectClient indicates an expected call of InjectClient.

func (*MockHelmClientWrapperMockRecorder) InstallRelease

func (mr *MockHelmClientWrapperMockRecorder) InstallRelease(relName, chart, vals any) *gomock.Call

InstallRelease indicates an expected call of InstallRelease.

func (*MockHelmClientWrapperMockRecorder) UninstallRelease

func (mr *MockHelmClientWrapperMockRecorder) UninstallRelease(relName any) *gomock.Call

UninstallRelease indicates an expected call of UninstallRelease.

func (*MockHelmClientWrapperMockRecorder) UpgradeRelease

func (mr *MockHelmClientWrapperMockRecorder) UpgradeRelease(relName, chart, vals any) *gomock.Call

UpgradeRelease indicates an expected call of UpgradeRelease.

type MockKubeClientWrapper

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

MockKubeClientWrapper is a mock of KubeClientWrapper interface.

var KubeWrapperMock *MockKubeClientWrapper

func NewMockKubeClientWrapper

func NewMockKubeClientWrapper(ctrl *gomock.Controller) *MockKubeClientWrapper

NewMockKubeClientWrapper creates a new mock instance.

func (*MockKubeClientWrapper) EXPECT

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

func (*MockKubeClientWrapper) EnsureNamespace

func (m *MockKubeClientWrapper) EnsureNamespace()

EnsureNamespace mocks base method.

func (*MockKubeClientWrapper) GetPods

func (m *MockKubeClientWrapper) GetPods(namespace string, options v10.ListOptions) (*v1.PodList, error)

GetPods mocks base method.

func (*MockKubeClientWrapper) InjectClient

func (m *MockKubeClientWrapper) InjectClient(client *kubernetes.Clientset)

InjectClient mocks base method.

func (*MockKubeClientWrapper) StreamPodLogs

func (m *MockKubeClientWrapper) StreamPodLogs(namespace, podName string, options *v1.PodLogOptions) (io.ReadCloser, error)

StreamPodLogs mocks base method.

type MockKubeClientWrapperMockRecorder

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

MockKubeClientWrapperMockRecorder is the mock recorder for MockKubeClientWrapper.

func (*MockKubeClientWrapperMockRecorder) EnsureNamespace

func (mr *MockKubeClientWrapperMockRecorder) EnsureNamespace() *gomock.Call

EnsureNamespace indicates an expected call of EnsureNamespace.

func (*MockKubeClientWrapperMockRecorder) GetPods

func (mr *MockKubeClientWrapperMockRecorder) GetPods(namespace, options any) *gomock.Call

GetPods indicates an expected call of GetPods.

func (*MockKubeClientWrapperMockRecorder) InjectClient

func (mr *MockKubeClientWrapperMockRecorder) InjectClient(client any) *gomock.Call

InjectClient indicates an expected call of InjectClient.

func (*MockKubeClientWrapperMockRecorder) StreamPodLogs

func (mr *MockKubeClientWrapperMockRecorder) StreamPodLogs(namespace, podName, options any) *gomock.Call

StreamPodLogs indicates an expected call of StreamPodLogs.

Jump to

Keyboard shortcuts

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