Documentation
¶
Index ¶
- type MaxComputeClient
- func (_m *MaxComputeClient) EXPECT() *MaxComputeClient_Expecter
- func (_m *MaxComputeClient) GetTablePreview(ctx context.Context, partitionValue string, table *odps.Table, maxRows int) ([]string, *structpb.ListValue, error)
- func (_m *MaxComputeClient) GetTableSchema(ctx context.Context, table *odps.Table) (string, *tableschema.TableSchema, error)
- func (_m *MaxComputeClient) ListSchema(ctx context.Context) ([]*odps.Schema, error)
- func (_m *MaxComputeClient) ListTable(ctx context.Context, schemaName string) ([]*odps.Table, error)
- type MaxComputeClient_Expecter
- func (_e *MaxComputeClient_Expecter) GetTablePreview(ctx interface{}, partitionValue interface{}, table interface{}, ...) *MaxComputeClient_GetTablePreview_Call
- func (_e *MaxComputeClient_Expecter) GetTableSchema(ctx interface{}, table interface{}) *MaxComputeClient_GetTableSchema_Call
- func (_e *MaxComputeClient_Expecter) ListSchema(ctx interface{}) *MaxComputeClient_ListSchema_Call
- func (_e *MaxComputeClient_Expecter) ListTable(ctx interface{}, schemaName interface{}) *MaxComputeClient_ListTable_Call
- type MaxComputeClient_GetTablePreview_Call
- func (_c *MaxComputeClient_GetTablePreview_Call) Return(_a0 []string, _a1 *structpb.ListValue, _a2 error) *MaxComputeClient_GetTablePreview_Call
- func (_c *MaxComputeClient_GetTablePreview_Call) Run(...) *MaxComputeClient_GetTablePreview_Call
- func (_c *MaxComputeClient_GetTablePreview_Call) RunAndReturn(...) *MaxComputeClient_GetTablePreview_Call
- type MaxComputeClient_GetTableSchema_Call
- func (_c *MaxComputeClient_GetTableSchema_Call) Return(_a0 string, _a1 *tableschema.TableSchema, _a2 error) *MaxComputeClient_GetTableSchema_Call
- func (_c *MaxComputeClient_GetTableSchema_Call) Run(run func(ctx context.Context, table *odps.Table)) *MaxComputeClient_GetTableSchema_Call
- func (_c *MaxComputeClient_GetTableSchema_Call) RunAndReturn(...) *MaxComputeClient_GetTableSchema_Call
- type MaxComputeClient_ListSchema_Call
- func (_c *MaxComputeClient_ListSchema_Call) Return(_a0 []*odps.Schema, _a1 error) *MaxComputeClient_ListSchema_Call
- func (_c *MaxComputeClient_ListSchema_Call) Run(run func(ctx context.Context)) *MaxComputeClient_ListSchema_Call
- func (_c *MaxComputeClient_ListSchema_Call) RunAndReturn(run func(context.Context) ([]*odps.Schema, error)) *MaxComputeClient_ListSchema_Call
- type MaxComputeClient_ListTable_Call
- func (_c *MaxComputeClient_ListTable_Call) Return(_a0 []*odps.Table, _a1 error) *MaxComputeClient_ListTable_Call
- func (_c *MaxComputeClient_ListTable_Call) Run(run func(ctx context.Context, schemaName string)) *MaxComputeClient_ListTable_Call
- func (_c *MaxComputeClient_ListTable_Call) RunAndReturn(run func(context.Context, string) ([]*odps.Table, error)) *MaxComputeClient_ListTable_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaxComputeClient ¶
MaxComputeClient is an autogenerated mock type for the Client type
func NewMaxComputeClient ¶
func NewMaxComputeClient(t interface { mock.TestingT Cleanup(func()) }) *MaxComputeClient
NewMaxComputeClient creates a new instance of MaxComputeClient. 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 (*MaxComputeClient) EXPECT ¶
func (_m *MaxComputeClient) EXPECT() *MaxComputeClient_Expecter
func (*MaxComputeClient) GetTablePreview ¶ added in v0.11.1
func (_m *MaxComputeClient) GetTablePreview(ctx context.Context, partitionValue string, table *odps.Table, maxRows int) ([]string, *structpb.ListValue, error)
GetTablePreview provides a mock function with given fields: ctx, partitionValue, table, maxRows
func (*MaxComputeClient) GetTableSchema ¶
func (_m *MaxComputeClient) GetTableSchema(ctx context.Context, table *odps.Table) (string, *tableschema.TableSchema, error)
GetTableSchema provides a mock function with given fields: ctx, table
func (*MaxComputeClient) ListSchema ¶
ListSchema provides a mock function with given fields: ctx
type MaxComputeClient_Expecter ¶
type MaxComputeClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MaxComputeClient_Expecter) GetTablePreview ¶ added in v0.11.1
func (_e *MaxComputeClient_Expecter) GetTablePreview(ctx interface{}, partitionValue interface{}, table interface{}, maxRows interface{}) *MaxComputeClient_GetTablePreview_Call
GetTablePreview is a helper method to define mock.On call
- ctx context.Context
- partitionValue string
- table *odps.Table
- maxRows int
func (*MaxComputeClient_Expecter) GetTableSchema ¶
func (_e *MaxComputeClient_Expecter) GetTableSchema(ctx interface{}, table interface{}) *MaxComputeClient_GetTableSchema_Call
GetTableSchema is a helper method to define mock.On call
- ctx context.Context
- table *odps.Table
func (*MaxComputeClient_Expecter) ListSchema ¶
func (_e *MaxComputeClient_Expecter) ListSchema(ctx interface{}) *MaxComputeClient_ListSchema_Call
ListSchema is a helper method to define mock.On call
- ctx context.Context
func (*MaxComputeClient_Expecter) ListTable ¶
func (_e *MaxComputeClient_Expecter) ListTable(ctx interface{}, schemaName interface{}) *MaxComputeClient_ListTable_Call
ListTable is a helper method to define mock.On call
- ctx context.Context
- schemaName string
type MaxComputeClient_GetTablePreview_Call ¶ added in v0.11.1
MaxComputeClient_GetTablePreview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTablePreview'
func (*MaxComputeClient_GetTablePreview_Call) Return ¶ added in v0.11.1
func (_c *MaxComputeClient_GetTablePreview_Call) Return(_a0 []string, _a1 *structpb.ListValue, _a2 error) *MaxComputeClient_GetTablePreview_Call
func (*MaxComputeClient_GetTablePreview_Call) Run ¶ added in v0.11.1
func (_c *MaxComputeClient_GetTablePreview_Call) Run(run func(ctx context.Context, partitionValue string, table *odps.Table, maxRows int)) *MaxComputeClient_GetTablePreview_Call
func (*MaxComputeClient_GetTablePreview_Call) RunAndReturn ¶ added in v0.11.1
type MaxComputeClient_GetTableSchema_Call ¶
MaxComputeClient_GetTableSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTableSchema'
func (*MaxComputeClient_GetTableSchema_Call) Return ¶
func (_c *MaxComputeClient_GetTableSchema_Call) Return(_a0 string, _a1 *tableschema.TableSchema, _a2 error) *MaxComputeClient_GetTableSchema_Call
func (*MaxComputeClient_GetTableSchema_Call) Run ¶
func (_c *MaxComputeClient_GetTableSchema_Call) Run(run func(ctx context.Context, table *odps.Table)) *MaxComputeClient_GetTableSchema_Call
func (*MaxComputeClient_GetTableSchema_Call) RunAndReturn ¶
func (_c *MaxComputeClient_GetTableSchema_Call) RunAndReturn(run func(context.Context, *odps.Table) (string, *tableschema.TableSchema, error)) *MaxComputeClient_GetTableSchema_Call
type MaxComputeClient_ListSchema_Call ¶
MaxComputeClient_ListSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSchema'
func (*MaxComputeClient_ListSchema_Call) Return ¶
func (_c *MaxComputeClient_ListSchema_Call) Return(_a0 []*odps.Schema, _a1 error) *MaxComputeClient_ListSchema_Call
func (*MaxComputeClient_ListSchema_Call) Run ¶
func (_c *MaxComputeClient_ListSchema_Call) Run(run func(ctx context.Context)) *MaxComputeClient_ListSchema_Call
func (*MaxComputeClient_ListSchema_Call) RunAndReturn ¶
func (_c *MaxComputeClient_ListSchema_Call) RunAndReturn(run func(context.Context) ([]*odps.Schema, error)) *MaxComputeClient_ListSchema_Call
type MaxComputeClient_ListTable_Call ¶
MaxComputeClient_ListTable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTable'
func (*MaxComputeClient_ListTable_Call) Return ¶
func (_c *MaxComputeClient_ListTable_Call) Return(_a0 []*odps.Table, _a1 error) *MaxComputeClient_ListTable_Call
func (*MaxComputeClient_ListTable_Call) Run ¶
func (_c *MaxComputeClient_ListTable_Call) Run(run func(ctx context.Context, schemaName string)) *MaxComputeClient_ListTable_Call
func (*MaxComputeClient_ListTable_Call) RunAndReturn ¶
func (_c *MaxComputeClient_ListTable_Call) RunAndReturn(run func(context.Context, string) ([]*odps.Table, error)) *MaxComputeClient_ListTable_Call