fakes

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFetcher

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

MockFetcher mocks OCM client. Sadly, no generated code can be used, because none of them understand not importing type aliased names that OCM uses. Meaning, external types request internally aliased resources and the mock does not compile. I.e.: counterfeiter: https://github.com/maxbrunsfeld/counterfeiter/issues/174

func (*MockFetcher) CreateAuthenticatedOCMContext

func (m *MockFetcher) CreateAuthenticatedOCMContext(ctx context.Context, obj *v1alpha1.ComponentVersion) (ocm.Context, error)

func (*MockFetcher) GetComponentVersion

func (m *MockFetcher) GetComponentVersion(ctx context.Context, octx ocm.Context, obj *v1alpha1.ComponentVersion, name, version string) (ocm.ComponentVersionAccess, error)

func (*MockFetcher) GetComponentVersionCallingArgumentsOnCall

func (m *MockFetcher) GetComponentVersionCallingArgumentsOnCall(i int) []any

func (*MockFetcher) GetComponentVersionReturnsForName

func (m *MockFetcher) GetComponentVersionReturnsForName(name string, cva ocm.ComponentVersionAccess, err error)

func (*MockFetcher) GetComponentVersionWasNotCalled

func (m *MockFetcher) GetComponentVersionWasNotCalled() bool

func (*MockFetcher) GetLatestComponentVersionCallingArgumentsOnCall

func (m *MockFetcher) GetLatestComponentVersionCallingArgumentsOnCall(i int) []any

func (*MockFetcher) GetLatestComponentVersionReturns

func (m *MockFetcher) GetLatestComponentVersionReturns(version string, err error)

func (*MockFetcher) GetLatestComponentVersionWasNotCalled

func (m *MockFetcher) GetLatestComponentVersionWasNotCalled() bool

func (*MockFetcher) GetLatestValidComponentVersion

func (m *MockFetcher) GetLatestValidComponentVersion(ctx context.Context, octx ocm.Context, obj *v1alpha1.ComponentVersion) (string, error)

func (*MockFetcher) GetResource

func (*MockFetcher) GetResourceCallingArgumentsOnCall

func (m *MockFetcher) GetResourceCallingArgumentsOnCall(i int) []any

func (*MockFetcher) GetResourceReturns

func (m *MockFetcher) GetResourceReturns(reader io.ReadCloser, digest string, err error)

func (*MockFetcher) GetResourceReturnsOnCall

func (m *MockFetcher) GetResourceReturnsOnCall(n int, reader io.ReadCloser, err error)

func (*MockFetcher) GetResourceWasNotCalled

func (m *MockFetcher) GetResourceWasNotCalled() bool

func (*MockFetcher) ListComponentVersions

func (m *MockFetcher) ListComponentVersions(logger logr.Logger, octx ocm.Context, obj *v1alpha1.ComponentVersion) ([]ocmctrl.Version, error)

func (*MockFetcher) ListComponentVersionsCallingArgumentsOnCall

func (m *MockFetcher) ListComponentVersionsCallingArgumentsOnCall(i int) []any

func (*MockFetcher) ListComponentVersionsReturns

func (m *MockFetcher) ListComponentVersionsReturns(versions []ocmctrl.Version, err error)

func (*MockFetcher) ListComponentVersionsWasNotCalled

func (m *MockFetcher) ListComponentVersionsWasNotCalled() bool

func (*MockFetcher) VerifyComponent

func (m *MockFetcher) VerifyComponent(ctx context.Context, octx ocm.Context, obj *v1alpha1.ComponentVersion, version string) (bool, error)

func (*MockFetcher) VerifyComponentCallingArgumentsOnCall

func (m *MockFetcher) VerifyComponentCallingArgumentsOnCall(i int) []any

func (*MockFetcher) VerifyComponentReturns

func (m *MockFetcher) VerifyComponentReturns(verified bool, err error)

func (*MockFetcher) VerifyComponentWasNotCalled

func (m *MockFetcher) VerifyComponentWasNotCalled() bool

Jump to

Keyboard shortcuts

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