fakes

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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