mocks

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInterface

type ClientInterface struct {
	mock.Mock
}

ClientInterface is an autogenerated mock type for the ClientInterface type

func NewClientInterface

func NewClientInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientInterface

NewClientInterface creates a new instance of ClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ClientInterface) DeleteBundle added in v0.30.0

func (_m *ClientInterface) DeleteBundle(ctx context.Context, name string) error

DeleteBundle provides a mock function with given fields: ctx, name

func (*ClientInterface) DeleteSource added in v0.30.0

func (_m *ClientInterface) DeleteSource(ctx context.Context, id string) error

DeleteSource provides a mock function with given fields: ctx, id

func (*ClientInterface) GetSource

func (_m *ClientInterface) GetSource(ctx context.Context, id string) (*ocp.GetSourceResponse, error)

GetSource provides a mock function with given fields: ctx, id

func (*ClientInterface) PutBundle

func (_m *ClientInterface) PutBundle(ctx context.Context, bundle *ocp.PutBundleRequest) error

PutBundle provides a mock function with given fields: ctx, bundle

func (*ClientInterface) PutSource

func (_m *ClientInterface) PutSource(ctx context.Context, id string, request *ocp.PutSourceRequest) (*ocp.PutSourceResponse, error)

PutSource provides a mock function with given fields: ctx, id, request

Jump to

Keyboard shortcuts

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