Documentation ¶
Index ¶
- type MockFetcher
- func (m *MockFetcher) GetComponentVersion(ctx context.Context, obj *v1alpha1.ComponentVersion, name, 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) GetLatestComponentVersion(ctx context.Context, obj *v1alpha1.ComponentVersion) (string, error)
- func (m *MockFetcher) GetLatestComponentVersionCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) GetLatestComponentVersionReturns(version string, err error)
- func (m *MockFetcher) GetLatestComponentVersionWasNotCalled() bool
- func (m *MockFetcher) GetResource(ctx context.Context, cv *v1alpha1.ComponentVersion, ...) (io.ReadCloser, string, error)
- func (m *MockFetcher) GetResourceCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) GetResourceReturns(reader io.ReadCloser, digest string, err error)
- func (m *MockFetcher) GetResourceReturnsOnCall(n int, reader io.ReadCloser, err error)
- func (m *MockFetcher) GetResourceWasNotCalled() bool
- func (m *MockFetcher) ListComponentVersions(ocmCtx ocm.Context, obj *v1alpha1.ComponentVersion) ([]ocmctrl.Version, error)
- func (m *MockFetcher) ListComponentVersionsCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) ListComponentVersionsReturns(versions []ocmctrl.Version, err error)
- func (m *MockFetcher) ListComponentVersionsWasNotCalled() bool
- func (m *MockFetcher) VerifyComponent(ctx context.Context, obj *v1alpha1.ComponentVersion, version string) (bool, error)
- func (m *MockFetcher) VerifyComponentCallingArgumentsOnCall(i int) []any
- func (m *MockFetcher) VerifyComponentReturns(verified bool, err error)
- func (m *MockFetcher) VerifyComponentWasNotCalled() 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 *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 (m *MockFetcher) GetResource(ctx context.Context, cv *v1alpha1.ComponentVersion, resource v1alpha1.ResourceRef) (io.ReadCloser, string, error)
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
Click to show internal directories.
Click to hide internal directories.