Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore interface { Ping(ctx context.Context) error Close(ctx context.Context) error DropDatabase(ctx context.Context) error Migrate(ctx context.Context, version string, automigrate bool) error MigrateLatest(ctx context.Context) error GetMapping(ctx context.Context, tenantID string) (*model.Mapping, error) UpdateAndGetMapping(ctx context.Context, tenantID string, inventory []string) ( *model.Mapping, error) }
DataStore interface for DataStore services
type Store ¶
type Store interface { BulkIndexDeployments(ctx context.Context, deployments []*model.Deployment) error BulkIndexDevices(ctx context.Context, devices, removedDevices []*model.Device) error GetDevicesIndex(tid string) string GetDevicesRoutingKey(tid string) string GetDevicesIndexMapping(ctx context.Context, tid string) (map[string]interface{}, error) GetDeploymentsIndex(tid string) string GetDeploymentsRoutingKey(tid string) string GetDeploymentsIndexMapping(ctx context.Context, tid string) (map[string]interface{}, error) Migrate(ctx context.Context) error AggregateDevices(ctx context.Context, query model.Query) (model.M, error) AggregateDeployments(ctx context.Context, query model.Query) (model.M, error) SearchDevices(ctx context.Context, query model.Query) (model.M, error) SearchDeployments(ctx context.Context, query model.Query) (model.M, error) Ping(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.