client

package
v1.32.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	data.DataSetAccessor

	CreateDataSetsData(ctx context.Context, dataSetID string, datumArray []data.Datum) error

	DestroyDataForUserByID(ctx context.Context, userID string) error
}

type ClientImpl

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

func New

func New(cfg *platform.Config, authorizeAs platform.AuthorizeAs) (*ClientImpl, error)

func (*ClientImpl) CreateDataSetsData

func (c *ClientImpl) CreateDataSetsData(ctx context.Context, dataSetID string, datumArray []data.Datum) error

func (*ClientImpl) CreateUserDataSet

func (c *ClientImpl) CreateUserDataSet(ctx context.Context, userID string, create *data.DataSetCreate) (*data.DataSet, error)

func (*ClientImpl) DeleteDataSet

func (c *ClientImpl) DeleteDataSet(ctx context.Context, id string) error

func (*ClientImpl) DestroyDataForUserByID

func (c *ClientImpl) DestroyDataForUserByID(ctx context.Context, userID string) error

func (*ClientImpl) GetDataSet

func (c *ClientImpl) GetDataSet(ctx context.Context, id string) (*data.DataSet, error)

func (*ClientImpl) ListUserDataSets added in v1.21.0

func (c *ClientImpl) ListUserDataSets(ctx context.Context, userID string, filter *data.DataSetFilter, pagination *page.Pagination) (data.DataSets, error)

func (*ClientImpl) UpdateDataSet

func (c *ClientImpl) UpdateDataSet(ctx context.Context, id string, update *data.DataSetUpdate) (*data.DataSet, error)

Jump to

Keyboard shortcuts

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