test

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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 CreateDatasetDataInput

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

type GetDatasetByIDOutput

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

type GetDatasetsForUserByIDInput

type GetDatasetsForUserByIDInput struct {
	UserID     string
	Filter     *store.Filter
	Pagination *store.Pagination
}

type GetDatasetsForUserByIDOutput

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

type Session

type Session struct {
	ID                                                   string
	IsClosedInvocations                                  int
	IsClosedOutputs                                      []bool
	CloseInvocations                                     int
	LoggerInvocations                                    int
	LoggerImpl                                           log.Logger
	SetAgentInvocations                                  int
	SetAgentInputs                                       []commonStore.Agent
	GetDatasetsForUserByIDInvocations                    int
	GetDatasetsForUserByIDInputs                         []GetDatasetsForUserByIDInput
	GetDatasetsForUserByIDOutputs                        []GetDatasetsForUserByIDOutput
	GetDatasetByIDInvocations                            int
	GetDatasetByIDInputs                                 []string
	GetDatasetByIDOutputs                                []GetDatasetByIDOutput
	CreateDatasetInvocations                             int
	CreateDatasetInputs                                  []*upload.Upload
	CreateDatasetOutputs                                 []error
	UpdateDatasetInvocations                             int
	UpdateDatasetInputs                                  []*upload.Upload
	UpdateDatasetOutputs                                 []error
	DeleteDatasetInvocations                             int
	DeleteDatasetInputs                                  []*upload.Upload
	DeleteDatasetOutputs                                 []error
	CreateDatasetDataInvocations                         int
	CreateDatasetDataInputs                              []CreateDatasetDataInput
	CreateDatasetDataOutputs                             []error
	ActivateDatasetDataInvocations                       int
	ActivateDatasetDataInputs                            []*upload.Upload
	ActivateDatasetDataOutputs                           []error
	ArchiveDeviceDataUsingHashesFromDatasetInvocations   int
	ArchiveDeviceDataUsingHashesFromDatasetInputs        []*upload.Upload
	ArchiveDeviceDataUsingHashesFromDatasetOutputs       []error
	UnarchiveDeviceDataUsingHashesFromDatasetInvocations int
	UnarchiveDeviceDataUsingHashesFromDatasetInputs      []*upload.Upload
	UnarchiveDeviceDataUsingHashesFromDatasetOutputs     []error
	DeleteOtherDatasetDataInvocations                    int
	DeleteOtherDatasetDataInputs                         []*upload.Upload
	DeleteOtherDatasetDataOutputs                        []error
	DestroyDataForUserByIDInvocations                    int
	DestroyDataForUserByIDInputs                         []string
	DestroyDataForUserByIDOutputs                        []error
}

func NewSession

func NewSession() *Session

func (*Session) ActivateDatasetData

func (s *Session) ActivateDatasetData(dataset *upload.Upload) error

func (*Session) ArchiveDeviceDataUsingHashesFromDataset added in v1.9.0

func (s *Session) ArchiveDeviceDataUsingHashesFromDataset(dataset *upload.Upload) error

func (*Session) Close

func (s *Session) Close()

func (*Session) CreateDataset

func (s *Session) CreateDataset(dataset *upload.Upload) error

func (*Session) CreateDatasetData

func (s *Session) CreateDatasetData(dataset *upload.Upload, datasetData []data.Datum) error

func (*Session) DeleteDataset

func (s *Session) DeleteDataset(dataset *upload.Upload) error

func (*Session) DeleteOtherDatasetData

func (s *Session) DeleteOtherDatasetData(dataset *upload.Upload) error

func (*Session) DestroyDataForUserByID

func (s *Session) DestroyDataForUserByID(userID string) error

func (*Session) GetDatasetByID

func (s *Session) GetDatasetByID(datasetID string) (*upload.Upload, error)

func (*Session) GetDatasetsForUserByID

func (s *Session) GetDatasetsForUserByID(userID string, filter *store.Filter, pagination *store.Pagination) ([]*upload.Upload, error)

func (*Session) IsClosed

func (s *Session) IsClosed() bool

func (*Session) Logger added in v1.9.0

func (s *Session) Logger() log.Logger

func (*Session) SetAgent

func (s *Session) SetAgent(agent commonStore.Agent)

func (*Session) UnarchiveDeviceDataUsingHashesFromDataset added in v1.9.0

func (s *Session) UnarchiveDeviceDataUsingHashesFromDataset(dataset *upload.Upload) error

func (*Session) UnusedOutputsCount

func (s *Session) UnusedOutputsCount() int

func (*Session) UpdateDataset

func (s *Session) UpdateDataset(dataset *upload.Upload) error

Jump to

Keyboard shortcuts

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