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) 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) 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) 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) 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)
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) 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) 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) 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) 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)
Click to show internal directories.
Click to hide internal directories.