mocks

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 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.

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) 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) (*v1alpha1.PackageBundle, error)

GetActiveBundle mocks base method.

func (*MockClient) GetActiveBundleNamespacedName

func (m *MockClient) GetActiveBundleNamespacedName(ctx context.Context) (types.NamespacedName, error)

GetActiveBundleNamespacedName mocks base method.

func (*MockClient) GetBundleList added in v0.1.12

func (m *MockClient) GetBundleList(ctx context.Context, bundles *v1alpha1.PackageBundleList) error

GetBundleList mocks base method.

func (*MockClient) IsActive

func (m *MockClient) IsActive(ctx context.Context, packageBundle *v1alpha1.PackageBundle) (bool, error)

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

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

GetActiveBundle indicates an expected call of GetActiveBundle.

func (*MockClientMockRecorder) GetActiveBundleNamespacedName

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

GetActiveBundleNamespacedName indicates an expected call of GetActiveBundleNamespacedName.

func (*MockClientMockRecorder) GetBundleList added in v0.1.12

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

GetBundleList indicates an expected call of GetBundleList.

func (*MockClientMockRecorder) IsActive

func (mr *MockClientMockRecorder) IsActive(ctx, packageBundle interface{}) *gomock.Call

IsActive indicates an expected call of IsActive.

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) DownloadBundle added in v0.1.12

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

DownloadBundle mocks base method.

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) LatestBundle added in v0.1.12

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

LatestBundle mocks base method.

func (*MockManager) ProcessLatestBundle added in v0.1.12

func (m *MockManager) ProcessLatestBundle(ctx context.Context, bundle *v1alpha1.PackageBundle) error

ProcessLatestBundle mocks base method.

func (*MockManager) SortBundlesDescending added in v0.1.12

func (m *MockManager) SortBundlesDescending(bundles []v1alpha1.PackageBundle)

SortBundlesDescending mocks base method.

func (*MockManager) Update added in v0.1.12

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

Update 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) DownloadBundle added in v0.1.12

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

DownloadBundle indicates an expected call of DownloadBundle.

func (*MockManagerMockRecorder) LatestBundle added in v0.1.12

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

LatestBundle indicates an expected call of LatestBundle.

func (*MockManagerMockRecorder) ProcessLatestBundle added in v0.1.12

func (mr *MockManagerMockRecorder) ProcessLatestBundle(ctx, bundle interface{}) *gomock.Call

ProcessLatestBundle indicates an expected call of ProcessLatestBundle.

func (*MockManagerMockRecorder) SortBundlesDescending added in v0.1.12

func (mr *MockManagerMockRecorder) SortBundlesDescending(bundles interface{}) *gomock.Call

SortBundlesDescending indicates an expected call of SortBundlesDescending.

func (*MockManagerMockRecorder) Update added in v0.1.12

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

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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