Documentation ¶
Overview ¶
Package examples contains fake client with the same interface as real client to overcome import-cycle problem to allow real E2E examples for apis in this package
Index ¶
- type FakeClient
- func (c *FakeClient) AuthorizationsAPI() api.AuthorizationsAPI
- func (c *FakeClient) BucketsAPI() api.BucketsAPI
- func (c *FakeClient) Close()
- func (c *FakeClient) DeleteAPI() api.DeleteAPI
- func (c *FakeClient) Health(_ context.Context) (*domain.HealthCheck, error)
- func (c *FakeClient) LabelsAPI() api.LabelsAPI
- func (c *FakeClient) Options() *Options
- func (c *FakeClient) OrganizationsAPI() api.OrganizationsAPI
- func (c *FakeClient) QueryAPI(_ string) api.QueryAPI
- func (c *FakeClient) Ready(_ context.Context) (bool, error)
- func (c *FakeClient) ServerURL() string
- func (c *FakeClient) Setup(_ context.Context, _, _, _, _ string, _ int) (*domain.OnboardingResponse, error)
- func (c *FakeClient) TasksAPI() api.TasksAPI
- func (c *FakeClient) UsersAPI() api.UsersAPI
- func (c *FakeClient) WriteAPI(_, _ string) api.WriteAPI
- func (c *FakeClient) WriteAPIBlocking(_, _ string) api.WriteAPIBlocking
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { }
FakeClient emulates Client for allowing using client in api examples
func (*FakeClient) AuthorizationsAPI ¶
func (c *FakeClient) AuthorizationsAPI() api.AuthorizationsAPI
AuthorizationsAPI returns nil
func (*FakeClient) BucketsAPI ¶
func (c *FakeClient) BucketsAPI() api.BucketsAPI
BucketsAPI returns nil
func (*FakeClient) Health ¶
func (c *FakeClient) Health(_ context.Context) (*domain.HealthCheck, error)
Health does nothing
func (*FakeClient) OrganizationsAPI ¶
func (c *FakeClient) OrganizationsAPI() api.OrganizationsAPI
OrganizationsAPI returns nil
func (*FakeClient) QueryAPI ¶
func (c *FakeClient) QueryAPI(_ string) api.QueryAPI
QueryAPI returns nil
func (*FakeClient) Ready ¶
func (c *FakeClient) Ready(_ context.Context) (bool, error)
Ready does nothing
func (*FakeClient) ServerURL ¶
func (c *FakeClient) ServerURL() string
ServerURL returns empty server URL
func (*FakeClient) Setup ¶
func (c *FakeClient) Setup(_ context.Context, _, _, _, _ string, _ int) (*domain.OnboardingResponse, error)
Setup does nothing
func (*FakeClient) WriteAPI ¶
func (c *FakeClient) WriteAPI(_, _ string) api.WriteAPI
WriteAPI does nothing
func (*FakeClient) WriteAPIBlocking ¶
func (c *FakeClient) WriteAPIBlocking(_, _ string) api.WriteAPIBlocking
WriteAPIBlocking does nothing
Click to show internal directories.
Click to hide internal directories.