test

package
v1.32.2-hotfix.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateDataSetDataInput added in v1.28.0

type ActivateDataSetDataInput struct {
	Context   context.Context
	DataSet   *upload.Upload
	Selectors *data.Selectors
}

type ArchiveDataSetDataInput added in v1.29.0

type ArchiveDataSetDataInput struct {
	Context   context.Context
	DataSet   *upload.Upload
	Selectors *data.Selectors
}

type ArchiveDeviceDataUsingHashesFromDataSetInput added in v1.28.0

type ArchiveDeviceDataUsingHashesFromDataSetInput struct {
	Context context.Context
	DataSet *upload.Upload
}

type CreateDataSetDataInput added in v1.28.0

type CreateDataSetDataInput struct {
	Context     context.Context
	DataSet     *upload.Upload
	DataSetData []data.Datum
}

type CreateDataSetInput added in v1.28.0

type CreateDataSetInput struct {
	Context context.Context
	DataSet *upload.Upload
}

type DataSession

type DataSession struct {
	*test.Closer
	GetDataSetsForUserByIDInvocations                    int
	GetDataSetsForUserByIDInputs                         []GetDataSetsForUserByIDInput
	GetDataSetsForUserByIDOutputs                        []GetDataSetsForUserByIDOutput
	GetDataSetByIDInvocations                            int
	GetDataSetByIDInputs                                 []GetDataSetByIDInput
	GetDataSetByIDOutputs                                []GetDataSetByIDOutput
	CreateDataSetInvocations                             int
	CreateDataSetInputs                                  []CreateDataSetInput
	CreateDataSetOutputs                                 []error
	UpdateDataSetInvocations                             int
	UpdateDataSetInputs                                  []UpdateDataSetInput
	UpdateDataSetOutputs                                 []UpdateDataSetOutput
	DeleteDataSetInvocations                             int
	DeleteDataSetInputs                                  []DeleteDataSetInput
	DeleteDataSetOutputs                                 []error
	CreateDataSetDataInvocations                         int
	CreateDataSetDataInputs                              []CreateDataSetDataInput
	CreateDataSetDataOutputs                             []error
	ActivateDataSetDataInvocations                       int
	ActivateDataSetDataInputs                            []ActivateDataSetDataInput
	ActivateDataSetDataOutputs                           []error
	ArchiveDataSetDataInvocations                        int
	ArchiveDataSetDataInputs                             []ArchiveDataSetDataInput
	ArchiveDataSetDataOutputs                            []error
	DeleteDataSetDataInvocations                         int
	DeleteDataSetDataInputs                              []DeleteDataSetDataInput
	DeleteDataSetDataOutputs                             []error
	DestroyDeletedDataSetDataInvocations                 int
	DestroyDeletedDataSetDataInputs                      []DestroyDeletedDataSetDataInput
	DestroyDeletedDataSetDataOutputs                     []error
	DestroyDataSetDataInvocations                        int
	DestroyDataSetDataInputs                             []DestroyDataSetDataInput
	DestroyDataSetDataOutputs                            []error
	ArchiveDeviceDataUsingHashesFromDataSetInvocations   int
	ArchiveDeviceDataUsingHashesFromDataSetInputs        []ArchiveDeviceDataUsingHashesFromDataSetInput
	ArchiveDeviceDataUsingHashesFromDataSetOutputs       []error
	UnarchiveDeviceDataUsingHashesFromDataSetInvocations int
	UnarchiveDeviceDataUsingHashesFromDataSetInputs      []UnarchiveDeviceDataUsingHashesFromDataSetInput
	UnarchiveDeviceDataUsingHashesFromDataSetOutputs     []error
	DeleteOtherDataSetDataInvocations                    int
	DeleteOtherDataSetDataInputs                         []DeleteOtherDataSetDataInput
	DeleteOtherDataSetDataOutputs                        []error
	DestroyDataForUserByIDInvocations                    int
	DestroyDataForUserByIDInputs                         []DestroyDataForUserByIDInput
	DestroyDataForUserByIDOutputs                        []error
	ListUserDataSetsInvocations                          int
	ListUserDataSetsInputs                               []ListUserDataSetsInput
	ListUserDataSetsOutputs                              []ListUserDataSetsOutput
	GetDataSetInvocations                                int
	GetDataSetInputs                                     []GetDataSetInput
	GetDataSetOutputs                                    []GetDataSetOutput
}

func NewDataSession

func NewDataSession() *DataSession

func (*DataSession) ActivateDataSetData added in v1.28.0

func (d *DataSession) ActivateDataSetData(ctx context.Context, dataSet *upload.Upload, selectors *data.Selectors) error

func (*DataSession) ArchiveDataSetData added in v1.29.0

func (d *DataSession) ArchiveDataSetData(ctx context.Context, dataSet *upload.Upload, selectors *data.Selectors) error

func (*DataSession) ArchiveDeviceDataUsingHashesFromDataSet added in v1.28.0

func (d *DataSession) ArchiveDeviceDataUsingHashesFromDataSet(ctx context.Context, dataSet *upload.Upload) error

func (*DataSession) CreateDataSet added in v1.28.0

func (d *DataSession) CreateDataSet(ctx context.Context, dataSet *upload.Upload) error

func (*DataSession) CreateDataSetData added in v1.28.0

func (d *DataSession) CreateDataSetData(ctx context.Context, dataSet *upload.Upload, dataSetData []data.Datum) error

func (*DataSession) DeleteDataSet added in v1.28.0

func (d *DataSession) DeleteDataSet(ctx context.Context, dataSet *upload.Upload) error

func (*DataSession) DeleteDataSetData added in v1.29.0

func (d *DataSession) DeleteDataSetData(ctx context.Context, dataSet *upload.Upload, selectors *data.Selectors) error

func (*DataSession) DeleteOtherDataSetData added in v1.28.0

func (d *DataSession) DeleteOtherDataSetData(ctx context.Context, dataSet *upload.Upload) error

func (*DataSession) DestroyDataForUserByID

func (d *DataSession) DestroyDataForUserByID(ctx context.Context, userID string) error

func (*DataSession) DestroyDataSetData added in v1.29.0

func (d *DataSession) DestroyDataSetData(ctx context.Context, dataSet *upload.Upload, selectors *data.Selectors) error

func (*DataSession) DestroyDeletedDataSetData added in v1.29.0

func (d *DataSession) DestroyDeletedDataSetData(ctx context.Context, dataSet *upload.Upload, selectors *data.Selectors) error

func (*DataSession) Expectations

func (d *DataSession) Expectations()

func (*DataSession) GetDataSet

func (d *DataSession) GetDataSet(ctx context.Context, id string) (*data.DataSet, error)

func (*DataSession) GetDataSetByID added in v1.28.0

func (d *DataSession) GetDataSetByID(ctx context.Context, dataSetID string) (*upload.Upload, error)

func (*DataSession) GetDataSetsForUserByID added in v1.28.0

func (d *DataSession) GetDataSetsForUserByID(ctx context.Context, userID string, filter *dataStoreDEPRECATED.Filter, pagination *page.Pagination) ([]*upload.Upload, error)

func (*DataSession) ListUserDataSets added in v1.21.0

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

func (*DataSession) UnarchiveDeviceDataUsingHashesFromDataSet added in v1.28.0

func (d *DataSession) UnarchiveDeviceDataUsingHashesFromDataSet(ctx context.Context, dataSet *upload.Upload) error

func (*DataSession) UpdateDataSet

func (d *DataSession) UpdateDataSet(ctx context.Context, id string, update *data.DataSetUpdate) (*upload.Upload, error)

type DeleteDataSetDataInput added in v1.29.0

type DeleteDataSetDataInput struct {
	Context   context.Context
	DataSet   *upload.Upload
	Selectors *data.Selectors
}

type DeleteDataSetInput added in v1.28.0

type DeleteDataSetInput struct {
	Context context.Context
	DataSet *upload.Upload
}

type DeleteOtherDataSetDataInput added in v1.28.0

type DeleteOtherDataSetDataInput struct {
	Context context.Context
	DataSet *upload.Upload
}

type DestroyDataForUserByIDInput

type DestroyDataForUserByIDInput struct {
	Context context.Context
	UserID  string
}

type DestroyDataSetDataInput added in v1.29.0

type DestroyDataSetDataInput struct {
	Context   context.Context
	DataSet   *upload.Upload
	Selectors *data.Selectors
}

type DestroyDeletedDataSetDataInput added in v1.29.0

type DestroyDeletedDataSetDataInput struct {
	Context   context.Context
	DataSet   *upload.Upload
	Selectors *data.Selectors
}

type GetDataSetByIDInput added in v1.28.0

type GetDataSetByIDInput struct {
	Context   context.Context
	DataSetID string
}

type GetDataSetByIDOutput added in v1.28.0

type GetDataSetByIDOutput struct {
	DataSet *upload.Upload
	Error   error
}

type GetDataSetInput

type GetDataSetInput struct {
	Context context.Context
	ID      string
}

type GetDataSetOutput

type GetDataSetOutput struct {
	DataSet *data.DataSet
	Error   error
}

type GetDataSetsForUserByIDInput added in v1.28.0

type GetDataSetsForUserByIDInput struct {
	Context    context.Context
	UserID     string
	Filter     *dataStoreDEPRECATED.Filter
	Pagination *page.Pagination
}

type GetDataSetsForUserByIDOutput added in v1.28.0

type GetDataSetsForUserByIDOutput struct {
	DataSets []*upload.Upload
	Error    error
}

type ListUserDataSetsInput added in v1.21.0

type ListUserDataSetsInput struct {
	Context    context.Context
	UserID     string
	Filter     *data.DataSetFilter
	Pagination *page.Pagination
}

type ListUserDataSetsOutput added in v1.21.0

type ListUserDataSetsOutput struct {
	DataSets data.DataSets
	Error    error
}

type UnarchiveDeviceDataUsingHashesFromDataSetInput added in v1.28.0

type UnarchiveDeviceDataUsingHashesFromDataSetInput struct {
	Context context.Context
	DataSet *upload.Upload
}

type UpdateDataSetInput

type UpdateDataSetInput struct {
	Context context.Context
	ID      string
	Update  *data.DataSetUpdate
}

type UpdateDataSetOutput

type UpdateDataSetOutput struct {
	DataSet *upload.Upload
	Error   error
}

Jump to

Keyboard shortcuts

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