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 ¶ added in v2.3.0
type FakeClient struct { }
FakeClient emulates Client for allowing using client in api examples
func (*FakeClient) AuthorizationsAPI ¶ added in v2.3.0
func (c *FakeClient) AuthorizationsAPI() api.AuthorizationsAPI
AuthorizationsAPI returns nil
func (*FakeClient) BucketsAPI ¶ added in v2.3.0
func (c *FakeClient) BucketsAPI() api.BucketsAPI
BucketsAPI returns nil
func (*FakeClient) DeleteAPI ¶ added in v2.3.0
func (c *FakeClient) DeleteAPI() api.DeleteAPI
DeleteAPI returns nil
func (*FakeClient) Health ¶ added in v2.3.0
func (c *FakeClient) Health(_ context.Context) (*domain.HealthCheck, error)
Health does nothing
func (*FakeClient) LabelsAPI ¶ added in v2.3.0
func (c *FakeClient) LabelsAPI() api.LabelsAPI
LabelsAPI returns nil
func (*FakeClient) Options ¶ added in v2.3.0
func (c *FakeClient) Options() *Options
Options returns nil
func (*FakeClient) OrganizationsAPI ¶ added in v2.3.0
func (c *FakeClient) OrganizationsAPI() api.OrganizationsAPI
OrganizationsAPI returns nil
func (*FakeClient) QueryAPI ¶ added in v2.3.0
func (c *FakeClient) QueryAPI(_ string) api.QueryAPI
QueryAPI returns nil
func (*FakeClient) Ready ¶ added in v2.3.0
func (c *FakeClient) Ready(_ context.Context) (bool, error)
Ready does nothing
func (*FakeClient) ServerURL ¶ added in v2.3.0
func (c *FakeClient) ServerURL() string
ServerURL returns empty server URL
func (*FakeClient) Setup ¶ added in v2.3.0
func (c *FakeClient) Setup(_ context.Context, _, _, _, _ string, _ int) (*domain.OnboardingResponse, error)
Setup does nothing
func (*FakeClient) TasksAPI ¶ added in v2.3.0
func (c *FakeClient) TasksAPI() api.TasksAPI
TasksAPI returns nil
func (*FakeClient) UsersAPI ¶ added in v2.3.0
func (c *FakeClient) UsersAPI() api.UsersAPI
UsersAPI returns nil
func (*FakeClient) WriteAPI ¶ added in v2.3.0
func (c *FakeClient) WriteAPI(_, _ string) api.WriteAPI
WriteAPI does nothing
func (*FakeClient) WriteAPIBlocking ¶ added in v2.3.0
func (c *FakeClient) WriteAPIBlocking(_, _ string) api.WriteAPIBlocking
WriteAPIBlocking does nothing
Click to show internal directories.
Click to hide internal directories.