Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- type Connector
- func (c *Connector) Close() error
- func (c *Connector) HTTPClient() *common.HTTPClient
- func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient
- func (c *Connector) ListObjectMetadata(ctx context.Context, objectNames []string) (*common.ListObjectMetadataResult, error)
- func (c *Connector) Provider() providers.Provider
- func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)
- func (c *Connector) String() string
- func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)
- type Option
- type ResponseError
Constants ¶
View Source
const (
// DefaultPageSize is number of elements per page.
DefaultPageSize = 500
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { BaseURL string Client *common.JSONHTTPClient Module common.Module }
func NewConnector ¶
func (*Connector) HTTPClient ¶
func (c *Connector) HTTPClient() *common.HTTPClient
func (*Connector) JSONHTTPClient ¶
func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient
JSONHTTPClient returns the underlying JSON HTTP client.
func (*Connector) ListObjectMetadata ¶
func (c *Connector) ListObjectMetadata(ctx context.Context, objectNames []string, ) (*common.ListObjectMetadataResult, error)
ListObjectMetadata creates metadata of object via reading objects using Kit API.
func (*Connector) Read ¶
func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)
func (*Connector) Write ¶
func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)
Write creates/updates records in kit.
type Option ¶
type Option = func(params *parameters)
func WithAuthenticatedClient ¶
func WithAuthenticatedClient(client common.AuthenticatedHTTPClient) Option
type ResponseError ¶
type ResponseError struct {
Errors interface{} `json:"errors"`
}
func (ResponseError) CombineErr ¶
func (r ResponseError) CombineErr(base error) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.