Documentation
¶
Index ¶
- type QuboleClient
- func (_m *QuboleClient) EXPECT() *QuboleClient_Expecter
- func (_m *QuboleClient) ExecuteHiveCommand(ctx context.Context, commandStr string, timeoutVal uint32, ...) (*client.QuboleCommandDetails, error)
- func (_m *QuboleClient) GetCommandStatus(ctx context.Context, commandID string, accountKey string) (client.QuboleStatus, error)
- func (_m *QuboleClient) KillCommand(ctx context.Context, commandID string, accountKey string) error
- type QuboleClient_ExecuteHiveCommand_Call
- func (_c *QuboleClient_ExecuteHiveCommand_Call) Return(_a0 *client.QuboleCommandDetails, _a1 error) *QuboleClient_ExecuteHiveCommand_Call
- func (_c *QuboleClient_ExecuteHiveCommand_Call) Run(run func(ctx context.Context, commandStr string, timeoutVal uint32, ...)) *QuboleClient_ExecuteHiveCommand_Call
- func (_c *QuboleClient_ExecuteHiveCommand_Call) RunAndReturn(...) *QuboleClient_ExecuteHiveCommand_Call
- type QuboleClient_Expecter
- func (_e *QuboleClient_Expecter) ExecuteHiveCommand(ctx interface{}, commandStr interface{}, timeoutVal interface{}, ...) *QuboleClient_ExecuteHiveCommand_Call
- func (_e *QuboleClient_Expecter) GetCommandStatus(ctx interface{}, commandID interface{}, accountKey interface{}) *QuboleClient_GetCommandStatus_Call
- func (_e *QuboleClient_Expecter) KillCommand(ctx interface{}, commandID interface{}, accountKey interface{}) *QuboleClient_KillCommand_Call
- type QuboleClient_GetCommandStatus_Call
- func (_c *QuboleClient_GetCommandStatus_Call) Return(_a0 client.QuboleStatus, _a1 error) *QuboleClient_GetCommandStatus_Call
- func (_c *QuboleClient_GetCommandStatus_Call) Run(run func(ctx context.Context, commandID string, accountKey string)) *QuboleClient_GetCommandStatus_Call
- func (_c *QuboleClient_GetCommandStatus_Call) RunAndReturn(run func(context.Context, string, string) (client.QuboleStatus, error)) *QuboleClient_GetCommandStatus_Call
- type QuboleClient_KillCommand_Call
- func (_c *QuboleClient_KillCommand_Call) Return(_a0 error) *QuboleClient_KillCommand_Call
- func (_c *QuboleClient_KillCommand_Call) Run(run func(ctx context.Context, commandID string, accountKey string)) *QuboleClient_KillCommand_Call
- func (_c *QuboleClient_KillCommand_Call) RunAndReturn(run func(context.Context, string, string) error) *QuboleClient_KillCommand_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuboleClient ¶
QuboleClient is an autogenerated mock type for the QuboleClient type
func NewQuboleClient ¶ added in v1.15.1
func NewQuboleClient(t interface {
mock.TestingT
Cleanup(func())
}) *QuboleClient
NewQuboleClient creates a new instance of QuboleClient. 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 (*QuboleClient) EXPECT ¶ added in v1.15.1
func (_m *QuboleClient) EXPECT() *QuboleClient_Expecter
func (*QuboleClient) ExecuteHiveCommand ¶
func (_m *QuboleClient) ExecuteHiveCommand(ctx context.Context, commandStr string, timeoutVal uint32, clusterPrimaryLabel string, accountKey string, tags []string, commandMetadata client.CommandMetadata) (*client.QuboleCommandDetails, error)
ExecuteHiveCommand provides a mock function with given fields: ctx, commandStr, timeoutVal, clusterPrimaryLabel, accountKey, tags, commandMetadata
func (*QuboleClient) GetCommandStatus ¶
func (_m *QuboleClient) GetCommandStatus(ctx context.Context, commandID string, accountKey string) (client.QuboleStatus, error)
GetCommandStatus provides a mock function with given fields: ctx, commandID, accountKey
func (*QuboleClient) KillCommand ¶
KillCommand provides a mock function with given fields: ctx, commandID, accountKey
type QuboleClient_ExecuteHiveCommand_Call ¶ added in v1.15.1
QuboleClient_ExecuteHiveCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteHiveCommand'
func (*QuboleClient_ExecuteHiveCommand_Call) Return ¶ added in v1.15.1
func (_c *QuboleClient_ExecuteHiveCommand_Call) Return(_a0 *client.QuboleCommandDetails, _a1 error) *QuboleClient_ExecuteHiveCommand_Call
func (*QuboleClient_ExecuteHiveCommand_Call) Run ¶ added in v1.15.1
func (_c *QuboleClient_ExecuteHiveCommand_Call) Run(run func(ctx context.Context, commandStr string, timeoutVal uint32, clusterPrimaryLabel string, accountKey string, tags []string, commandMetadata client.CommandMetadata)) *QuboleClient_ExecuteHiveCommand_Call
func (*QuboleClient_ExecuteHiveCommand_Call) RunAndReturn ¶ added in v1.15.1
func (_c *QuboleClient_ExecuteHiveCommand_Call) RunAndReturn(run func(context.Context, string, uint32, string, string, []string, client.CommandMetadata) (*client.QuboleCommandDetails, error)) *QuboleClient_ExecuteHiveCommand_Call
type QuboleClient_Expecter ¶ added in v1.15.1
type QuboleClient_Expecter struct {
// contains filtered or unexported fields
}
func (*QuboleClient_Expecter) ExecuteHiveCommand ¶ added in v1.15.1
func (_e *QuboleClient_Expecter) ExecuteHiveCommand(ctx interface{}, commandStr interface{}, timeoutVal interface{}, clusterPrimaryLabel interface{}, accountKey interface{}, tags interface{}, commandMetadata interface{}) *QuboleClient_ExecuteHiveCommand_Call
ExecuteHiveCommand is a helper method to define mock.On call
- ctx context.Context
- commandStr string
- timeoutVal uint32
- clusterPrimaryLabel string
- accountKey string
- tags []string
- commandMetadata client.CommandMetadata
func (*QuboleClient_Expecter) GetCommandStatus ¶ added in v1.15.1
func (_e *QuboleClient_Expecter) GetCommandStatus(ctx interface{}, commandID interface{}, accountKey interface{}) *QuboleClient_GetCommandStatus_Call
GetCommandStatus is a helper method to define mock.On call
- ctx context.Context
- commandID string
- accountKey string
func (*QuboleClient_Expecter) KillCommand ¶ added in v1.15.1
func (_e *QuboleClient_Expecter) KillCommand(ctx interface{}, commandID interface{}, accountKey interface{}) *QuboleClient_KillCommand_Call
KillCommand is a helper method to define mock.On call
- ctx context.Context
- commandID string
- accountKey string
type QuboleClient_GetCommandStatus_Call ¶ added in v1.15.1
QuboleClient_GetCommandStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommandStatus'
func (*QuboleClient_GetCommandStatus_Call) Return ¶ added in v1.15.1
func (_c *QuboleClient_GetCommandStatus_Call) Return(_a0 client.QuboleStatus, _a1 error) *QuboleClient_GetCommandStatus_Call
func (*QuboleClient_GetCommandStatus_Call) Run ¶ added in v1.15.1
func (_c *QuboleClient_GetCommandStatus_Call) Run(run func(ctx context.Context, commandID string, accountKey string)) *QuboleClient_GetCommandStatus_Call
func (*QuboleClient_GetCommandStatus_Call) RunAndReturn ¶ added in v1.15.1
func (_c *QuboleClient_GetCommandStatus_Call) RunAndReturn(run func(context.Context, string, string) (client.QuboleStatus, error)) *QuboleClient_GetCommandStatus_Call
type QuboleClient_KillCommand_Call ¶ added in v1.15.1
QuboleClient_KillCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KillCommand'
func (*QuboleClient_KillCommand_Call) Return ¶ added in v1.15.1
func (_c *QuboleClient_KillCommand_Call) Return(_a0 error) *QuboleClient_KillCommand_Call
func (*QuboleClient_KillCommand_Call) Run ¶ added in v1.15.1
func (_c *QuboleClient_KillCommand_Call) Run(run func(ctx context.Context, commandID string, accountKey string)) *QuboleClient_KillCommand_Call
func (*QuboleClient_KillCommand_Call) RunAndReturn ¶ added in v1.15.1
func (_c *QuboleClient_KillCommand_Call) RunAndReturn(run func(context.Context, string, string) error) *QuboleClient_KillCommand_Call