fakes

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 6 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) GetComponentVersion

func (m *MockFetcher) GetComponentVersion(ctx context.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) GetLatestComponentVersion added in v0.1.0

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

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) 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(ocmCtx 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, 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