mocks

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) CreateBundle added in v0.1.12

func (m *MockClient) CreateBundle(ctx context.Context, bundle *v1alpha1.PackageBundle) error

CreateBundle mocks base method.

func (*MockClient) CreateClusterConfigMap added in v0.2.9

func (m *MockClient) CreateClusterConfigMap(ctx context.Context, clusterName string) error

CreateClusterConfigMap mocks base method.

func (*MockClient) CreatePackage added in v0.2.23

func (m *MockClient) CreatePackage(ctx context.Context, pkg *v1alpha1.Package) error

CreatePackage mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetActiveBundle

func (m *MockClient) GetActiveBundle(ctx context.Context, clusterName string) (*v1alpha1.PackageBundle, error)

GetActiveBundle mocks base method.

func (*MockClient) GetBundle added in v0.2.8

func (m *MockClient) GetBundle(ctx context.Context, name string) (*v1alpha1.PackageBundle, error)

GetBundle mocks base method.

func (*MockClient) GetBundleList added in v0.1.12

func (m *MockClient) GetBundleList(ctx context.Context) ([]v1alpha1.PackageBundle, error)

GetBundleList mocks base method.

func (*MockClient) GetPackageBundleController added in v0.2.0

func (m *MockClient) GetPackageBundleController(ctx context.Context, clusterName string) (*v1alpha1.PackageBundleController, error)

GetPackageBundleController mocks base method.

func (*MockClient) GetPackageList added in v0.2.23

func (m *MockClient) GetPackageList(ctx context.Context, namespace string) (v1alpha1.PackageList, error)

GetPackageList mocks base method.

func (*MockClient) GetSecret added in v0.3.6

func (m *MockClient) GetSecret(ctx context.Context, name string) (*v1.Secret, error)

GetSecret mocks base method.

func (*MockClient) Save added in v0.2.0

func (m *MockClient) Save(ctx context.Context, object client.Object) error

Save mocks base method.

func (*MockClient) SaveStatus added in v0.2.0

func (m *MockClient) SaveStatus(ctx context.Context, object client.Object) error

SaveStatus mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) CreateBundle added in v0.1.12

func (mr *MockClientMockRecorder) CreateBundle(ctx, bundle interface{}) *gomock.Call

CreateBundle indicates an expected call of CreateBundle.

func (*MockClientMockRecorder) CreateClusterConfigMap added in v0.2.9

func (mr *MockClientMockRecorder) CreateClusterConfigMap(ctx, clusterName interface{}) *gomock.Call

CreateClusterConfigMap indicates an expected call of CreateClusterConfigMap.

func (*MockClientMockRecorder) CreatePackage added in v0.2.23

func (mr *MockClientMockRecorder) CreatePackage(ctx, pkg interface{}) *gomock.Call

CreatePackage indicates an expected call of CreatePackage.

func (*MockClientMockRecorder) GetActiveBundle

func (mr *MockClientMockRecorder) GetActiveBundle(ctx, clusterName interface{}) *gomock.Call

GetActiveBundle indicates an expected call of GetActiveBundle.

func (*MockClientMockRecorder) GetBundle added in v0.2.8

func (mr *MockClientMockRecorder) GetBundle(ctx, name interface{}) *gomock.Call

GetBundle indicates an expected call of GetBundle.

func (*MockClientMockRecorder) GetBundleList added in v0.1.12

func (mr *MockClientMockRecorder) GetBundleList(ctx interface{}) *gomock.Call

GetBundleList indicates an expected call of GetBundleList.

func (*MockClientMockRecorder) GetPackageBundleController added in v0.2.0

func (mr *MockClientMockRecorder) GetPackageBundleController(ctx, clusterName interface{}) *gomock.Call

GetPackageBundleController indicates an expected call of GetPackageBundleController.

func (*MockClientMockRecorder) GetPackageList added in v0.2.23

func (mr *MockClientMockRecorder) GetPackageList(ctx, namespace interface{}) *gomock.Call

GetPackageList indicates an expected call of GetPackageList.

func (*MockClientMockRecorder) GetSecret added in v0.3.6

func (mr *MockClientMockRecorder) GetSecret(ctx, name interface{}) *gomock.Call

GetSecret indicates an expected call of GetSecret.

func (*MockClientMockRecorder) Save added in v0.2.0

func (mr *MockClientMockRecorder) Save(ctx, object interface{}) *gomock.Call

Save indicates an expected call of Save.

func (*MockClientMockRecorder) SaveStatus added in v0.2.0

func (mr *MockClientMockRecorder) SaveStatus(ctx, object interface{}) *gomock.Call

SaveStatus indicates an expected call of SaveStatus.

type MockManager added in v0.1.12

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

MockManager is a mock of Manager interface.

func NewMockManager added in v0.1.12

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) EXPECT added in v0.1.12

func (m *MockManager) EXPECT() *MockManagerMockRecorder

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

func (*MockManager) ProcessBundle added in v0.1.14

func (m *MockManager) ProcessBundle(ctx context.Context, newBundle *v1alpha1.PackageBundle) (bool, error)

ProcessBundle mocks base method.

func (*MockManager) ProcessBundleController added in v0.2.0

func (m *MockManager) ProcessBundleController(ctx context.Context, pbc *v1alpha1.PackageBundleController) error

ProcessBundleController mocks base method.

type MockManagerMockRecorder added in v0.1.12

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

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) ProcessBundle added in v0.1.14

func (mr *MockManagerMockRecorder) ProcessBundle(ctx, newBundle interface{}) *gomock.Call

ProcessBundle indicates an expected call of ProcessBundle.

func (*MockManagerMockRecorder) ProcessBundleController added in v0.2.0

func (mr *MockManagerMockRecorder) ProcessBundleController(ctx, pbc interface{}) *gomock.Call

ProcessBundleController indicates an expected call of ProcessBundleController.

type MockRegistryClient added in v0.2.0

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

MockRegistryClient is a mock of RegistryClient interface.

func NewMockRegistryClient added in v0.2.0

func NewMockRegistryClient(ctrl *gomock.Controller) *MockRegistryClient

NewMockRegistryClient creates a new mock instance.

func (*MockRegistryClient) DownloadBundle added in v0.2.0

func (m *MockRegistryClient) DownloadBundle(ctx context.Context, ref, clusterName string) (*v1alpha1.PackageBundle, error)

DownloadBundle mocks base method.

func (*MockRegistryClient) EXPECT added in v0.2.0

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

func (*MockRegistryClient) LatestBundle added in v0.2.0

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

LatestBundle mocks base method.

type MockRegistryClientMockRecorder added in v0.2.0

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

MockRegistryClientMockRecorder is the mock recorder for MockRegistryClient.

func (*MockRegistryClientMockRecorder) DownloadBundle added in v0.2.0

func (mr *MockRegistryClientMockRecorder) DownloadBundle(ctx, ref, clusterName interface{}) *gomock.Call

DownloadBundle indicates an expected call of DownloadBundle.

func (*MockRegistryClientMockRecorder) LatestBundle added in v0.2.0

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

LatestBundle indicates an expected call of LatestBundle.

Jump to

Keyboard shortcuts

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