mocks

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 5 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) CreateClusterNamespace added in v0.2.8

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

CreateClusterNamespace 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) 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) CreateClusterNamespace added in v0.2.8

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

CreateClusterNamespace indicates an expected call of CreateClusterNamespace.

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) 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 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 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 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 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