Documentation ¶
Index ¶
- type Client
- func (_m *Client) APIClient() *domain.Client
- func (_m *Client) AuthorizationsAPI() api.AuthorizationsAPI
- func (_m *Client) BucketsAPI() api.BucketsAPI
- func (_m *Client) Close()
- func (_m *Client) DeleteAPI() api.DeleteAPI
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) HTTPService() http.Service
- func (_m *Client) Health(ctx context.Context) (*domain.HealthCheck, error)
- func (_m *Client) LabelsAPI() api.LabelsAPI
- func (_m *Client) Options() *influxdb2.Options
- func (_m *Client) OrganizationsAPI() api.OrganizationsAPI
- func (_m *Client) Ping(ctx context.Context) (bool, error)
- func (_m *Client) QueryAPI(org string) api.QueryAPI
- func (_m *Client) Ready(ctx context.Context) (*domain.Ready, error)
- func (_m *Client) ServerURL() string
- func (_m *Client) Setup(ctx context.Context, username string, password string, org string, ...) (*domain.OnboardingResponse, error)
- func (_m *Client) SetupWithToken(ctx context.Context, username string, password string, org string, ...) (*domain.OnboardingResponse, error)
- func (_m *Client) TasksAPI() api.TasksAPI
- func (_m *Client) UsersAPI() api.UsersAPI
- func (_m *Client) WriteAPI(org string, bucket string) api.WriteAPI
- func (_m *Client) WriteAPIBlocking(org string, bucket string) api.WriteAPIBlocking
- type Client_APIClient_Call
- type Client_AuthorizationsAPI_Call
- func (_c *Client_AuthorizationsAPI_Call) Return(_a0 api.AuthorizationsAPI) *Client_AuthorizationsAPI_Call
- func (_c *Client_AuthorizationsAPI_Call) Run(run func()) *Client_AuthorizationsAPI_Call
- func (_c *Client_AuthorizationsAPI_Call) RunAndReturn(run func() api.AuthorizationsAPI) *Client_AuthorizationsAPI_Call
- type Client_BucketsAPI_Call
- type Client_Close_Call
- type Client_DeleteAPI_Call
- type Client_Expecter
- func (_e *Client_Expecter) APIClient() *Client_APIClient_Call
- func (_e *Client_Expecter) AuthorizationsAPI() *Client_AuthorizationsAPI_Call
- func (_e *Client_Expecter) BucketsAPI() *Client_BucketsAPI_Call
- func (_e *Client_Expecter) Close() *Client_Close_Call
- func (_e *Client_Expecter) DeleteAPI() *Client_DeleteAPI_Call
- func (_e *Client_Expecter) HTTPService() *Client_HTTPService_Call
- func (_e *Client_Expecter) Health(ctx interface{}) *Client_Health_Call
- func (_e *Client_Expecter) LabelsAPI() *Client_LabelsAPI_Call
- func (_e *Client_Expecter) Options() *Client_Options_Call
- func (_e *Client_Expecter) OrganizationsAPI() *Client_OrganizationsAPI_Call
- func (_e *Client_Expecter) Ping(ctx interface{}) *Client_Ping_Call
- func (_e *Client_Expecter) QueryAPI(org interface{}) *Client_QueryAPI_Call
- func (_e *Client_Expecter) Ready(ctx interface{}) *Client_Ready_Call
- func (_e *Client_Expecter) ServerURL() *Client_ServerURL_Call
- func (_e *Client_Expecter) Setup(ctx interface{}, username interface{}, password interface{}, org interface{}, ...) *Client_Setup_Call
- func (_e *Client_Expecter) SetupWithToken(ctx interface{}, username interface{}, password interface{}, org interface{}, ...) *Client_SetupWithToken_Call
- func (_e *Client_Expecter) TasksAPI() *Client_TasksAPI_Call
- func (_e *Client_Expecter) UsersAPI() *Client_UsersAPI_Call
- func (_e *Client_Expecter) WriteAPI(org interface{}, bucket interface{}) *Client_WriteAPI_Call
- func (_e *Client_Expecter) WriteAPIBlocking(org interface{}, bucket interface{}) *Client_WriteAPIBlocking_Call
- type Client_HTTPService_Call
- type Client_Health_Call
- type Client_LabelsAPI_Call
- type Client_Options_Call
- type Client_OrganizationsAPI_Call
- func (_c *Client_OrganizationsAPI_Call) Return(_a0 api.OrganizationsAPI) *Client_OrganizationsAPI_Call
- func (_c *Client_OrganizationsAPI_Call) Run(run func()) *Client_OrganizationsAPI_Call
- func (_c *Client_OrganizationsAPI_Call) RunAndReturn(run func() api.OrganizationsAPI) *Client_OrganizationsAPI_Call
- type Client_Ping_Call
- type Client_QueryAPI_Call
- type Client_Ready_Call
- type Client_ServerURL_Call
- type Client_SetupWithToken_Call
- type Client_Setup_Call
- type Client_TasksAPI_Call
- type Client_UsersAPI_Call
- type Client_WriteAPIBlocking_Call
- func (_c *Client_WriteAPIBlocking_Call) Return(_a0 api.WriteAPIBlocking) *Client_WriteAPIBlocking_Call
- func (_c *Client_WriteAPIBlocking_Call) Run(run func(org string, bucket string)) *Client_WriteAPIBlocking_Call
- func (_c *Client_WriteAPIBlocking_Call) RunAndReturn(run func(string, string) api.WriteAPIBlocking) *Client_WriteAPIBlocking_Call
- type Client_WriteAPI_Call
- type WriteAPIBlocking
- func (_m *WriteAPIBlocking) EXPECT() *WriteAPIBlocking_Expecter
- func (_m *WriteAPIBlocking) EnableBatching()
- func (_m *WriteAPIBlocking) Flush(ctx context.Context) error
- func (_m *WriteAPIBlocking) WritePoint(ctx context.Context, point ...*write.Point) error
- func (_m *WriteAPIBlocking) WriteRecord(ctx context.Context, line ...string) error
- type WriteAPIBlocking_EnableBatching_Call
- func (_c *WriteAPIBlocking_EnableBatching_Call) Return() *WriteAPIBlocking_EnableBatching_Call
- func (_c *WriteAPIBlocking_EnableBatching_Call) Run(run func()) *WriteAPIBlocking_EnableBatching_Call
- func (_c *WriteAPIBlocking_EnableBatching_Call) RunAndReturn(run func()) *WriteAPIBlocking_EnableBatching_Call
- type WriteAPIBlocking_Expecter
- func (_e *WriteAPIBlocking_Expecter) EnableBatching() *WriteAPIBlocking_EnableBatching_Call
- func (_e *WriteAPIBlocking_Expecter) Flush(ctx interface{}) *WriteAPIBlocking_Flush_Call
- func (_e *WriteAPIBlocking_Expecter) WritePoint(ctx interface{}, point ...interface{}) *WriteAPIBlocking_WritePoint_Call
- func (_e *WriteAPIBlocking_Expecter) WriteRecord(ctx interface{}, line ...interface{}) *WriteAPIBlocking_WriteRecord_Call
- type WriteAPIBlocking_Flush_Call
- func (_c *WriteAPIBlocking_Flush_Call) Return(_a0 error) *WriteAPIBlocking_Flush_Call
- func (_c *WriteAPIBlocking_Flush_Call) Run(run func(ctx context.Context)) *WriteAPIBlocking_Flush_Call
- func (_c *WriteAPIBlocking_Flush_Call) RunAndReturn(run func(context.Context) error) *WriteAPIBlocking_Flush_Call
- type WriteAPIBlocking_WritePoint_Call
- func (_c *WriteAPIBlocking_WritePoint_Call) Return(_a0 error) *WriteAPIBlocking_WritePoint_Call
- func (_c *WriteAPIBlocking_WritePoint_Call) Run(run func(ctx context.Context, point ...*write.Point)) *WriteAPIBlocking_WritePoint_Call
- func (_c *WriteAPIBlocking_WritePoint_Call) RunAndReturn(run func(context.Context, ...*write.Point) error) *WriteAPIBlocking_WritePoint_Call
- type WriteAPIBlocking_WriteRecord_Call
- func (_c *WriteAPIBlocking_WriteRecord_Call) Return(_a0 error) *WriteAPIBlocking_WriteRecord_Call
- func (_c *WriteAPIBlocking_WriteRecord_Call) Run(run func(ctx context.Context, line ...string)) *WriteAPIBlocking_WriteRecord_Call
- func (_c *WriteAPIBlocking_WriteRecord_Call) RunAndReturn(run func(context.Context, ...string) error) *WriteAPIBlocking_WriteRecord_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v1.337.0
NewClient creates a new instance of Client. 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 (*Client) AuthorizationsAPI ¶
func (_m *Client) AuthorizationsAPI() api.AuthorizationsAPI
AuthorizationsAPI provides a mock function with given fields:
func (*Client) BucketsAPI ¶
func (_m *Client) BucketsAPI() api.BucketsAPI
BucketsAPI provides a mock function with given fields:
func (*Client) EXPECT ¶ added in v1.337.0
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) HTTPService ¶
HTTPService provides a mock function with given fields:
func (*Client) OrganizationsAPI ¶
func (_m *Client) OrganizationsAPI() api.OrganizationsAPI
OrganizationsAPI provides a mock function with given fields:
func (*Client) Setup ¶
func (_m *Client) Setup(ctx context.Context, username string, password string, org string, bucket string, retentionPeriodHours int) (*domain.OnboardingResponse, error)
Setup provides a mock function with given fields: ctx, username, password, org, bucket, retentionPeriodHours
func (*Client) SetupWithToken ¶ added in v1.337.0
func (_m *Client) SetupWithToken(ctx context.Context, username string, password string, org string, bucket string, retentionPeriodHours int, token string) (*domain.OnboardingResponse, error)
SetupWithToken provides a mock function with given fields: ctx, username, password, org, bucket, retentionPeriodHours, token
func (*Client) WriteAPIBlocking ¶
func (_m *Client) WriteAPIBlocking(org string, bucket string) api.WriteAPIBlocking
WriteAPIBlocking provides a mock function with given fields: org, bucket
type Client_APIClient_Call ¶ added in v1.337.0
Client_APIClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'APIClient'
func (*Client_APIClient_Call) Return ¶ added in v1.337.0
func (_c *Client_APIClient_Call) Return(_a0 *domain.Client) *Client_APIClient_Call
func (*Client_APIClient_Call) Run ¶ added in v1.337.0
func (_c *Client_APIClient_Call) Run(run func()) *Client_APIClient_Call
func (*Client_APIClient_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_APIClient_Call) RunAndReturn(run func() *domain.Client) *Client_APIClient_Call
type Client_AuthorizationsAPI_Call ¶ added in v1.337.0
Client_AuthorizationsAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthorizationsAPI'
func (*Client_AuthorizationsAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_AuthorizationsAPI_Call) Return(_a0 api.AuthorizationsAPI) *Client_AuthorizationsAPI_Call
func (*Client_AuthorizationsAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_AuthorizationsAPI_Call) Run(run func()) *Client_AuthorizationsAPI_Call
func (*Client_AuthorizationsAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_AuthorizationsAPI_Call) RunAndReturn(run func() api.AuthorizationsAPI) *Client_AuthorizationsAPI_Call
type Client_BucketsAPI_Call ¶ added in v1.337.0
Client_BucketsAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BucketsAPI'
func (*Client_BucketsAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_BucketsAPI_Call) Return(_a0 api.BucketsAPI) *Client_BucketsAPI_Call
func (*Client_BucketsAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_BucketsAPI_Call) Run(run func()) *Client_BucketsAPI_Call
func (*Client_BucketsAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_BucketsAPI_Call) RunAndReturn(run func() api.BucketsAPI) *Client_BucketsAPI_Call
type Client_Close_Call ¶ added in v1.337.0
Client_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Client_Close_Call) Return ¶ added in v1.337.0
func (_c *Client_Close_Call) Return() *Client_Close_Call
func (*Client_Close_Call) Run ¶ added in v1.337.0
func (_c *Client_Close_Call) Run(run func()) *Client_Close_Call
func (*Client_Close_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_Close_Call) RunAndReturn(run func()) *Client_Close_Call
type Client_DeleteAPI_Call ¶ added in v1.337.0
Client_DeleteAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAPI'
func (*Client_DeleteAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_DeleteAPI_Call) Return(_a0 api.DeleteAPI) *Client_DeleteAPI_Call
func (*Client_DeleteAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_DeleteAPI_Call) Run(run func()) *Client_DeleteAPI_Call
func (*Client_DeleteAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_DeleteAPI_Call) RunAndReturn(run func() api.DeleteAPI) *Client_DeleteAPI_Call
type Client_Expecter ¶ added in v1.337.0
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) APIClient ¶ added in v1.337.0
func (_e *Client_Expecter) APIClient() *Client_APIClient_Call
APIClient is a helper method to define mock.On call
func (*Client_Expecter) AuthorizationsAPI ¶ added in v1.337.0
func (_e *Client_Expecter) AuthorizationsAPI() *Client_AuthorizationsAPI_Call
AuthorizationsAPI is a helper method to define mock.On call
func (*Client_Expecter) BucketsAPI ¶ added in v1.337.0
func (_e *Client_Expecter) BucketsAPI() *Client_BucketsAPI_Call
BucketsAPI is a helper method to define mock.On call
func (*Client_Expecter) Close ¶ added in v1.337.0
func (_e *Client_Expecter) Close() *Client_Close_Call
Close is a helper method to define mock.On call
func (*Client_Expecter) DeleteAPI ¶ added in v1.337.0
func (_e *Client_Expecter) DeleteAPI() *Client_DeleteAPI_Call
DeleteAPI is a helper method to define mock.On call
func (*Client_Expecter) HTTPService ¶ added in v1.337.0
func (_e *Client_Expecter) HTTPService() *Client_HTTPService_Call
HTTPService is a helper method to define mock.On call
func (*Client_Expecter) Health ¶ added in v1.337.0
func (_e *Client_Expecter) Health(ctx interface{}) *Client_Health_Call
Health is a helper method to define mock.On call
- ctx context.Context
func (*Client_Expecter) LabelsAPI ¶ added in v1.337.0
func (_e *Client_Expecter) LabelsAPI() *Client_LabelsAPI_Call
LabelsAPI is a helper method to define mock.On call
func (*Client_Expecter) Options ¶ added in v1.337.0
func (_e *Client_Expecter) Options() *Client_Options_Call
Options is a helper method to define mock.On call
func (*Client_Expecter) OrganizationsAPI ¶ added in v1.337.0
func (_e *Client_Expecter) OrganizationsAPI() *Client_OrganizationsAPI_Call
OrganizationsAPI is a helper method to define mock.On call
func (*Client_Expecter) Ping ¶ added in v1.337.0
func (_e *Client_Expecter) Ping(ctx interface{}) *Client_Ping_Call
Ping is a helper method to define mock.On call
- ctx context.Context
func (*Client_Expecter) QueryAPI ¶ added in v1.337.0
func (_e *Client_Expecter) QueryAPI(org interface{}) *Client_QueryAPI_Call
QueryAPI is a helper method to define mock.On call
- org string
func (*Client_Expecter) Ready ¶ added in v1.337.0
func (_e *Client_Expecter) Ready(ctx interface{}) *Client_Ready_Call
Ready is a helper method to define mock.On call
- ctx context.Context
func (*Client_Expecter) ServerURL ¶ added in v1.337.0
func (_e *Client_Expecter) ServerURL() *Client_ServerURL_Call
ServerURL is a helper method to define mock.On call
func (*Client_Expecter) Setup ¶ added in v1.337.0
func (_e *Client_Expecter) Setup(ctx interface{}, username interface{}, password interface{}, org interface{}, bucket interface{}, retentionPeriodHours interface{}) *Client_Setup_Call
Setup is a helper method to define mock.On call
- ctx context.Context
- username string
- password string
- org string
- bucket string
- retentionPeriodHours int
func (*Client_Expecter) SetupWithToken ¶ added in v1.337.0
func (_e *Client_Expecter) SetupWithToken(ctx interface{}, username interface{}, password interface{}, org interface{}, bucket interface{}, retentionPeriodHours interface{}, token interface{}) *Client_SetupWithToken_Call
SetupWithToken is a helper method to define mock.On call
- ctx context.Context
- username string
- password string
- org string
- bucket string
- retentionPeriodHours int
- token string
func (*Client_Expecter) TasksAPI ¶ added in v1.337.0
func (_e *Client_Expecter) TasksAPI() *Client_TasksAPI_Call
TasksAPI is a helper method to define mock.On call
func (*Client_Expecter) UsersAPI ¶ added in v1.337.0
func (_e *Client_Expecter) UsersAPI() *Client_UsersAPI_Call
UsersAPI is a helper method to define mock.On call
func (*Client_Expecter) WriteAPI ¶ added in v1.337.0
func (_e *Client_Expecter) WriteAPI(org interface{}, bucket interface{}) *Client_WriteAPI_Call
WriteAPI is a helper method to define mock.On call
- org string
- bucket string
func (*Client_Expecter) WriteAPIBlocking ¶ added in v1.337.0
func (_e *Client_Expecter) WriteAPIBlocking(org interface{}, bucket interface{}) *Client_WriteAPIBlocking_Call
WriteAPIBlocking is a helper method to define mock.On call
- org string
- bucket string
type Client_HTTPService_Call ¶ added in v1.337.0
Client_HTTPService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HTTPService'
func (*Client_HTTPService_Call) Return ¶ added in v1.337.0
func (_c *Client_HTTPService_Call) Return(_a0 http.Service) *Client_HTTPService_Call
func (*Client_HTTPService_Call) Run ¶ added in v1.337.0
func (_c *Client_HTTPService_Call) Run(run func()) *Client_HTTPService_Call
func (*Client_HTTPService_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_HTTPService_Call) RunAndReturn(run func() http.Service) *Client_HTTPService_Call
type Client_Health_Call ¶ added in v1.337.0
Client_Health_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Health'
func (*Client_Health_Call) Return ¶ added in v1.337.0
func (_c *Client_Health_Call) Return(_a0 *domain.HealthCheck, _a1 error) *Client_Health_Call
func (*Client_Health_Call) Run ¶ added in v1.337.0
func (_c *Client_Health_Call) Run(run func(ctx context.Context)) *Client_Health_Call
func (*Client_Health_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_Health_Call) RunAndReturn(run func(context.Context) (*domain.HealthCheck, error)) *Client_Health_Call
type Client_LabelsAPI_Call ¶ added in v1.337.0
Client_LabelsAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LabelsAPI'
func (*Client_LabelsAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_LabelsAPI_Call) Return(_a0 api.LabelsAPI) *Client_LabelsAPI_Call
func (*Client_LabelsAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_LabelsAPI_Call) Run(run func()) *Client_LabelsAPI_Call
func (*Client_LabelsAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_LabelsAPI_Call) RunAndReturn(run func() api.LabelsAPI) *Client_LabelsAPI_Call
type Client_Options_Call ¶ added in v1.337.0
Client_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'
func (*Client_Options_Call) Return ¶ added in v1.337.0
func (_c *Client_Options_Call) Return(_a0 *influxdb2.Options) *Client_Options_Call
func (*Client_Options_Call) Run ¶ added in v1.337.0
func (_c *Client_Options_Call) Run(run func()) *Client_Options_Call
func (*Client_Options_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_Options_Call) RunAndReturn(run func() *influxdb2.Options) *Client_Options_Call
type Client_OrganizationsAPI_Call ¶ added in v1.337.0
Client_OrganizationsAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrganizationsAPI'
func (*Client_OrganizationsAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_OrganizationsAPI_Call) Return(_a0 api.OrganizationsAPI) *Client_OrganizationsAPI_Call
func (*Client_OrganizationsAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_OrganizationsAPI_Call) Run(run func()) *Client_OrganizationsAPI_Call
func (*Client_OrganizationsAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_OrganizationsAPI_Call) RunAndReturn(run func() api.OrganizationsAPI) *Client_OrganizationsAPI_Call
type Client_Ping_Call ¶ added in v1.337.0
Client_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'
func (*Client_Ping_Call) Return ¶ added in v1.337.0
func (_c *Client_Ping_Call) Return(_a0 bool, _a1 error) *Client_Ping_Call
func (*Client_Ping_Call) Run ¶ added in v1.337.0
func (_c *Client_Ping_Call) Run(run func(ctx context.Context)) *Client_Ping_Call
func (*Client_Ping_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_Ping_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_Ping_Call
type Client_QueryAPI_Call ¶ added in v1.337.0
Client_QueryAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryAPI'
func (*Client_QueryAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_QueryAPI_Call) Return(_a0 api.QueryAPI) *Client_QueryAPI_Call
func (*Client_QueryAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_QueryAPI_Call) Run(run func(org string)) *Client_QueryAPI_Call
func (*Client_QueryAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_QueryAPI_Call) RunAndReturn(run func(string) api.QueryAPI) *Client_QueryAPI_Call
type Client_Ready_Call ¶ added in v1.337.0
Client_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*Client_Ready_Call) Return ¶ added in v1.337.0
func (_c *Client_Ready_Call) Return(_a0 *domain.Ready, _a1 error) *Client_Ready_Call
func (*Client_Ready_Call) Run ¶ added in v1.337.0
func (_c *Client_Ready_Call) Run(run func(ctx context.Context)) *Client_Ready_Call
func (*Client_Ready_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_Ready_Call) RunAndReturn(run func(context.Context) (*domain.Ready, error)) *Client_Ready_Call
type Client_ServerURL_Call ¶ added in v1.337.0
Client_ServerURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerURL'
func (*Client_ServerURL_Call) Return ¶ added in v1.337.0
func (_c *Client_ServerURL_Call) Return(_a0 string) *Client_ServerURL_Call
func (*Client_ServerURL_Call) Run ¶ added in v1.337.0
func (_c *Client_ServerURL_Call) Run(run func()) *Client_ServerURL_Call
func (*Client_ServerURL_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_ServerURL_Call) RunAndReturn(run func() string) *Client_ServerURL_Call
type Client_SetupWithToken_Call ¶ added in v1.337.0
Client_SetupWithToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupWithToken'
func (*Client_SetupWithToken_Call) Return ¶ added in v1.337.0
func (_c *Client_SetupWithToken_Call) Return(_a0 *domain.OnboardingResponse, _a1 error) *Client_SetupWithToken_Call
func (*Client_SetupWithToken_Call) Run ¶ added in v1.337.0
func (_c *Client_SetupWithToken_Call) Run(run func(ctx context.Context, username string, password string, org string, bucket string, retentionPeriodHours int, token string)) *Client_SetupWithToken_Call
func (*Client_SetupWithToken_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_SetupWithToken_Call) RunAndReturn(run func(context.Context, string, string, string, string, int, string) (*domain.OnboardingResponse, error)) *Client_SetupWithToken_Call
type Client_Setup_Call ¶ added in v1.337.0
Client_Setup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Setup'
func (*Client_Setup_Call) Return ¶ added in v1.337.0
func (_c *Client_Setup_Call) Return(_a0 *domain.OnboardingResponse, _a1 error) *Client_Setup_Call
func (*Client_Setup_Call) Run ¶ added in v1.337.0
func (_c *Client_Setup_Call) Run(run func(ctx context.Context, username string, password string, org string, bucket string, retentionPeriodHours int)) *Client_Setup_Call
func (*Client_Setup_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_Setup_Call) RunAndReturn(run func(context.Context, string, string, string, string, int) (*domain.OnboardingResponse, error)) *Client_Setup_Call
type Client_TasksAPI_Call ¶ added in v1.337.0
Client_TasksAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TasksAPI'
func (*Client_TasksAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_TasksAPI_Call) Return(_a0 api.TasksAPI) *Client_TasksAPI_Call
func (*Client_TasksAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_TasksAPI_Call) Run(run func()) *Client_TasksAPI_Call
func (*Client_TasksAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_TasksAPI_Call) RunAndReturn(run func() api.TasksAPI) *Client_TasksAPI_Call
type Client_UsersAPI_Call ¶ added in v1.337.0
Client_UsersAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UsersAPI'
func (*Client_UsersAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_UsersAPI_Call) Return(_a0 api.UsersAPI) *Client_UsersAPI_Call
func (*Client_UsersAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_UsersAPI_Call) Run(run func()) *Client_UsersAPI_Call
func (*Client_UsersAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_UsersAPI_Call) RunAndReturn(run func() api.UsersAPI) *Client_UsersAPI_Call
type Client_WriteAPIBlocking_Call ¶ added in v1.337.0
Client_WriteAPIBlocking_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAPIBlocking'
func (*Client_WriteAPIBlocking_Call) Return ¶ added in v1.337.0
func (_c *Client_WriteAPIBlocking_Call) Return(_a0 api.WriteAPIBlocking) *Client_WriteAPIBlocking_Call
func (*Client_WriteAPIBlocking_Call) Run ¶ added in v1.337.0
func (_c *Client_WriteAPIBlocking_Call) Run(run func(org string, bucket string)) *Client_WriteAPIBlocking_Call
func (*Client_WriteAPIBlocking_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_WriteAPIBlocking_Call) RunAndReturn(run func(string, string) api.WriteAPIBlocking) *Client_WriteAPIBlocking_Call
type Client_WriteAPI_Call ¶ added in v1.337.0
Client_WriteAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAPI'
func (*Client_WriteAPI_Call) Return ¶ added in v1.337.0
func (_c *Client_WriteAPI_Call) Return(_a0 api.WriteAPI) *Client_WriteAPI_Call
func (*Client_WriteAPI_Call) Run ¶ added in v1.337.0
func (_c *Client_WriteAPI_Call) Run(run func(org string, bucket string)) *Client_WriteAPI_Call
func (*Client_WriteAPI_Call) RunAndReturn ¶ added in v1.337.0
func (_c *Client_WriteAPI_Call) RunAndReturn(run func(string, string) api.WriteAPI) *Client_WriteAPI_Call
type WriteAPIBlocking ¶
WriteAPIBlocking is an autogenerated mock type for the WriteAPIBlocking type
func NewWriteAPIBlocking ¶ added in v1.337.0
func NewWriteAPIBlocking(t interface { mock.TestingT Cleanup(func()) }) *WriteAPIBlocking
NewWriteAPIBlocking creates a new instance of WriteAPIBlocking. 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 (*WriteAPIBlocking) EXPECT ¶ added in v1.337.0
func (_m *WriteAPIBlocking) EXPECT() *WriteAPIBlocking_Expecter
func (*WriteAPIBlocking) EnableBatching ¶ added in v1.337.0
func (_m *WriteAPIBlocking) EnableBatching()
EnableBatching provides a mock function with given fields:
func (*WriteAPIBlocking) Flush ¶ added in v1.337.0
func (_m *WriteAPIBlocking) Flush(ctx context.Context) error
Flush provides a mock function with given fields: ctx
func (*WriteAPIBlocking) WritePoint ¶
WritePoint provides a mock function with given fields: ctx, point
func (*WriteAPIBlocking) WriteRecord ¶
func (_m *WriteAPIBlocking) WriteRecord(ctx context.Context, line ...string) error
WriteRecord provides a mock function with given fields: ctx, line
type WriteAPIBlocking_EnableBatching_Call ¶ added in v1.337.0
WriteAPIBlocking_EnableBatching_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableBatching'
func (*WriteAPIBlocking_EnableBatching_Call) Return ¶ added in v1.337.0
func (_c *WriteAPIBlocking_EnableBatching_Call) Return() *WriteAPIBlocking_EnableBatching_Call
func (*WriteAPIBlocking_EnableBatching_Call) Run ¶ added in v1.337.0
func (_c *WriteAPIBlocking_EnableBatching_Call) Run(run func()) *WriteAPIBlocking_EnableBatching_Call
func (*WriteAPIBlocking_EnableBatching_Call) RunAndReturn ¶ added in v1.337.0
func (_c *WriteAPIBlocking_EnableBatching_Call) RunAndReturn(run func()) *WriteAPIBlocking_EnableBatching_Call
type WriteAPIBlocking_Expecter ¶ added in v1.337.0
type WriteAPIBlocking_Expecter struct {
// contains filtered or unexported fields
}
func (*WriteAPIBlocking_Expecter) EnableBatching ¶ added in v1.337.0
func (_e *WriteAPIBlocking_Expecter) EnableBatching() *WriteAPIBlocking_EnableBatching_Call
EnableBatching is a helper method to define mock.On call
func (*WriteAPIBlocking_Expecter) Flush ¶ added in v1.337.0
func (_e *WriteAPIBlocking_Expecter) Flush(ctx interface{}) *WriteAPIBlocking_Flush_Call
Flush is a helper method to define mock.On call
- ctx context.Context
func (*WriteAPIBlocking_Expecter) WritePoint ¶ added in v1.337.0
func (_e *WriteAPIBlocking_Expecter) WritePoint(ctx interface{}, point ...interface{}) *WriteAPIBlocking_WritePoint_Call
WritePoint is a helper method to define mock.On call
- ctx context.Context
- point ...*write.Point
func (*WriteAPIBlocking_Expecter) WriteRecord ¶ added in v1.337.0
func (_e *WriteAPIBlocking_Expecter) WriteRecord(ctx interface{}, line ...interface{}) *WriteAPIBlocking_WriteRecord_Call
WriteRecord is a helper method to define mock.On call
- ctx context.Context
- line ...string
type WriteAPIBlocking_Flush_Call ¶ added in v1.337.0
WriteAPIBlocking_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
func (*WriteAPIBlocking_Flush_Call) Return ¶ added in v1.337.0
func (_c *WriteAPIBlocking_Flush_Call) Return(_a0 error) *WriteAPIBlocking_Flush_Call
func (*WriteAPIBlocking_Flush_Call) Run ¶ added in v1.337.0
func (_c *WriteAPIBlocking_Flush_Call) Run(run func(ctx context.Context)) *WriteAPIBlocking_Flush_Call
func (*WriteAPIBlocking_Flush_Call) RunAndReturn ¶ added in v1.337.0
func (_c *WriteAPIBlocking_Flush_Call) RunAndReturn(run func(context.Context) error) *WriteAPIBlocking_Flush_Call
type WriteAPIBlocking_WritePoint_Call ¶ added in v1.337.0
WriteAPIBlocking_WritePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WritePoint'
func (*WriteAPIBlocking_WritePoint_Call) Return ¶ added in v1.337.0
func (_c *WriteAPIBlocking_WritePoint_Call) Return(_a0 error) *WriteAPIBlocking_WritePoint_Call
func (*WriteAPIBlocking_WritePoint_Call) Run ¶ added in v1.337.0
func (_c *WriteAPIBlocking_WritePoint_Call) Run(run func(ctx context.Context, point ...*write.Point)) *WriteAPIBlocking_WritePoint_Call
func (*WriteAPIBlocking_WritePoint_Call) RunAndReturn ¶ added in v1.337.0
func (_c *WriteAPIBlocking_WritePoint_Call) RunAndReturn(run func(context.Context, ...*write.Point) error) *WriteAPIBlocking_WritePoint_Call
type WriteAPIBlocking_WriteRecord_Call ¶ added in v1.337.0
WriteAPIBlocking_WriteRecord_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteRecord'
func (*WriteAPIBlocking_WriteRecord_Call) Return ¶ added in v1.337.0
func (_c *WriteAPIBlocking_WriteRecord_Call) Return(_a0 error) *WriteAPIBlocking_WriteRecord_Call
func (*WriteAPIBlocking_WriteRecord_Call) Run ¶ added in v1.337.0
func (_c *WriteAPIBlocking_WriteRecord_Call) Run(run func(ctx context.Context, line ...string)) *WriteAPIBlocking_WriteRecord_Call
func (*WriteAPIBlocking_WriteRecord_Call) RunAndReturn ¶ added in v1.337.0
func (_c *WriteAPIBlocking_WriteRecord_Call) RunAndReturn(run func(context.Context, ...string) error) *WriteAPIBlocking_WriteRecord_Call