client

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(config *platform.Config, authorizeAs platform.AuthorizeAs) (*Client, error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)

func (*Client) DeleteAll added in v1.31.0

func (c *Client) DeleteAll(ctx context.Context, userID string) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (*dataSource.Source, error)

func (*Client) List

func (c *Client) List(ctx context.Context, userID string, filter *dataSource.Filter, pagination *page.Pagination) (dataSource.SourceArray, error)

func (*Client) Update

func (c *Client) Update(ctx context.Context, id string, condition *request.Condition, update *dataSource.Update) (*dataSource.Source, error)

Jump to

Keyboard shortcuts

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