mocks

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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

This section is empty.

Types

type MockBundleRegistry

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

MockBundleRegistry is a mock of BundleRegistry interface.

func NewMockBundleRegistry

func NewMockBundleRegistry(ctrl *gomock.Controller) *MockBundleRegistry

NewMockBundleRegistry creates a new mock instance.

func (*MockBundleRegistry) EXPECT

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

func (*MockBundleRegistry) GetRegistryBaseRef

func (m *MockBundleRegistry) GetRegistryBaseRef(ctx context.Context) (string, error)

GetRegistryBaseRef mocks base method.

type MockBundleRegistryMockRecorder

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

MockBundleRegistryMockRecorder is the mock recorder for MockBundleRegistry.

func (*MockBundleRegistryMockRecorder) GetRegistryBaseRef

func (mr *MockBundleRegistryMockRecorder) GetRegistryBaseRef(ctx interface{}) *gomock.Call

GetRegistryBaseRef indicates an expected call of GetRegistryBaseRef.

type MockChartInstaller

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

MockChartInstaller is a mock of ChartInstaller interface.

func NewMockChartInstaller

func NewMockChartInstaller(ctrl *gomock.Controller) *MockChartInstaller

NewMockChartInstaller creates a new mock instance.

func (*MockChartInstaller) EXPECT

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

func (*MockChartInstaller) InstallChart added in v0.9.2

func (m *MockChartInstaller) InstallChart(ctx context.Context, chart, ociURI, version, kubeconfigFilePath, namespace, valueFilePath string, skipCRDs bool, values []string) error

InstallChart mocks base method.

type MockChartInstallerMockRecorder

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

MockChartInstallerMockRecorder is the mock recorder for MockChartInstaller.

func (*MockChartInstallerMockRecorder) InstallChart added in v0.9.2

func (mr *MockChartInstallerMockRecorder) InstallChart(ctx, chart, ociURI, version, kubeconfigFilePath, namespace, valueFilePath, skipCRDs, values interface{}) *gomock.Call

InstallChart indicates an expected call of InstallChart.

type MockChartManager added in v0.15.0

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

MockChartManager is a mock of ChartManager interface.

func NewMockChartManager added in v0.15.0

func NewMockChartManager(ctrl *gomock.Controller) *MockChartManager

NewMockChartManager creates a new mock instance.

func (*MockChartManager) Delete added in v0.15.0

func (m *MockChartManager) Delete(ctx context.Context, kubeconfigFilePath, installName, namespace string) error

Delete mocks base method.

func (*MockChartManager) EXPECT added in v0.15.0

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

func (*MockChartManager) InstallChart added in v0.15.0

func (m *MockChartManager) InstallChart(ctx context.Context, chart, ociURI, version, kubeconfigFilePath, namespace, valueFilePath string, skipCRDs bool, values []string) error

InstallChart mocks base method.

func (*MockChartManager) RegistryLogin added in v0.19.4

func (m *MockChartManager) RegistryLogin(ctx context.Context, registry, username, password string) error

RegistryLogin mocks base method.

type MockChartManagerMockRecorder added in v0.15.0

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

MockChartManagerMockRecorder is the mock recorder for MockChartManager.

func (*MockChartManagerMockRecorder) Delete added in v0.15.0

func (mr *MockChartManagerMockRecorder) Delete(ctx, kubeconfigFilePath, installName, namespace interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockChartManagerMockRecorder) InstallChart added in v0.15.0

func (mr *MockChartManagerMockRecorder) InstallChart(ctx, chart, ociURI, version, kubeconfigFilePath, namespace, valueFilePath, skipCRDs, values interface{}) *gomock.Call

InstallChart indicates an expected call of InstallChart.

func (*MockChartManagerMockRecorder) RegistryLogin added in v0.19.4

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

RegistryLogin indicates an expected call of RegistryLogin.

type MockChartUninstaller added in v0.15.0

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

MockChartUninstaller is a mock of ChartUninstaller interface.

func NewMockChartUninstaller added in v0.15.0

func NewMockChartUninstaller(ctrl *gomock.Controller) *MockChartUninstaller

NewMockChartUninstaller creates a new mock instance.

func (*MockChartUninstaller) Delete added in v0.15.0

func (m *MockChartUninstaller) Delete(ctx context.Context, kubeconfigFilePath, installName, namespace string) error

Delete mocks base method.

func (*MockChartUninstaller) EXPECT added in v0.15.0

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

type MockChartUninstallerMockRecorder added in v0.15.0

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

MockChartUninstallerMockRecorder is the mock recorder for MockChartUninstaller.

func (*MockChartUninstallerMockRecorder) Delete added in v0.15.0

func (mr *MockChartUninstallerMockRecorder) Delete(ctx, kubeconfigFilePath, installName, namespace interface{}) *gomock.Call

Delete indicates an expected call of Delete.

type MockClientBuilder added in v0.15.0

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

MockClientBuilder is a mock of ClientBuilder interface.

func NewMockClientBuilder added in v0.15.0

func NewMockClientBuilder(ctrl *gomock.Controller) *MockClientBuilder

NewMockClientBuilder creates a new mock instance.

func (*MockClientBuilder) EXPECT added in v0.15.0

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

func (*MockClientBuilder) GetClient added in v0.15.0

GetClient mocks base method.

type MockClientBuilderMockRecorder added in v0.15.0

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

MockClientBuilderMockRecorder is the mock recorder for MockClientBuilder.

func (*MockClientBuilderMockRecorder) GetClient added in v0.15.0

func (mr *MockClientBuilderMockRecorder) GetClient(arg0, arg1 interface{}) *gomock.Call

GetClient indicates an expected call of GetClient.

type MockKubeClient added in v0.15.0

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

MockKubeClient is a mock of Client interface.

func NewMockKubeClient added in v0.15.0

func NewMockKubeClient(ctrl *gomock.Controller) *MockKubeClient

NewMockKubeClient creates a new mock instance.

func (*MockKubeClient) Create added in v0.15.0

func (m *MockKubeClient) Create(arg0 context.Context, arg1 client.Object, arg2 ...client.CreateOption) error

Create mocks base method.

func (*MockKubeClient) Delete added in v0.15.0

func (m *MockKubeClient) Delete(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteOption) error

Delete mocks base method.

func (*MockKubeClient) DeleteAllOf added in v0.15.0

func (m *MockKubeClient) DeleteAllOf(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteAllOfOption) error

DeleteAllOf mocks base method.

func (*MockKubeClient) EXPECT added in v0.15.0

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

func (*MockKubeClient) Get added in v0.15.0

Get mocks base method.

func (*MockKubeClient) GroupVersionKindFor added in v0.19.6

func (m *MockKubeClient) GroupVersionKindFor(arg0 runtime.Object) (schema.GroupVersionKind, error)

GroupVersionKindFor mocks base method.

func (*MockKubeClient) IsObjectNamespaced added in v0.19.6

func (m *MockKubeClient) IsObjectNamespaced(arg0 runtime.Object) (bool, error)

IsObjectNamespaced mocks base method.

func (*MockKubeClient) List added in v0.15.0

func (m *MockKubeClient) List(arg0 context.Context, arg1 client.ObjectList, arg2 ...client.ListOption) error

List mocks base method.

func (*MockKubeClient) Patch added in v0.15.0

func (m *MockKubeClient) Patch(arg0 context.Context, arg1 client.Object, arg2 client.Patch, arg3 ...client.PatchOption) error

Patch mocks base method.

func (*MockKubeClient) RESTMapper added in v0.15.0

func (m *MockKubeClient) RESTMapper() meta.RESTMapper

RESTMapper mocks base method.

func (*MockKubeClient) Scheme added in v0.15.0

func (m *MockKubeClient) Scheme() *runtime.Scheme

Scheme mocks base method.

func (*MockKubeClient) Status added in v0.15.0

Status mocks base method.

func (*MockKubeClient) SubResource added in v0.16.0

func (m *MockKubeClient) SubResource(arg0 string) client.SubResourceClient

SubResource mocks base method.

func (*MockKubeClient) Update added in v0.15.0

func (m *MockKubeClient) Update(arg0 context.Context, arg1 client.Object, arg2 ...client.UpdateOption) error

Update mocks base method.

type MockKubeClientMockRecorder added in v0.15.0

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

MockKubeClientMockRecorder is the mock recorder for MockKubeClient.

func (*MockKubeClientMockRecorder) Create added in v0.15.0

func (mr *MockKubeClientMockRecorder) Create(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockKubeClientMockRecorder) Delete added in v0.15.0

func (mr *MockKubeClientMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockKubeClientMockRecorder) DeleteAllOf added in v0.15.0

func (mr *MockKubeClientMockRecorder) DeleteAllOf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DeleteAllOf indicates an expected call of DeleteAllOf.

func (*MockKubeClientMockRecorder) Get added in v0.15.0

func (mr *MockKubeClientMockRecorder) Get(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockKubeClientMockRecorder) GroupVersionKindFor added in v0.19.6

func (mr *MockKubeClientMockRecorder) GroupVersionKindFor(arg0 interface{}) *gomock.Call

GroupVersionKindFor indicates an expected call of GroupVersionKindFor.

func (*MockKubeClientMockRecorder) IsObjectNamespaced added in v0.19.6

func (mr *MockKubeClientMockRecorder) IsObjectNamespaced(arg0 interface{}) *gomock.Call

IsObjectNamespaced indicates an expected call of IsObjectNamespaced.

func (*MockKubeClientMockRecorder) List added in v0.15.0

func (mr *MockKubeClientMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockKubeClientMockRecorder) Patch added in v0.15.0

func (mr *MockKubeClientMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Patch indicates an expected call of Patch.

func (*MockKubeClientMockRecorder) RESTMapper added in v0.15.0

func (mr *MockKubeClientMockRecorder) RESTMapper() *gomock.Call

RESTMapper indicates an expected call of RESTMapper.

func (*MockKubeClientMockRecorder) Scheme added in v0.15.0

func (mr *MockKubeClientMockRecorder) Scheme() *gomock.Call

Scheme indicates an expected call of Scheme.

func (*MockKubeClientMockRecorder) Status added in v0.15.0

func (mr *MockKubeClientMockRecorder) Status() *gomock.Call

Status indicates an expected call of Status.

func (*MockKubeClientMockRecorder) SubResource added in v0.16.0

func (mr *MockKubeClientMockRecorder) SubResource(arg0 interface{}) *gomock.Call

SubResource indicates an expected call of SubResource.

func (*MockKubeClientMockRecorder) Update added in v0.15.0

func (mr *MockKubeClientMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockKubeDeleter added in v0.15.0

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

MockKubeDeleter is a mock of KubeDeleter interface.

func NewMockKubeDeleter added in v0.15.0

func NewMockKubeDeleter(ctrl *gomock.Controller) *MockKubeDeleter

NewMockKubeDeleter creates a new mock instance.

func (*MockKubeDeleter) Delete added in v0.15.0

func (m *MockKubeDeleter) Delete(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteOption) error

Delete mocks base method.

func (*MockKubeDeleter) EXPECT added in v0.15.0

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

type MockKubeDeleterMockRecorder added in v0.15.0

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

MockKubeDeleterMockRecorder is the mock recorder for MockKubeDeleter.

func (*MockKubeDeleterMockRecorder) Delete added in v0.15.0

func (mr *MockKubeDeleterMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

type MockKubectlRunner

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

MockKubectlRunner is a mock of KubectlRunner interface.

func NewMockKubectlRunner

func NewMockKubectlRunner(ctrl *gomock.Controller) *MockKubectlRunner

NewMockKubectlRunner creates a new mock instance.

func (*MockKubectlRunner) EXPECT

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

func (*MockKubectlRunner) ExecuteCommand

func (m *MockKubectlRunner) ExecuteCommand(ctx context.Context, opts ...string) (bytes.Buffer, error)

ExecuteCommand mocks base method.

func (*MockKubectlRunner) ExecuteFromYaml added in v0.11.0

func (m *MockKubectlRunner) ExecuteFromYaml(ctx context.Context, yaml []byte, opts ...string) (bytes.Buffer, error)

ExecuteFromYaml mocks base method.

func (*MockKubectlRunner) GetObject added in v0.12.0

func (m *MockKubectlRunner) GetObject(ctx context.Context, resourceType, name, namespece, kubeconfig string, obj runtime.Object) error

GetObject mocks base method.

func (*MockKubectlRunner) HasResource added in v0.12.0

func (m *MockKubectlRunner) HasResource(ctx context.Context, resourceType, name, kubeconfig, namespace string) (bool, error)

HasResource mocks base method.

type MockKubectlRunnerMockRecorder

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

MockKubectlRunnerMockRecorder is the mock recorder for MockKubectlRunner.

func (*MockKubectlRunnerMockRecorder) ExecuteCommand

func (mr *MockKubectlRunnerMockRecorder) ExecuteCommand(ctx interface{}, opts ...interface{}) *gomock.Call

ExecuteCommand indicates an expected call of ExecuteCommand.

func (*MockKubectlRunnerMockRecorder) ExecuteFromYaml added in v0.11.0

func (mr *MockKubectlRunnerMockRecorder) ExecuteFromYaml(ctx, yaml interface{}, opts ...interface{}) *gomock.Call

ExecuteFromYaml indicates an expected call of ExecuteFromYaml.

func (*MockKubectlRunnerMockRecorder) GetObject added in v0.12.0

func (mr *MockKubectlRunnerMockRecorder) GetObject(ctx, resourceType, name, namespece, kubeconfig, obj interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockKubectlRunnerMockRecorder) HasResource added in v0.12.0

func (mr *MockKubectlRunnerMockRecorder) HasResource(ctx, resourceType, name, kubeconfig, namespace interface{}) *gomock.Call

HasResource indicates an expected call of HasResource.

type MockManager

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

MockManager is a mock of Manager interface.

func NewMockManager

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) EXPECT

func (m *MockManager) EXPECT() *MockManagerMockRecorder

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

func (*MockManager) LatestBundle

func (m *MockManager) LatestBundle(ctx context.Context, baseRef, kubeMajor, kubeMinor, clusterName string) (*v1alpha1.PackageBundle, error)

LatestBundle mocks base method.

type MockManagerMockRecorder

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

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) LatestBundle

func (mr *MockManagerMockRecorder) LatestBundle(ctx, baseRef, kubeMajor, kubeMinor, clusterName interface{}) *gomock.Call

LatestBundle indicates an expected call of LatestBundle.

type MockPackageController added in v0.11.0

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

MockPackageController is a mock of PackageController interface.

func NewMockPackageController added in v0.11.0

func NewMockPackageController(ctrl *gomock.Controller) *MockPackageController

NewMockPackageController creates a new mock instance.

func (*MockPackageController) EXPECT added in v0.11.0

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

func (*MockPackageController) Enable added in v0.15.0

func (m *MockPackageController) Enable(ctx context.Context) error

Enable mocks base method.

func (*MockPackageController) IsInstalled added in v0.12.0

func (m *MockPackageController) IsInstalled(ctx context.Context) bool

IsInstalled mocks base method.

type MockPackageControllerMockRecorder added in v0.11.0

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

MockPackageControllerMockRecorder is the mock recorder for MockPackageController.

func (*MockPackageControllerMockRecorder) Enable added in v0.15.0

func (mr *MockPackageControllerMockRecorder) Enable(ctx interface{}) *gomock.Call

Enable indicates an expected call of Enable.

func (*MockPackageControllerMockRecorder) IsInstalled added in v0.12.0

func (mr *MockPackageControllerMockRecorder) IsInstalled(ctx interface{}) *gomock.Call

IsInstalled indicates an expected call of IsInstalled.

type MockPackageHandler added in v0.11.0

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

MockPackageHandler is a mock of PackageHandler interface.

func NewMockPackageHandler added in v0.11.0

func NewMockPackageHandler(ctrl *gomock.Controller) *MockPackageHandler

NewMockPackageHandler creates a new mock instance.

func (*MockPackageHandler) CreatePackages added in v0.11.0

func (m *MockPackageHandler) CreatePackages(ctx context.Context, fileName, kubeConfig string) error

CreatePackages mocks base method.

func (*MockPackageHandler) EXPECT added in v0.11.0

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

type MockPackageHandlerMockRecorder added in v0.11.0

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

MockPackageHandlerMockRecorder is the mock recorder for MockPackageHandler.

func (*MockPackageHandlerMockRecorder) CreatePackages added in v0.11.0

func (mr *MockPackageHandlerMockRecorder) CreatePackages(ctx, fileName, kubeConfig interface{}) *gomock.Call

CreatePackages indicates an expected call of CreatePackages.

type MockReader

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

MockReader is a mock of Reader interface.

func NewMockReader

func NewMockReader(ctrl *gomock.Controller) *MockReader

NewMockReader creates a new mock instance.

func (*MockReader) EXPECT

func (m *MockReader) EXPECT() *MockReaderMockRecorder

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

func (*MockReader) ReadBundlesForVersion

func (m *MockReader) ReadBundlesForVersion(eksaVersion string) (*v1alpha1.Bundles, error)

ReadBundlesForVersion mocks base method.

type MockReaderMockRecorder

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

MockReaderMockRecorder is the mock recorder for MockReader.

func (*MockReaderMockRecorder) ReadBundlesForVersion

func (mr *MockReaderMockRecorder) ReadBundlesForVersion(eksaVersion interface{}) *gomock.Call

ReadBundlesForVersion indicates an expected call of ReadBundlesForVersion.

Jump to

Keyboard shortcuts

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