fakes

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 3 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 added in v0.2.0

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

func (*MockFetcher) GetComponentVersion

func (m *MockFetcher) GetComponentVersion(ctx context.Context, octx ocm.Context, obj *v1alpha1.ComponentSubscription, 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) GetLatestSourceComponentVersion

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

func (*MockFetcher) TransferComponent

func (m *MockFetcher) TransferComponent(ctx context.Context, octx ocm.Context, obj *v1alpha1.ComponentSubscription, sourceComponentVersion ocm.ComponentVersionAccess, version string) error

func (*MockFetcher) TransferComponentCallingArgumentsOnCall

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

func (*MockFetcher) TransferComponentReturns

func (m *MockFetcher) TransferComponentReturns(err error)

func (*MockFetcher) TransferComponentWasNotCalled

func (m *MockFetcher) TransferComponentWasNotCalled() bool

func (*MockFetcher) VerifySourceComponent

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

func (*MockFetcher) VerifySourceComponentCallingArgumentsOnCall

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

func (*MockFetcher) VerifySourceComponentReturns

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

func (*MockFetcher) VerifySourceComponentWasNotCalled

func (m *MockFetcher) VerifySourceComponentWasNotCalled() bool

Jump to

Keyboard shortcuts

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