Documentation
¶
Index ¶
- type MockFetcher
- func (m *MockFetcher) GetComponentVersion(ctx context.Context, obj *v1alpha12.ComponentSubscription, version string) (ocm.ComponentVersionAccess, error)
- func (m *MockFetcher) GetComponentVersionCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) GetComponentVersionReturnsForName(name string, cva ocm.ComponentVersionAccess, err error)
- func (m *MockFetcher) GetComponentVersionWasNotCalled() bool
- func (m *MockFetcher) GetLatestComponentVersionCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) GetLatestComponentVersionReturns(version string, err error)
- func (m *MockFetcher) GetLatestComponentVersionWasNotCalled() bool
- func (m *MockFetcher) GetLatestSourceComponentVersion(ctx context.Context, obj *v1alpha12.ComponentSubscription) (string, error)
- func (m *MockFetcher) TransferComponent(ctx context.Context, obj *v1alpha12.ComponentSubscription, ...) error
- func (m *MockFetcher) TransferComponentCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) TransferComponentReturns(err error)
- func (m *MockFetcher) TransferComponentWasNotCalled() bool
- func (m *MockFetcher) VerifySourceComponent(ctx context.Context, obj *v1alpha12.ComponentSubscription, version string) (bool, error)
- func (m *MockFetcher) VerifySourceComponentCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) VerifySourceComponentReturns(verified bool, err error)
- func (m *MockFetcher) VerifySourceComponentWasNotCalled() bool
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 *v1alpha12.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, obj *v1alpha12.ComponentSubscription) (string, error)
func (*MockFetcher) TransferComponent ¶
func (m *MockFetcher) TransferComponent(ctx context.Context, obj *v1alpha12.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, obj *v1alpha12.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
Click to show internal directories.
Click to hide internal directories.