mocks

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPuller

type DataPuller struct {
	mock.Mock
}

DataPuller is an autogenerated mock type for the DataPuller type

func NewDataPuller

func NewDataPuller(t mockConstructorTestingTNewDataPuller) *DataPuller

NewDataPuller creates a new instance of DataPuller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DataPuller) Close

func (_m *DataPuller) Close(ctx context.Context, basePath string) error

Close provides a mock function with given fields: ctx, basePath

func (*DataPuller) EXPECT

func (_m *DataPuller) EXPECT() *DataPuller_Expecter

func (*DataPuller) Extract

func (_m *DataPuller) Extract(ctx context.Context, archivePath string) error

Extract provides a mock function with given fields: ctx, archivePath

func (*DataPuller) Pull

func (_m *DataPuller) Pull(ctx context.Context, clusterName string, runID string) (string, error)

Pull provides a mock function with given fields: ctx, clusterName, runID

type DataPuller_Close_Call

type DataPuller_Close_Call struct {
	*mock.Call
}

DataPuller_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*DataPuller_Close_Call) Return

func (*DataPuller_Close_Call) Run

func (_c *DataPuller_Close_Call) Run(run func(ctx context.Context, basePath string)) *DataPuller_Close_Call

func (*DataPuller_Close_Call) RunAndReturn

type DataPuller_Expecter

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

func (*DataPuller_Expecter) Close

func (_e *DataPuller_Expecter) Close(ctx interface{}, basePath interface{}) *DataPuller_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context
  • basePath string

func (*DataPuller_Expecter) Extract

func (_e *DataPuller_Expecter) Extract(ctx interface{}, archivePath interface{}) *DataPuller_Extract_Call

Extract is a helper method to define mock.On call

  • ctx context.Context
  • archivePath string

func (*DataPuller_Expecter) Pull

func (_e *DataPuller_Expecter) Pull(ctx interface{}, clusterName interface{}, runID interface{}) *DataPuller_Pull_Call

Pull is a helper method to define mock.On call

  • ctx context.Context
  • clusterName string
  • runID string

type DataPuller_Extract_Call

type DataPuller_Extract_Call struct {
	*mock.Call
}

DataPuller_Extract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extract'

func (*DataPuller_Extract_Call) Return

func (*DataPuller_Extract_Call) Run

func (_c *DataPuller_Extract_Call) Run(run func(ctx context.Context, archivePath string)) *DataPuller_Extract_Call

func (*DataPuller_Extract_Call) RunAndReturn

type DataPuller_Pull_Call

type DataPuller_Pull_Call struct {
	*mock.Call
}

DataPuller_Pull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pull'

func (*DataPuller_Pull_Call) Return

func (_c *DataPuller_Pull_Call) Return(_a0 string, _a1 error) *DataPuller_Pull_Call

func (*DataPuller_Pull_Call) Run

func (_c *DataPuller_Pull_Call) Run(run func(ctx context.Context, clusterName string, runID string)) *DataPuller_Pull_Call

func (*DataPuller_Pull_Call) RunAndReturn

Jump to

Keyboard shortcuts

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