fakes

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 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) 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 (*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