mocks

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 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 MockDocker

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

MockDocker is a mock of Docker interface.

func NewMockDocker

func NewMockDocker(ctrl *gomock.Controller) *MockDocker

NewMockDocker creates a new mock instance.

func (*MockDocker) CheckContainerExistence

func (m *MockDocker) CheckContainerExistence(ctx context.Context, name string) (bool, error)

CheckContainerExistence mocks base method.

func (*MockDocker) EXPECT

func (m *MockDocker) EXPECT() *MockDockerMockRecorder

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

func (*MockDocker) ForceRemove

func (m *MockDocker) ForceRemove(ctx context.Context, name string) error

ForceRemove mocks base method.

func (*MockDocker) Run

func (m *MockDocker) Run(ctx context.Context, image, name string, cmd []string, flags ...string) error

Run mocks base method.

type MockDockerMockRecorder

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

MockDockerMockRecorder is the mock recorder for MockDocker.

func (*MockDockerMockRecorder) CheckContainerExistence

func (mr *MockDockerMockRecorder) CheckContainerExistence(ctx, name interface{}) *gomock.Call

CheckContainerExistence indicates an expected call of CheckContainerExistence.

func (*MockDockerMockRecorder) ForceRemove

func (mr *MockDockerMockRecorder) ForceRemove(ctx, name interface{}) *gomock.Call

ForceRemove indicates an expected call of ForceRemove.

func (*MockDockerMockRecorder) Run

func (mr *MockDockerMockRecorder) Run(ctx, image, name, cmd interface{}, flags ...interface{}) *gomock.Call

Run indicates an expected call of Run.

type MockHelm

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

MockHelm is a mock of Helm interface.

func NewMockHelm

func NewMockHelm(ctrl *gomock.Controller) *MockHelm

NewMockHelm creates a new mock instance.

func (*MockHelm) EXPECT

func (m *MockHelm) EXPECT() *MockHelmMockRecorder

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

func (*MockHelm) ListCharts added in v0.20.0

func (m *MockHelm) ListCharts(ctx context.Context, kubeconfigFilePath, filter string) ([]string, error)

ListCharts mocks base method.

func (*MockHelm) RegistryLogin added in v0.13.0

func (m *MockHelm) RegistryLogin(ctx context.Context, endpoint, username, password string) error

RegistryLogin mocks base method.

func (*MockHelm) Uninstall added in v0.20.0

func (m *MockHelm) Uninstall(ctx context.Context, chart, kubeconfigFilePath, namespace string, opts ...helm.Opt) error

Uninstall mocks base method.

func (*MockHelm) UpgradeInstallChartWithValuesFile added in v0.20.0

func (m *MockHelm) UpgradeInstallChartWithValuesFile(ctx context.Context, chart, ociURI, version, kubeconfigFilePath, namespace, valuesFilePath string, opts ...helm.Opt) error

UpgradeInstallChartWithValuesFile mocks base method.

type MockHelmMockRecorder

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

MockHelmMockRecorder is the mock recorder for MockHelm.

func (*MockHelmMockRecorder) ListCharts added in v0.20.0

func (mr *MockHelmMockRecorder) ListCharts(ctx, kubeconfigFilePath, filter interface{}) *gomock.Call

ListCharts indicates an expected call of ListCharts.

func (*MockHelmMockRecorder) RegistryLogin added in v0.13.0

func (mr *MockHelmMockRecorder) RegistryLogin(ctx, endpoint, username, password interface{}) *gomock.Call

RegistryLogin indicates an expected call of RegistryLogin.

func (*MockHelmMockRecorder) Uninstall added in v0.20.0

func (mr *MockHelmMockRecorder) Uninstall(ctx, chart, kubeconfigFilePath, namespace interface{}, opts ...interface{}) *gomock.Call

Uninstall indicates an expected call of Uninstall.

func (*MockHelmMockRecorder) UpgradeInstallChartWithValuesFile added in v0.20.0

func (mr *MockHelmMockRecorder) UpgradeInstallChartWithValuesFile(ctx, chart, ociURI, version, kubeconfigFilePath, namespace, valuesFilePath interface{}, opts ...interface{}) *gomock.Call

UpgradeInstallChartWithValuesFile indicates an expected call of UpgradeInstallChartWithValuesFile.

type MockStackInstaller

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

MockStackInstaller is a mock of StackInstaller interface.

func NewMockStackInstaller

func NewMockStackInstaller(ctrl *gomock.Controller) *MockStackInstaller

NewMockStackInstaller creates a new mock instance.

func (*MockStackInstaller) AddNoProxyIP added in v0.16.0

func (m *MockStackInstaller) AddNoProxyIP(IP string)

AddNoProxyIP mocks base method.

func (*MockStackInstaller) CleanupLocalBoots

func (m *MockStackInstaller) CleanupLocalBoots(ctx context.Context, forceCleanup bool) error

CleanupLocalBoots mocks base method.

func (*MockStackInstaller) EXPECT

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

func (*MockStackInstaller) GetNamespace added in v0.15.0

func (m *MockStackInstaller) GetNamespace() string

GetNamespace mocks base method.

func (*MockStackInstaller) HasLegacyChart added in v0.20.0

func (m *MockStackInstaller) HasLegacyChart(ctx context.Context, bundle v1alpha1.TinkerbellBundle, kubeconfig string) (bool, error)

HasLegacyChart mocks base method.

func (*MockStackInstaller) Install

func (m *MockStackInstaller) Install(ctx context.Context, bundle v1alpha1.TinkerbellBundle, tinkerbellIP, kubeconfig, hookOverride string, opts ...stack.InstallOption) error

Install mocks base method.

func (*MockStackInstaller) Uninstall added in v0.20.0

func (m *MockStackInstaller) Uninstall(ctx context.Context, bundle v1alpha1.TinkerbellBundle, kubeconfig string) error

Uninstall mocks base method.

func (*MockStackInstaller) UninstallLocal

func (m *MockStackInstaller) UninstallLocal(ctx context.Context) error

UninstallLocal mocks base method.

func (*MockStackInstaller) Upgrade added in v0.15.0

func (m *MockStackInstaller) Upgrade(arg0 context.Context, arg1 v1alpha1.TinkerbellBundle, tinkerbellIP, kubeconfig, hookOverride string, opts ...stack.InstallOption) error

Upgrade mocks base method.

func (*MockStackInstaller) UpgradeInstallCRDs added in v0.20.0

func (m *MockStackInstaller) UpgradeInstallCRDs(ctx context.Context, bundle v1alpha1.TinkerbellBundle, kubeconfig string, opts ...stack.InstallOption) error

UpgradeInstallCRDs mocks base method.

func (*MockStackInstaller) UpgradeLegacy added in v0.20.0

func (m *MockStackInstaller) UpgradeLegacy(ctx context.Context, bundle v1alpha1.TinkerbellBundle, kubeconfig string, opts ...stack.InstallOption) error

UpgradeLegacy mocks base method.

type MockStackInstallerMockRecorder

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

MockStackInstallerMockRecorder is the mock recorder for MockStackInstaller.

func (*MockStackInstallerMockRecorder) AddNoProxyIP added in v0.16.0

func (mr *MockStackInstallerMockRecorder) AddNoProxyIP(IP interface{}) *gomock.Call

AddNoProxyIP indicates an expected call of AddNoProxyIP.

func (*MockStackInstallerMockRecorder) CleanupLocalBoots

func (mr *MockStackInstallerMockRecorder) CleanupLocalBoots(ctx, forceCleanup interface{}) *gomock.Call

CleanupLocalBoots indicates an expected call of CleanupLocalBoots.

func (*MockStackInstallerMockRecorder) GetNamespace added in v0.15.0

func (mr *MockStackInstallerMockRecorder) GetNamespace() *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockStackInstallerMockRecorder) HasLegacyChart added in v0.20.0

func (mr *MockStackInstallerMockRecorder) HasLegacyChart(ctx, bundle, kubeconfig interface{}) *gomock.Call

HasLegacyChart indicates an expected call of HasLegacyChart.

func (*MockStackInstallerMockRecorder) Install

func (mr *MockStackInstallerMockRecorder) Install(ctx, bundle, tinkerbellIP, kubeconfig, hookOverride interface{}, opts ...interface{}) *gomock.Call

Install indicates an expected call of Install.

func (*MockStackInstallerMockRecorder) Uninstall added in v0.20.0

func (mr *MockStackInstallerMockRecorder) Uninstall(ctx, bundle, kubeconfig interface{}) *gomock.Call

Uninstall indicates an expected call of Uninstall.

func (*MockStackInstallerMockRecorder) UninstallLocal

func (mr *MockStackInstallerMockRecorder) UninstallLocal(ctx interface{}) *gomock.Call

UninstallLocal indicates an expected call of UninstallLocal.

func (*MockStackInstallerMockRecorder) Upgrade added in v0.15.0

func (mr *MockStackInstallerMockRecorder) Upgrade(arg0, arg1, tinkerbellIP, kubeconfig, hookOverride interface{}, opts ...interface{}) *gomock.Call

Upgrade indicates an expected call of Upgrade.

func (*MockStackInstallerMockRecorder) UpgradeInstallCRDs added in v0.20.0

func (mr *MockStackInstallerMockRecorder) UpgradeInstallCRDs(ctx, bundle, kubeconfig interface{}, opts ...interface{}) *gomock.Call

UpgradeInstallCRDs indicates an expected call of UpgradeInstallCRDs.

func (*MockStackInstallerMockRecorder) UpgradeLegacy added in v0.20.0

func (mr *MockStackInstallerMockRecorder) UpgradeLegacy(ctx, bundle, kubeconfig interface{}, opts ...interface{}) *gomock.Call

UpgradeLegacy indicates an expected call of UpgradeLegacy.

Jump to

Keyboard shortcuts

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