-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathanalyticsindexprovider.go
19 lines (18 loc) · 1.21 KB
/
analyticsindexprovider.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package gocb
type analyticsIndexProvider interface {
CreateDataverse(dataverseName string, opts *CreateAnalyticsDataverseOptions) error
DropDataverse(dataverseName string, opts *DropAnalyticsDataverseOptions) error
CreateDataset(datasetName, bucketName string, opts *CreateAnalyticsDatasetOptions) error
DropDataset(datasetName string, opts *DropAnalyticsDatasetOptions) error
GetAllDatasets(opts *GetAllAnalyticsDatasetsOptions) ([]AnalyticsDataset, error)
CreateIndex(datasetName, indexName string, fields map[string]string, opts *CreateAnalyticsIndexOptions) error
DropIndex(datasetName, indexName string, opts *DropAnalyticsIndexOptions) error
GetAllIndexes(opts *GetAllAnalyticsIndexesOptions) ([]AnalyticsIndex, error)
ConnectLink(opts *ConnectAnalyticsLinkOptions) error
DisconnectLink(opts *DisconnectAnalyticsLinkOptions) error
GetPendingMutations(opts *GetPendingMutationsAnalyticsOptions) (map[string]map[string]int, error)
CreateLink(link AnalyticsLink, opts *CreateAnalyticsLinkOptions) error
ReplaceLink(link AnalyticsLink, opts *ReplaceAnalyticsLinkOptions) error
DropLink(linkName, dataverseName string, opts *DropAnalyticsLinkOptions) error
GetLinks(opts *GetAnalyticsLinksOptions) ([]AnalyticsLink, error)
}