Documentation
¶
Index ¶
- type PrestoClient
- func (_m *PrestoClient) EXPECT() *PrestoClient_Expecter
- func (_m *PrestoClient) ExecuteCommand(ctx context.Context, commandStr string, executeArgs client.PrestoExecuteArgs) (client.PrestoExecuteResponse, error)
- func (_m *PrestoClient) GetCommandStatus(ctx context.Context, commandID string) (client.PrestoStatus, error)
- func (_m *PrestoClient) KillCommand(ctx context.Context, commandID string) error
- type PrestoClient_ExecuteCommand_Call
- func (_c *PrestoClient_ExecuteCommand_Call) Return(_a0 client.PrestoExecuteResponse, _a1 error) *PrestoClient_ExecuteCommand_Call
- func (_c *PrestoClient_ExecuteCommand_Call) Run(...) *PrestoClient_ExecuteCommand_Call
- func (_c *PrestoClient_ExecuteCommand_Call) RunAndReturn(...) *PrestoClient_ExecuteCommand_Call
- type PrestoClient_Expecter
- func (_e *PrestoClient_Expecter) ExecuteCommand(ctx interface{}, commandStr interface{}, executeArgs interface{}) *PrestoClient_ExecuteCommand_Call
- func (_e *PrestoClient_Expecter) GetCommandStatus(ctx interface{}, commandID interface{}) *PrestoClient_GetCommandStatus_Call
- func (_e *PrestoClient_Expecter) KillCommand(ctx interface{}, commandID interface{}) *PrestoClient_KillCommand_Call
- type PrestoClient_GetCommandStatus_Call
- func (_c *PrestoClient_GetCommandStatus_Call) Return(_a0 client.PrestoStatus, _a1 error) *PrestoClient_GetCommandStatus_Call
- func (_c *PrestoClient_GetCommandStatus_Call) Run(run func(ctx context.Context, commandID string)) *PrestoClient_GetCommandStatus_Call
- func (_c *PrestoClient_GetCommandStatus_Call) RunAndReturn(run func(context.Context, string) (client.PrestoStatus, error)) *PrestoClient_GetCommandStatus_Call
- type PrestoClient_KillCommand_Call
- func (_c *PrestoClient_KillCommand_Call) Return(_a0 error) *PrestoClient_KillCommand_Call
- func (_c *PrestoClient_KillCommand_Call) Run(run func(ctx context.Context, commandID string)) *PrestoClient_KillCommand_Call
- func (_c *PrestoClient_KillCommand_Call) RunAndReturn(run func(context.Context, string) error) *PrestoClient_KillCommand_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrestoClient ¶
PrestoClient is an autogenerated mock type for the PrestoClient type
func NewPrestoClient ¶ added in v1.15.1
func NewPrestoClient(t interface {
mock.TestingT
Cleanup(func())
}) *PrestoClient
NewPrestoClient creates a new instance of PrestoClient. 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 (*PrestoClient) EXPECT ¶ added in v1.15.1
func (_m *PrestoClient) EXPECT() *PrestoClient_Expecter
func (*PrestoClient) ExecuteCommand ¶
func (_m *PrestoClient) ExecuteCommand(ctx context.Context, commandStr string, executeArgs client.PrestoExecuteArgs) (client.PrestoExecuteResponse, error)
ExecuteCommand provides a mock function with given fields: ctx, commandStr, executeArgs
func (*PrestoClient) GetCommandStatus ¶
func (_m *PrestoClient) GetCommandStatus(ctx context.Context, commandID string) (client.PrestoStatus, error)
GetCommandStatus provides a mock function with given fields: ctx, commandID
func (*PrestoClient) KillCommand ¶
func (_m *PrestoClient) KillCommand(ctx context.Context, commandID string) error
KillCommand provides a mock function with given fields: ctx, commandID
type PrestoClient_ExecuteCommand_Call ¶ added in v1.15.1
PrestoClient_ExecuteCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteCommand'
func (*PrestoClient_ExecuteCommand_Call) Return ¶ added in v1.15.1
func (_c *PrestoClient_ExecuteCommand_Call) Return(_a0 client.PrestoExecuteResponse, _a1 error) *PrestoClient_ExecuteCommand_Call
func (*PrestoClient_ExecuteCommand_Call) Run ¶ added in v1.15.1
func (_c *PrestoClient_ExecuteCommand_Call) Run(run func(ctx context.Context, commandStr string, executeArgs client.PrestoExecuteArgs)) *PrestoClient_ExecuteCommand_Call
func (*PrestoClient_ExecuteCommand_Call) RunAndReturn ¶ added in v1.15.1
func (_c *PrestoClient_ExecuteCommand_Call) RunAndReturn(run func(context.Context, string, client.PrestoExecuteArgs) (client.PrestoExecuteResponse, error)) *PrestoClient_ExecuteCommand_Call
type PrestoClient_Expecter ¶ added in v1.15.1
type PrestoClient_Expecter struct {
// contains filtered or unexported fields
}
func (*PrestoClient_Expecter) ExecuteCommand ¶ added in v1.15.1
func (_e *PrestoClient_Expecter) ExecuteCommand(ctx interface{}, commandStr interface{}, executeArgs interface{}) *PrestoClient_ExecuteCommand_Call
ExecuteCommand is a helper method to define mock.On call
- ctx context.Context
- commandStr string
- executeArgs client.PrestoExecuteArgs
func (*PrestoClient_Expecter) GetCommandStatus ¶ added in v1.15.1
func (_e *PrestoClient_Expecter) GetCommandStatus(ctx interface{}, commandID interface{}) *PrestoClient_GetCommandStatus_Call
GetCommandStatus is a helper method to define mock.On call
- ctx context.Context
- commandID string
func (*PrestoClient_Expecter) KillCommand ¶ added in v1.15.1
func (_e *PrestoClient_Expecter) KillCommand(ctx interface{}, commandID interface{}) *PrestoClient_KillCommand_Call
KillCommand is a helper method to define mock.On call
- ctx context.Context
- commandID string
type PrestoClient_GetCommandStatus_Call ¶ added in v1.15.1
PrestoClient_GetCommandStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommandStatus'
func (*PrestoClient_GetCommandStatus_Call) Return ¶ added in v1.15.1
func (_c *PrestoClient_GetCommandStatus_Call) Return(_a0 client.PrestoStatus, _a1 error) *PrestoClient_GetCommandStatus_Call
func (*PrestoClient_GetCommandStatus_Call) Run ¶ added in v1.15.1
func (_c *PrestoClient_GetCommandStatus_Call) Run(run func(ctx context.Context, commandID string)) *PrestoClient_GetCommandStatus_Call
func (*PrestoClient_GetCommandStatus_Call) RunAndReturn ¶ added in v1.15.1
func (_c *PrestoClient_GetCommandStatus_Call) RunAndReturn(run func(context.Context, string) (client.PrestoStatus, error)) *PrestoClient_GetCommandStatus_Call
type PrestoClient_KillCommand_Call ¶ added in v1.15.1
PrestoClient_KillCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KillCommand'
func (*PrestoClient_KillCommand_Call) Return ¶ added in v1.15.1
func (_c *PrestoClient_KillCommand_Call) Return(_a0 error) *PrestoClient_KillCommand_Call
func (*PrestoClient_KillCommand_Call) Run ¶ added in v1.15.1
func (_c *PrestoClient_KillCommand_Call) Run(run func(ctx context.Context, commandID string)) *PrestoClient_KillCommand_Call
func (*PrestoClient_KillCommand_Call) RunAndReturn ¶ added in v1.15.1
func (_c *PrestoClient_KillCommand_Call) RunAndReturn(run func(context.Context, string) error) *PrestoClient_KillCommand_Call