examples

package
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 3 Imported by: 0

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

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 NewClient

func NewClient(_ string, _ string) *FakeClient

NewClient returns new FakeClient

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) Close added in v2.3.0

func (c *FakeClient) Close()

Close does nothing

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

type Options

type Options struct {
}

Options is fake options to satisfy Client interface

func (*Options) SetBatchSize

func (o *Options) SetBatchSize(_ uint) *Options

SetBatchSize to emulate fake options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL