fakes

package
v0.2.1-test Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOCM

type MockOCM struct {
	// contains filtered or unexported fields
}

func (*MockOCM) CreateAuthenticatedOCMContext

func (m *MockOCM) CreateAuthenticatedOCMContext(ctx context.Context, serviceAccountName, namespace string) (ocm.Context, error)

func (*MockOCM) GetComponentVersion

func (m *MockOCM) GetComponentVersion(ctx context.Context, octx ocm.Context, url, name, version string) (ocm.ComponentVersionAccess, error)

func (*MockOCM) GetComponentVersionCallingArgumentsOnCall

func (m *MockOCM) GetComponentVersionCallingArgumentsOnCall(i int) []any

func (*MockOCM) GetComponentVersionReturnsForName

func (m *MockOCM) GetComponentVersionReturnsForName(name string, cva ocm.ComponentVersionAccess, err error)

func (*MockOCM) GetComponentVersionWasNotCalled

func (m *MockOCM) GetComponentVersionWasNotCalled() bool

func (*MockOCM) GetProductDescription

func (m *MockOCM) GetProductDescription(ctx context.Context, octx ocm.Context, cv ocm.ComponentVersionAccess) ([]byte, error)

func (*MockOCM) GetProductDescriptionReturns

func (m *MockOCM) GetProductDescriptionReturns(data []byte, err error)

func (*MockOCM) GetResourceData

func (m *MockOCM) GetResourceData(ctx context.Context, cv ocm.ComponentVersionAccess, ref v1alpha1.ResourceReference) ([]byte, error)

func (*MockOCM) GetResourceDataReturns

func (m *MockOCM) GetResourceDataReturns(name string, data []byte, err error)

func (*MockOCM) GetResourceDataReturnsOnCall

func (m *MockOCM) GetResourceDataReturnsOnCall(name string, data []byte, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL