Documentation
¶
Index ¶
- type MockFetcher
- func (m *MockFetcher) CreateAuthenticatedOCMContext(ctx context.Context, obj *v1alpha1.ComponentSubscription) (ocm.Context, error)
- func (m *MockFetcher) GetComponentVersion(ctx context.Context, octx ocm.Context, obj *v1alpha1.ComponentSubscription, ...) (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, octx ocm.Context, obj *v1alpha1.ComponentSubscription) (string, error)
- func (m *MockFetcher) SignDestinationComponent(_ context.Context, component ocm.ComponentVersionAccess) ([]byte, error)
- func (m *MockFetcher) SignDestinationComponentCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) SignDestinationComponentNotCalled() bool
- func (m *MockFetcher) SignDestinationComponentReturns(pub []byte, t error)
- func (m *MockFetcher) TransferComponent(ctx context.Context, octx ocm.Context, obj *v1alpha1.ComponentSubscription, ...) error
- func (m *MockFetcher) TransferComponentCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) TransferComponentReturns(err error)
- func (m *MockFetcher) TransferComponentWasNotCalled() bool
- func (m *MockFetcher) VerifyComponent(ctx context.Context, obj *v1alpha1.ComponentSubscription, ...) (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) 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) SignDestinationComponent ¶ added in v0.11.0
func (m *MockFetcher) SignDestinationComponent(_ context.Context, component ocm.ComponentVersionAccess) ([]byte, error)
func (*MockFetcher) SignDestinationComponentCallingArgumentsOnCall ¶ added in v0.11.0
func (m *MockFetcher) SignDestinationComponentCallingArgumentsOnCall(i int) []any
func (*MockFetcher) SignDestinationComponentNotCalled ¶ added in v0.11.0
func (m *MockFetcher) SignDestinationComponentNotCalled() bool
func (*MockFetcher) SignDestinationComponentReturns ¶ added in v0.12.2
func (m *MockFetcher) SignDestinationComponentReturns(pub []byte, t error)
func (*MockFetcher) TransferComponent ¶
func (m *MockFetcher) TransferComponent(ctx context.Context, octx ocm.Context, obj *v1alpha1.ComponentSubscription, sourceComponentVersion ocm.ComponentVersionAccess) 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) VerifyComponent ¶ added in v0.11.0
func (m *MockFetcher) VerifyComponent(ctx context.Context, obj *v1alpha1.ComponentSubscription, cv ocm.ComponentVersionAccess) (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.