test

package
v1.20.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2017 License: BSD-3-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

type ActivateDatasetDataInput struct {
	Context context.Context
	Dataset *upload.Upload
}

type ArchiveDeviceDataUsingHashesFromDatasetInput

type ArchiveDeviceDataUsingHashesFromDatasetInput struct {
	Context context.Context
	Dataset *upload.Upload
}

type CreateDatasetDataInput

type CreateDatasetDataInput struct {
	Context     context.Context
	Dataset     *upload.Upload
	DatasetData []data.Datum
}

type CreateDatasetInput

type CreateDatasetInput struct {
	Context context.Context
	Dataset *upload.Upload
}

type DataSession

type DataSession struct {
	*test.Mock
	IsClosedInvocations                                  int
	IsClosedOutputs                                      []bool
	EnsureIndexesInvocations                             int
	EnsureIndexesOutputs                                 []error
	CloseInvocations                                     int
	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
	ArchiveDeviceDataUsingHashesFromDatasetInvocations   int
	ArchiveDeviceDataUsingHashesFromDatasetInputs        []ArchiveDeviceDataUsingHashesFromDatasetInput
	ArchiveDeviceDataUsingHashesFromDatasetOutputs       []error
	UnarchiveDeviceDataUsingHashesFromDatasetInvocations int
	UnarchiveDeviceDataUsingHashesFromDatasetInputs      []UnarchiveDeviceDataUsingHashesFromDatasetInput
	UnarchiveDeviceDataUsingHashesFromDatasetOutputs     []error
	DeleteOtherDatasetDataInvocations                    int
	DeleteOtherDatasetDataInputs                         []DeleteOtherDatasetDataInput
	DeleteOtherDatasetDataOutputs                        []error
	DestroyDataForUserByIDInvocations                    int
	DestroyDataForUserByIDInputs                         []DestroyDataForUserByIDInput
	DestroyDataForUserByIDOutputs                        []error
	GetDataSetInvocations                                int
	GetDataSetInputs                                     []GetDataSetInput
	GetDataSetOutputs                                    []GetDataSetOutput
}

func NewDataSession

func NewDataSession() *DataSession

func (*DataSession) ActivateDatasetData

func (d *DataSession) ActivateDatasetData(ctx context.Context, dataset *upload.Upload) error

func (*DataSession) ArchiveDeviceDataUsingHashesFromDataset

func (d *DataSession) ArchiveDeviceDataUsingHashesFromDataset(ctx context.Context, dataset *upload.Upload) error

func (*DataSession) Close

func (d *DataSession) Close()

func (*DataSession) CreateDataset

func (d *DataSession) CreateDataset(ctx context.Context, dataset *upload.Upload) error

func (*DataSession) CreateDatasetData

func (d *DataSession) CreateDatasetData(ctx context.Context, dataset *upload.Upload, datasetData []data.Datum) error

func (*DataSession) DeleteDataset

func (d *DataSession) DeleteDataset(ctx context.Context, dataset *upload.Upload) error

func (*DataSession) DeleteOtherDatasetData

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) EnsureIndexes

func (d *DataSession) EnsureIndexes() 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

func (d *DataSession) GetDatasetByID(ctx context.Context, datasetID string) (*upload.Upload, error)

func (*DataSession) GetDatasetsForUserByID

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

func (*DataSession) IsClosed

func (d *DataSession) IsClosed() bool

func (*DataSession) UnarchiveDeviceDataUsingHashesFromDataset

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 DeleteDatasetInput

type DeleteDatasetInput struct {
	Context context.Context
	Dataset *upload.Upload
}

type DeleteOtherDatasetDataInput

type DeleteOtherDatasetDataInput struct {
	Context context.Context
	Dataset *upload.Upload
}

type DestroyDataForUserByIDInput

type DestroyDataForUserByIDInput struct {
	Context context.Context
	UserID  string
}

type GetDataSetInput

type GetDataSetInput struct {
	Context context.Context
	ID      string
}

type GetDataSetOutput

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

type GetDatasetByIDInput

type GetDatasetByIDInput struct {
	Context   context.Context
	DatasetID string
}

type GetDatasetByIDOutput

type GetDatasetByIDOutput struct {
	Dataset *upload.Upload
	Error   error
}

type GetDatasetsForUserByIDInput

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

type GetDatasetsForUserByIDOutput

type GetDatasetsForUserByIDOutput struct {
	Datasets []*upload.Upload
	Error    error
}

type UnarchiveDeviceDataUsingHashesFromDatasetInput

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