Documentation ¶
Index ¶
- type AccessTarget
- type Agency
- func (_m *Agency) Connection() driver.Connection
- func (_m *Agency) ReadKey(ctx context.Context, key []string, value interface{}) error
- func (_m *Agency) RegisterChangeCallback(ctx context.Context, key []string, cbURL string) error
- func (_m *Agency) RemoveKey(ctx context.Context, key []string, condition ...agency.WriteCondition) error
- func (_m *Agency) RemoveKeyIfEqualTo(ctx context.Context, key []string, oldValue interface{}) error
- func (_m *Agency) UnregisterChangeCallback(ctx context.Context, key []string, cbURL string) error
- func (_m *Agency) WriteKey(ctx context.Context, key []string, value interface{}, ttl time.Duration, ...) error
- func (_m *Agency) WriteKeyIfEmpty(ctx context.Context, key []string, value interface{}, ttl time.Duration) error
- func (_m *Agency) WriteKeyIfEqualTo(ctx context.Context, key []string, newValue interface{}, oldValue interface{}, ...) error
- func (_m *Agency) WriteTransaction(ctx context.Context, transaction agency.Transaction) error
- type ArangoSearchAnalyzer
- func (_m *ArangoSearchAnalyzer) Database() driver.Database
- func (_m *ArangoSearchAnalyzer) Definition() driver.ArangoSearchAnalyzerDefinition
- func (_m *ArangoSearchAnalyzer) Name() string
- func (_m *ArangoSearchAnalyzer) Properties() driver.ArangoSearchAnalyzerProperties
- func (_m *ArangoSearchAnalyzer) Remove(ctx context.Context, force bool) error
- func (_m *ArangoSearchAnalyzer) Type() driver.ArangoSearchAnalyzerType
- func (_m *ArangoSearchAnalyzer) UniqueName() string
- type ArangoSearchView
- func (_m *ArangoSearchView) ArangoSearchView() (driver.ArangoSearchView, error)
- func (_m *ArangoSearchView) Database() driver.Database
- func (_m *ArangoSearchView) Name() string
- func (_m *ArangoSearchView) Properties(ctx context.Context) (driver.ArangoSearchViewProperties, error)
- func (_m *ArangoSearchView) Remove(ctx context.Context) error
- func (_m *ArangoSearchView) SetProperties(ctx context.Context, options driver.ArangoSearchViewProperties) error
- func (_m *ArangoSearchView) Type() driver.ViewType
- type Authentication
- type Batch
- type BodyBuilder
- func (_m *BodyBuilder) Clone() driver.BodyBuilder
- func (_m *BodyBuilder) GetBody() []byte
- func (_m *BodyBuilder) GetContentType() string
- func (_m *BodyBuilder) SetBody(body ...interface{}) error
- func (_m *BodyBuilder) SetBodyArray(bodyArray interface{}, mergeArray []map[string]interface{}) error
- func (_m *BodyBuilder) SetBodyImportArray(bodyArray interface{}) error
- type Client
- func (_m *Client) AccessibleDatabases(ctx context.Context) ([]driver.Database, error)
- func (_m *Client) Backup() driver.ClientBackup
- func (_m *Client) Cluster(ctx context.Context) (driver.Cluster, error)
- func (_m *Client) Connection() driver.Connection
- func (_m *Client) CreateDatabase(ctx context.Context, name string, options *driver.CreateDatabaseOptions) (driver.Database, error)
- func (_m *Client) CreateUser(ctx context.Context, name string, options *driver.UserOptions) (driver.User, error)
- func (_m *Client) Database(ctx context.Context, name string) (driver.Database, error)
- func (_m *Client) DatabaseExists(ctx context.Context, name string) (bool, error)
- func (_m *Client) Databases(ctx context.Context) ([]driver.Database, error)
- func (_m *Client) Foxx() driver.FoxxService
- func (_m *Client) Logs(ctx context.Context) (driver.ServerLogs, error)
- func (_m *Client) Replication() driver.Replication
- func (_m *Client) ServerID(ctx context.Context) (string, error)
- func (_m *Client) ServerMode(ctx context.Context) (driver.ServerMode, error)
- func (_m *Client) ServerRole(ctx context.Context) (driver.ServerRole, error)
- func (_m *Client) SetServerMode(ctx context.Context, mode driver.ServerMode) error
- func (_m *Client) Shutdown(ctx context.Context, removeFromCluster bool) error
- func (_m *Client) ShutdownInfoV2(ctx context.Context) (driver.ShutdownInfo, error)
- func (_m *Client) ShutdownV2(ctx context.Context, removeFromCluster bool, graceful bool) error
- func (_m *Client) Statistics(ctx context.Context) (driver.ServerStatistics, error)
- func (_m *Client) SynchronizeEndpoints(ctx context.Context) error
- func (_m *Client) SynchronizeEndpoints2(ctx context.Context, dbname string) error
- func (_m *Client) User(ctx context.Context, name string) (driver.User, error)
- func (_m *Client) UserExists(ctx context.Context, name string) (bool, error)
- func (_m *Client) Users(ctx context.Context) ([]driver.User, error)
- func (_m *Client) Version(ctx context.Context) (driver.VersionInfo, error)
- type ClientAdminBackup
- type ClientBackup
- func (_m *ClientBackup) Abort(ctx context.Context, job driver.BackupTransferJobID) error
- func (_m *ClientBackup) Create(ctx context.Context, opt *driver.BackupCreateOptions) (driver.BackupID, driver.BackupCreateResponse, error)
- func (_m *ClientBackup) Delete(ctx context.Context, id driver.BackupID) error
- func (_m *ClientBackup) Download(ctx context.Context, id driver.BackupID, remoteRepository string, ...) (driver.BackupTransferJobID, error)
- func (_m *ClientBackup) List(ctx context.Context, opt *driver.BackupListOptions) (map[driver.BackupID]driver.BackupMeta, error)
- func (_m *ClientBackup) Progress(ctx context.Context, job driver.BackupTransferJobID) (driver.BackupTransferProgressReport, error)
- func (_m *ClientBackup) Restore(ctx context.Context, id driver.BackupID, opt *driver.BackupRestoreOptions) error
- func (_m *ClientBackup) Upload(ctx context.Context, id driver.BackupID, remoteRepository string, ...) (driver.BackupTransferJobID, error)
- type ClientCluster
- type ClientDatabases
- func (_m *ClientDatabases) AccessibleDatabases(ctx context.Context) ([]driver.Database, error)
- func (_m *ClientDatabases) CreateDatabase(ctx context.Context, name string, options *driver.CreateDatabaseOptions) (driver.Database, error)
- func (_m *ClientDatabases) Database(ctx context.Context, name string) (driver.Database, error)
- func (_m *ClientDatabases) DatabaseExists(ctx context.Context, name string) (bool, error)
- func (_m *ClientDatabases) Databases(ctx context.Context) ([]driver.Database, error)
- type ClientFoxx
- type ClientReplication
- type ClientServerAdmin
- func (_m *ClientServerAdmin) Logs(ctx context.Context) (driver.ServerLogs, error)
- func (_m *ClientServerAdmin) ServerMode(ctx context.Context) (driver.ServerMode, error)
- func (_m *ClientServerAdmin) SetServerMode(ctx context.Context, mode driver.ServerMode) error
- func (_m *ClientServerAdmin) Shutdown(ctx context.Context, removeFromCluster bool) error
- func (_m *ClientServerAdmin) ShutdownInfoV2(ctx context.Context) (driver.ShutdownInfo, error)
- func (_m *ClientServerAdmin) ShutdownV2(ctx context.Context, removeFromCluster bool, graceful bool) error
- func (_m *ClientServerAdmin) Statistics(ctx context.Context) (driver.ServerStatistics, error)
- type ClientServerInfo
- type ClientUsers
- func (_m *ClientUsers) CreateUser(ctx context.Context, name string, options *driver.UserOptions) (driver.User, error)
- func (_m *ClientUsers) User(ctx context.Context, name string) (driver.User, error)
- func (_m *ClientUsers) UserExists(ctx context.Context, name string) (bool, error)
- func (_m *ClientUsers) Users(ctx context.Context) ([]driver.User, error)
- type Cluster
- func (_m *Cluster) CleanOutServer(ctx context.Context, serverID string) error
- func (_m *Cluster) DatabaseInventory(ctx context.Context, db driver.Database) (driver.DatabaseInventory, error)
- func (_m *Cluster) Health(ctx context.Context) (driver.ClusterHealth, error)
- func (_m *Cluster) IsCleanedOut(ctx context.Context, serverID string) (bool, error)
- func (_m *Cluster) MoveShard(ctx context.Context, col driver.Collection, shard driver.ShardID, ...) error
- func (_m *Cluster) RemoveServer(ctx context.Context, serverID driver.ServerID) error
- func (_m *Cluster) ResignServer(ctx context.Context, serverID string) error
- type Collection
- func (_m *Collection) Count(ctx context.Context) (int64, error)
- func (_m *Collection) CreateDocument(ctx context.Context, document interface{}) (driver.DocumentMeta, error)
- func (_m *Collection) CreateDocuments(ctx context.Context, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- func (_m *Collection) Database() driver.Database
- func (_m *Collection) DocumentExists(ctx context.Context, key string) (bool, error)
- func (_m *Collection) EnsureFullTextIndex(ctx context.Context, fields []string, ...) (driver.Index, bool, error)
- func (_m *Collection) EnsureGeoIndex(ctx context.Context, fields []string, options *driver.EnsureGeoIndexOptions) (driver.Index, bool, error)
- func (_m *Collection) EnsureHashIndex(ctx context.Context, fields []string, options *driver.EnsureHashIndexOptions) (driver.Index, bool, error)
- func (_m *Collection) EnsurePersistentIndex(ctx context.Context, fields []string, ...) (driver.Index, bool, error)
- func (_m *Collection) EnsureSkipListIndex(ctx context.Context, fields []string, ...) (driver.Index, bool, error)
- func (_m *Collection) EnsureTTLIndex(ctx context.Context, field string, expireAfter int, ...) (driver.Index, bool, error)
- func (_m *Collection) EnsureZKDIndex(ctx context.Context, fields []string, options *driver.EnsureZKDIndexOptions) (driver.Index, bool, error)
- func (_m *Collection) ImportDocuments(ctx context.Context, documents interface{}, ...) (driver.ImportDocumentStatistics, error)
- func (_m *Collection) Index(ctx context.Context, name string) (driver.Index, error)
- func (_m *Collection) IndexExists(ctx context.Context, name string) (bool, error)
- func (_m *Collection) Indexes(ctx context.Context) ([]driver.Index, error)
- func (_m *Collection) Load(ctx context.Context) error
- func (_m *Collection) Name() string
- func (_m *Collection) Properties(ctx context.Context) (driver.CollectionProperties, error)
- func (_m *Collection) ReadDocument(ctx context.Context, key string, result interface{}) (driver.DocumentMeta, error)
- func (_m *Collection) ReadDocuments(ctx context.Context, keys []string, results interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- func (_m *Collection) Remove(ctx context.Context) error
- func (_m *Collection) RemoveDocument(ctx context.Context, key string) (driver.DocumentMeta, error)
- func (_m *Collection) RemoveDocuments(ctx context.Context, keys []string) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- func (_m *Collection) ReplaceDocument(ctx context.Context, key string, document interface{}) (driver.DocumentMeta, error)
- func (_m *Collection) ReplaceDocuments(ctx context.Context, keys []string, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- func (_m *Collection) Revision(ctx context.Context) (string, error)
- func (_m *Collection) SetProperties(ctx context.Context, options driver.SetCollectionPropertiesOptions) error
- func (_m *Collection) Shards(ctx context.Context, details bool) (driver.CollectionShards, error)
- func (_m *Collection) Statistics(ctx context.Context) (driver.CollectionStatistics, error)
- func (_m *Collection) Status(ctx context.Context) (driver.CollectionStatus, error)
- func (_m *Collection) Truncate(ctx context.Context) error
- func (_m *Collection) Unload(ctx context.Context) error
- func (_m *Collection) UpdateDocument(ctx context.Context, key string, update interface{}) (driver.DocumentMeta, error)
- func (_m *Collection) UpdateDocuments(ctx context.Context, keys []string, updates interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- type CollectionDocuments
- func (_m *CollectionDocuments) CreateDocument(ctx context.Context, document interface{}) (driver.DocumentMeta, error)
- func (_m *CollectionDocuments) CreateDocuments(ctx context.Context, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- func (_m *CollectionDocuments) DocumentExists(ctx context.Context, key string) (bool, error)
- func (_m *CollectionDocuments) ImportDocuments(ctx context.Context, documents interface{}, ...) (driver.ImportDocumentStatistics, error)
- func (_m *CollectionDocuments) ReadDocument(ctx context.Context, key string, result interface{}) (driver.DocumentMeta, error)
- func (_m *CollectionDocuments) ReadDocuments(ctx context.Context, keys []string, results interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- func (_m *CollectionDocuments) RemoveDocument(ctx context.Context, key string) (driver.DocumentMeta, error)
- func (_m *CollectionDocuments) RemoveDocuments(ctx context.Context, keys []string) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- func (_m *CollectionDocuments) ReplaceDocument(ctx context.Context, key string, document interface{}) (driver.DocumentMeta, error)
- func (_m *CollectionDocuments) ReplaceDocuments(ctx context.Context, keys []string, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- func (_m *CollectionDocuments) UpdateDocument(ctx context.Context, key string, update interface{}) (driver.DocumentMeta, error)
- func (_m *CollectionDocuments) UpdateDocuments(ctx context.Context, keys []string, updates interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
- type CollectionIndexes
- func (_m *CollectionIndexes) EnsureFullTextIndex(ctx context.Context, fields []string, ...) (driver.Index, bool, error)
- func (_m *CollectionIndexes) EnsureGeoIndex(ctx context.Context, fields []string, options *driver.EnsureGeoIndexOptions) (driver.Index, bool, error)
- func (_m *CollectionIndexes) EnsureHashIndex(ctx context.Context, fields []string, options *driver.EnsureHashIndexOptions) (driver.Index, bool, error)
- func (_m *CollectionIndexes) EnsurePersistentIndex(ctx context.Context, fields []string, ...) (driver.Index, bool, error)
- func (_m *CollectionIndexes) EnsureSkipListIndex(ctx context.Context, fields []string, ...) (driver.Index, bool, error)
- func (_m *CollectionIndexes) EnsureTTLIndex(ctx context.Context, field string, expireAfter int, ...) (driver.Index, bool, error)
- func (_m *CollectionIndexes) EnsureZKDIndex(ctx context.Context, fields []string, options *driver.EnsureZKDIndexOptions) (driver.Index, bool, error)
- func (_m *CollectionIndexes) Index(ctx context.Context, name string) (driver.Index, error)
- func (_m *CollectionIndexes) IndexExists(ctx context.Context, name string) (bool, error)
- func (_m *CollectionIndexes) Indexes(ctx context.Context) ([]driver.Index, error)
- type Connection
- func (_m *Connection) Do(ctx context.Context, req driver.Request) (driver.Response, error)
- func (_m *Connection) Endpoints() []string
- func (_m *Connection) NewRequest(method string, path string) (driver.Request, error)
- func (_m *Connection) Protocols() driver.ProtocolSet
- func (_m *Connection) SetAuthentication(_a0 driver.Authentication) (driver.Connection, error)
- func (_m *Connection) Unmarshal(data driver.RawObject, result interface{}) error
- func (_m *Connection) UpdateEndpoints(endpoints []string) error
- type Cursor
- type Database
- func (_m *Database) AbortTransaction(ctx context.Context, tid driver.TransactionID, ...) error
- func (_m *Database) Analyzer(ctx context.Context, name string) (driver.ArangoSearchAnalyzer, error)
- func (_m *Database) Analyzers(ctx context.Context) ([]driver.ArangoSearchAnalyzer, error)
- func (_m *Database) BeginTransaction(ctx context.Context, cols driver.TransactionCollections, ...) (driver.TransactionID, error)
- func (_m *Database) Collection(ctx context.Context, name string) (driver.Collection, error)
- func (_m *Database) CollectionExists(ctx context.Context, name string) (bool, error)
- func (_m *Database) Collections(ctx context.Context) ([]driver.Collection, error)
- func (_m *Database) CommitTransaction(ctx context.Context, tid driver.TransactionID, ...) error
- func (_m *Database) CreateArangoSearchView(ctx context.Context, name string, options *driver.ArangoSearchViewProperties) (driver.ArangoSearchView, error)
- func (_m *Database) CreateCollection(ctx context.Context, name string, options *driver.CreateCollectionOptions) (driver.Collection, error)
- func (_m *Database) CreateGraph(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)
- func (_m *Database) CreateGraphV2(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)
- func (_m *Database) EngineInfo(ctx context.Context) (driver.EngineInfo, error)
- func (_m *Database) EnsureAnalyzer(ctx context.Context, analyzer driver.ArangoSearchAnalyzerDefinition) (bool, driver.ArangoSearchAnalyzer, error)
- func (_m *Database) Graph(ctx context.Context, name string) (driver.Graph, error)
- func (_m *Database) GraphExists(ctx context.Context, name string) (bool, error)
- func (_m *Database) Graphs(ctx context.Context) ([]driver.Graph, error)
- func (_m *Database) Info(ctx context.Context) (driver.DatabaseInfo, error)
- func (_m *Database) Name() string
- func (_m *Database) Query(ctx context.Context, query string, bindVars map[string]interface{}) (driver.Cursor, error)
- func (_m *Database) Remove(ctx context.Context) error
- func (_m *Database) Transaction(ctx context.Context, action string, options *driver.TransactionOptions) (interface{}, error)
- func (_m *Database) TransactionStatus(ctx context.Context, tid driver.TransactionID) (driver.TransactionStatusRecord, error)
- func (_m *Database) ValidateQuery(ctx context.Context, query string) error
- func (_m *Database) View(ctx context.Context, name string) (driver.View, error)
- func (_m *Database) ViewExists(ctx context.Context, name string) (bool, error)
- func (_m *Database) Views(ctx context.Context) ([]driver.View, error)
- type DatabaseArangoSearchAnalyzers
- func (_m *DatabaseArangoSearchAnalyzers) Analyzer(ctx context.Context, name string) (driver.ArangoSearchAnalyzer, error)
- func (_m *DatabaseArangoSearchAnalyzers) Analyzers(ctx context.Context) ([]driver.ArangoSearchAnalyzer, error)
- func (_m *DatabaseArangoSearchAnalyzers) EnsureAnalyzer(ctx context.Context, analyzer driver.ArangoSearchAnalyzerDefinition) (bool, driver.ArangoSearchAnalyzer, error)
- type DatabaseCollections
- func (_m *DatabaseCollections) Collection(ctx context.Context, name string) (driver.Collection, error)
- func (_m *DatabaseCollections) CollectionExists(ctx context.Context, name string) (bool, error)
- func (_m *DatabaseCollections) Collections(ctx context.Context) ([]driver.Collection, error)
- func (_m *DatabaseCollections) CreateCollection(ctx context.Context, name string, options *driver.CreateCollectionOptions) (driver.Collection, error)
- type DatabaseGraphs
- func (_m *DatabaseGraphs) CreateGraph(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)
- func (_m *DatabaseGraphs) CreateGraphV2(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)
- func (_m *DatabaseGraphs) Graph(ctx context.Context, name string) (driver.Graph, error)
- func (_m *DatabaseGraphs) GraphExists(ctx context.Context, name string) (bool, error)
- func (_m *DatabaseGraphs) Graphs(ctx context.Context) ([]driver.Graph, error)
- type DatabaseStreamingTransactions
- func (_m *DatabaseStreamingTransactions) AbortTransaction(ctx context.Context, tid driver.TransactionID, ...) error
- func (_m *DatabaseStreamingTransactions) BeginTransaction(ctx context.Context, cols driver.TransactionCollections, ...) (driver.TransactionID, error)
- func (_m *DatabaseStreamingTransactions) CommitTransaction(ctx context.Context, tid driver.TransactionID, ...) error
- func (_m *DatabaseStreamingTransactions) TransactionStatus(ctx context.Context, tid driver.TransactionID) (driver.TransactionStatusRecord, error)
- type DatabaseViews
- func (_m *DatabaseViews) CreateArangoSearchView(ctx context.Context, name string, options *driver.ArangoSearchViewProperties) (driver.ArangoSearchView, error)
- func (_m *DatabaseViews) View(ctx context.Context, name string) (driver.View, error)
- func (_m *DatabaseViews) ViewExists(ctx context.Context, name string) (bool, error)
- func (_m *DatabaseViews) Views(ctx context.Context) ([]driver.View, error)
- type FoxxService
- type Graph
- func (_m *Graph) CreateEdgeCollection(ctx context.Context, collection string, constraints driver.VertexConstraints) (driver.Collection, error)
- func (_m *Graph) CreateEdgeCollectionWithOptions(ctx context.Context, collection string, constraints driver.VertexConstraints, ...) (driver.Collection, error)
- func (_m *Graph) CreateVertexCollection(ctx context.Context, collection string) (driver.Collection, error)
- func (_m *Graph) CreateVertexCollectionWithOptions(ctx context.Context, collection string, ...) (driver.Collection, error)
- func (_m *Graph) EdgeCollection(ctx context.Context, name string) (driver.Collection, driver.VertexConstraints, error)
- func (_m *Graph) EdgeCollectionExists(ctx context.Context, name string) (bool, error)
- func (_m *Graph) EdgeCollections(ctx context.Context) ([]driver.Collection, []driver.VertexConstraints, error)
- func (_m *Graph) EdgeDefinitions() []driver.EdgeDefinition
- func (_m *Graph) ID() string
- func (_m *Graph) IsDisjoint() bool
- func (_m *Graph) IsSatellite() bool
- func (_m *Graph) IsSmart() bool
- func (_m *Graph) Key() driver.DocumentID
- func (_m *Graph) MinReplicationFactor() int
- func (_m *Graph) Name() string
- func (_m *Graph) NumberOfShards() int
- func (_m *Graph) OrphanCollections() []string
- func (_m *Graph) Remove(ctx context.Context) error
- func (_m *Graph) ReplicationFactor() int
- func (_m *Graph) Rev() string
- func (_m *Graph) SetVertexConstraints(ctx context.Context, collection string, constraints driver.VertexConstraints) error
- func (_m *Graph) SmartGraphAttribute() string
- func (_m *Graph) VertexCollection(ctx context.Context, name string) (driver.Collection, error)
- func (_m *Graph) VertexCollectionExists(ctx context.Context, name string) (bool, error)
- func (_m *Graph) VertexCollections(ctx context.Context) ([]driver.Collection, error)
- func (_m *Graph) WriteConcern() int
- type GraphEdgeCollections
- func (_m *GraphEdgeCollections) CreateEdgeCollection(ctx context.Context, collection string, constraints driver.VertexConstraints) (driver.Collection, error)
- func (_m *GraphEdgeCollections) CreateEdgeCollectionWithOptions(ctx context.Context, collection string, constraints driver.VertexConstraints, ...) (driver.Collection, error)
- func (_m *GraphEdgeCollections) EdgeCollection(ctx context.Context, name string) (driver.Collection, driver.VertexConstraints, error)
- func (_m *GraphEdgeCollections) EdgeCollectionExists(ctx context.Context, name string) (bool, error)
- func (_m *GraphEdgeCollections) EdgeCollections(ctx context.Context) ([]driver.Collection, []driver.VertexConstraints, error)
- func (_m *GraphEdgeCollections) SetVertexConstraints(ctx context.Context, collection string, constraints driver.VertexConstraints) error
- type GraphVertexCollections
- func (_m *GraphVertexCollections) CreateVertexCollection(ctx context.Context, collection string) (driver.Collection, error)
- func (_m *GraphVertexCollections) CreateVertexCollectionWithOptions(ctx context.Context, collection string, ...) (driver.Collection, error)
- func (_m *GraphVertexCollections) VertexCollection(ctx context.Context, name string) (driver.Collection, error)
- func (_m *GraphVertexCollections) VertexCollectionExists(ctx context.Context, name string) (bool, error)
- func (_m *GraphVertexCollections) VertexCollections(ctx context.Context) ([]driver.Collection, error)
- type Index
- func (_m *Index) Deduplicate() bool
- func (_m *Index) Estimates() bool
- func (_m *Index) ExpireAfter() int
- func (_m *Index) Fields() []string
- func (_m *Index) GeoJSON() bool
- func (_m *Index) ID() string
- func (_m *Index) InBackground() bool
- func (_m *Index) MinLength() int
- func (_m *Index) Name() string
- func (_m *Index) Remove(ctx context.Context) error
- func (_m *Index) Sparse() bool
- func (_m *Index) Type() driver.IndexType
- func (_m *Index) Unique() bool
- func (_m *Index) UserName() string
- type KeyChanger
- type KeyConditioner
- type Lock
- type Logger
- type QueryExtra
- type QueryStatistics
- func (_m *QueryStatistics) ExecutionTime() time.Duration
- func (_m *QueryStatistics) Filtered() int64
- func (_m *QueryStatistics) FullCount() int64
- func (_m *QueryStatistics) ScannedFull() int64
- func (_m *QueryStatistics) ScannedIndex() int64
- func (_m *QueryStatistics) WritesExecuted() int64
- func (_m *QueryStatistics) WritesIgnored() int64
- type Replication
- func (_m *Replication) CreateBatch(ctx context.Context, db driver.Database, serverID int64, ttl time.Duration) (driver.Batch, error)
- func (_m *Replication) DatabaseInventory(ctx context.Context, db driver.Database) (driver.DatabaseInventory, error)
- func (_m *Replication) GetRevisionDocuments(ctx context.Context, db driver.Database, batchId string, collection string, ...) ([]map[string]interface{}, error)
- func (_m *Replication) GetRevisionTree(ctx context.Context, db driver.Database, batchId string, collection string) (driver.RevisionTree, error)
- func (_m *Replication) GetRevisionsByRanges(ctx context.Context, db driver.Database, batchId string, collection string, ...) (driver.RevisionRanges, error)
- type Request
- func (_m *Request) Clone() driver.Request
- func (_m *Request) Method() string
- func (_m *Request) Path() string
- func (_m *Request) SetBody(body ...interface{}) (driver.Request, error)
- func (_m *Request) SetBodyArray(bodyArray interface{}, mergeArray []map[string]interface{}) (driver.Request, error)
- func (_m *Request) SetBodyImportArray(bodyArray interface{}) (driver.Request, error)
- func (_m *Request) SetHeader(key string, value string) driver.Request
- func (_m *Request) SetQuery(key string, value string) driver.Request
- func (_m *Request) Written() bool
- type RequestRepeater
- type Response
- func (_m *Response) CheckStatus(validStatusCodes ...int) error
- func (_m *Response) Endpoint() string
- func (_m *Response) Header(key string) string
- func (_m *Response) ParseArrayBody() ([]driver.Response, error)
- func (_m *Response) ParseBody(field string, result interface{}) error
- func (_m *Response) StatusCode() int
- type ServerConnectionBuilder
- type User
- func (_m *User) AccessibleDatabases(ctx context.Context) ([]driver.Database, error)
- func (_m *User) Extra(result interface{}) error
- func (_m *User) GetCollectionAccess(ctx context.Context, col driver.AccessTarget) (driver.Grant, error)
- func (_m *User) GetDatabaseAccess(ctx context.Context, db driver.Database) (driver.Grant, error)
- func (_m *User) GrantReadWriteAccess(ctx context.Context, db driver.Database) error
- func (_m *User) IsActive() bool
- func (_m *User) IsPasswordChangeNeeded() bool
- func (_m *User) Name() string
- func (_m *User) Remove(ctx context.Context) error
- func (_m *User) RemoveCollectionAccess(ctx context.Context, col driver.AccessTarget) error
- func (_m *User) RemoveDatabaseAccess(ctx context.Context, db driver.Database) error
- func (_m *User) Replace(ctx context.Context, options driver.UserOptions) error
- func (_m *User) RevokeAccess(ctx context.Context, db driver.Database) error
- func (_m *User) SetCollectionAccess(ctx context.Context, col driver.AccessTarget, access driver.Grant) error
- func (_m *User) SetDatabaseAccess(ctx context.Context, db driver.Database, access driver.Grant) error
- func (_m *User) Update(ctx context.Context, options driver.UserOptions) error
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTarget ¶
AccessTarget is an autogenerated mock type for the AccessTarget type
func NewAccessTarget ¶
func NewAccessTarget(t mockConstructorTestingTNewAccessTarget) *AccessTarget
NewAccessTarget creates a new instance of AccessTarget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccessTarget) Name ¶
func (_m *AccessTarget) Name() string
Name provides a mock function with given fields:
type Agency ¶
Agency is an autogenerated mock type for the Agency type
func NewAgency ¶
func NewAgency(t mockConstructorTestingTNewAgency) *Agency
NewAgency creates a new instance of Agency. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Agency) Connection ¶
func (_m *Agency) Connection() driver.Connection
Connection provides a mock function with given fields:
func (*Agency) RegisterChangeCallback ¶
RegisterChangeCallback provides a mock function with given fields: ctx, key, cbURL
func (*Agency) RemoveKey ¶
func (_m *Agency) RemoveKey(ctx context.Context, key []string, condition ...agency.WriteCondition) error
RemoveKey provides a mock function with given fields: ctx, key, condition
func (*Agency) RemoveKeyIfEqualTo ¶
RemoveKeyIfEqualTo provides a mock function with given fields: ctx, key, oldValue
func (*Agency) UnregisterChangeCallback ¶
UnregisterChangeCallback provides a mock function with given fields: ctx, key, cbURL
func (*Agency) WriteKey ¶
func (_m *Agency) WriteKey(ctx context.Context, key []string, value interface{}, ttl time.Duration, condition ...agency.WriteCondition) error
WriteKey provides a mock function with given fields: ctx, key, value, ttl, condition
func (*Agency) WriteKeyIfEmpty ¶
func (_m *Agency) WriteKeyIfEmpty(ctx context.Context, key []string, value interface{}, ttl time.Duration) error
WriteKeyIfEmpty provides a mock function with given fields: ctx, key, value, ttl
func (*Agency) WriteKeyIfEqualTo ¶
func (_m *Agency) WriteKeyIfEqualTo(ctx context.Context, key []string, newValue interface{}, oldValue interface{}, ttl time.Duration) error
WriteKeyIfEqualTo provides a mock function with given fields: ctx, key, newValue, oldValue, ttl
func (*Agency) WriteTransaction ¶
WriteTransaction provides a mock function with given fields: ctx, transaction
type ArangoSearchAnalyzer ¶
ArangoSearchAnalyzer is an autogenerated mock type for the ArangoSearchAnalyzer type
func NewArangoSearchAnalyzer ¶
func NewArangoSearchAnalyzer(t mockConstructorTestingTNewArangoSearchAnalyzer) *ArangoSearchAnalyzer
NewArangoSearchAnalyzer creates a new instance of ArangoSearchAnalyzer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ArangoSearchAnalyzer) Database ¶
func (_m *ArangoSearchAnalyzer) Database() driver.Database
Database provides a mock function with given fields:
func (*ArangoSearchAnalyzer) Definition ¶
func (_m *ArangoSearchAnalyzer) Definition() driver.ArangoSearchAnalyzerDefinition
Definition provides a mock function with given fields:
func (*ArangoSearchAnalyzer) Name ¶
func (_m *ArangoSearchAnalyzer) Name() string
Name provides a mock function with given fields:
func (*ArangoSearchAnalyzer) Properties ¶
func (_m *ArangoSearchAnalyzer) Properties() driver.ArangoSearchAnalyzerProperties
Properties provides a mock function with given fields:
func (*ArangoSearchAnalyzer) Remove ¶
func (_m *ArangoSearchAnalyzer) Remove(ctx context.Context, force bool) error
Remove provides a mock function with given fields: ctx, force
func (*ArangoSearchAnalyzer) Type ¶
func (_m *ArangoSearchAnalyzer) Type() driver.ArangoSearchAnalyzerType
Type provides a mock function with given fields:
func (*ArangoSearchAnalyzer) UniqueName ¶
func (_m *ArangoSearchAnalyzer) UniqueName() string
UniqueName provides a mock function with given fields:
type ArangoSearchView ¶
ArangoSearchView is an autogenerated mock type for the ArangoSearchView type
func NewArangoSearchView ¶
func NewArangoSearchView(t mockConstructorTestingTNewArangoSearchView) *ArangoSearchView
NewArangoSearchView creates a new instance of ArangoSearchView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ArangoSearchView) ArangoSearchView ¶
func (_m *ArangoSearchView) ArangoSearchView() (driver.ArangoSearchView, error)
ArangoSearchView provides a mock function with given fields:
func (*ArangoSearchView) Database ¶
func (_m *ArangoSearchView) Database() driver.Database
Database provides a mock function with given fields:
func (*ArangoSearchView) Name ¶
func (_m *ArangoSearchView) Name() string
Name provides a mock function with given fields:
func (*ArangoSearchView) Properties ¶
func (_m *ArangoSearchView) Properties(ctx context.Context) (driver.ArangoSearchViewProperties, error)
Properties provides a mock function with given fields: ctx
func (*ArangoSearchView) Remove ¶
func (_m *ArangoSearchView) Remove(ctx context.Context) error
Remove provides a mock function with given fields: ctx
func (*ArangoSearchView) SetProperties ¶
func (_m *ArangoSearchView) SetProperties(ctx context.Context, options driver.ArangoSearchViewProperties) error
SetProperties provides a mock function with given fields: ctx, options
func (*ArangoSearchView) Type ¶
func (_m *ArangoSearchView) Type() driver.ViewType
Type provides a mock function with given fields:
type Authentication ¶
Authentication is an autogenerated mock type for the Authentication type
func NewAuthentication ¶
func NewAuthentication(t mockConstructorTestingTNewAuthentication) *Authentication
NewAuthentication creates a new instance of Authentication. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Authentication) Get ¶
func (_m *Authentication) Get(property string) string
Get provides a mock function with given fields: property
func (*Authentication) Type ¶
func (_m *Authentication) Type() driver.AuthenticationType
Type provides a mock function with given fields:
type Batch ¶
Batch is an autogenerated mock type for the Batch type
func NewBatch ¶
func NewBatch(t mockConstructorTestingTNewBatch) *Batch
NewBatch creates a new instance of Batch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type BodyBuilder ¶
BodyBuilder is an autogenerated mock type for the BodyBuilder type
func NewBodyBuilder ¶
func NewBodyBuilder(t mockConstructorTestingTNewBodyBuilder) *BodyBuilder
NewBodyBuilder creates a new instance of BodyBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BodyBuilder) Clone ¶
func (_m *BodyBuilder) Clone() driver.BodyBuilder
Clone provides a mock function with given fields:
func (*BodyBuilder) GetBody ¶
func (_m *BodyBuilder) GetBody() []byte
GetBody provides a mock function with given fields:
func (*BodyBuilder) GetContentType ¶
func (_m *BodyBuilder) GetContentType() string
GetContentType provides a mock function with given fields:
func (*BodyBuilder) SetBody ¶
func (_m *BodyBuilder) SetBody(body ...interface{}) error
SetBody provides a mock function with given fields: body
func (*BodyBuilder) SetBodyArray ¶
func (_m *BodyBuilder) SetBodyArray(bodyArray interface{}, mergeArray []map[string]interface{}) error
SetBodyArray provides a mock function with given fields: bodyArray, mergeArray
func (*BodyBuilder) SetBodyImportArray ¶
func (_m *BodyBuilder) SetBodyImportArray(bodyArray interface{}) error
SetBodyImportArray provides a mock function with given fields: bodyArray
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) AccessibleDatabases ¶
AccessibleDatabases provides a mock function with given fields: ctx
func (*Client) Backup ¶
func (_m *Client) Backup() driver.ClientBackup
Backup provides a mock function with given fields:
func (*Client) Connection ¶
func (_m *Client) Connection() driver.Connection
Connection provides a mock function with given fields:
func (*Client) CreateDatabase ¶
func (_m *Client) CreateDatabase(ctx context.Context, name string, options *driver.CreateDatabaseOptions) (driver.Database, error)
CreateDatabase provides a mock function with given fields: ctx, name, options
func (*Client) CreateUser ¶
func (_m *Client) CreateUser(ctx context.Context, name string, options *driver.UserOptions) (driver.User, error)
CreateUser provides a mock function with given fields: ctx, name, options
func (*Client) DatabaseExists ¶
DatabaseExists provides a mock function with given fields: ctx, name
func (*Client) Foxx ¶
func (_m *Client) Foxx() driver.FoxxService
Foxx provides a mock function with given fields:
func (*Client) Replication ¶
func (_m *Client) Replication() driver.Replication
Replication provides a mock function with given fields:
func (*Client) ServerMode ¶
ServerMode provides a mock function with given fields: ctx
func (*Client) ServerRole ¶
ServerRole provides a mock function with given fields: ctx
func (*Client) SetServerMode ¶
SetServerMode provides a mock function with given fields: ctx, mode
func (*Client) Shutdown ¶
Shutdown provides a mock function with given fields: ctx, removeFromCluster
func (*Client) ShutdownInfoV2 ¶
ShutdownInfoV2 provides a mock function with given fields: ctx
func (*Client) ShutdownV2 ¶
ShutdownV2 provides a mock function with given fields: ctx, removeFromCluster, graceful
func (*Client) Statistics ¶
Statistics provides a mock function with given fields: ctx
func (*Client) SynchronizeEndpoints ¶
SynchronizeEndpoints provides a mock function with given fields: ctx
func (*Client) SynchronizeEndpoints2 ¶
SynchronizeEndpoints2 provides a mock function with given fields: ctx, dbname
func (*Client) UserExists ¶
UserExists provides a mock function with given fields: ctx, name
type ClientAdminBackup ¶
ClientAdminBackup is an autogenerated mock type for the ClientAdminBackup type
func NewClientAdminBackup ¶
func NewClientAdminBackup(t mockConstructorTestingTNewClientAdminBackup) *ClientAdminBackup
NewClientAdminBackup creates a new instance of ClientAdminBackup. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientAdminBackup) Backup ¶
func (_m *ClientAdminBackup) Backup() driver.ClientBackup
Backup provides a mock function with given fields:
type ClientBackup ¶
ClientBackup is an autogenerated mock type for the ClientBackup type
func NewClientBackup ¶
func NewClientBackup(t mockConstructorTestingTNewClientBackup) *ClientBackup
NewClientBackup creates a new instance of ClientBackup. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientBackup) Abort ¶
func (_m *ClientBackup) Abort(ctx context.Context, job driver.BackupTransferJobID) error
Abort provides a mock function with given fields: ctx, job
func (*ClientBackup) Create ¶
func (_m *ClientBackup) Create(ctx context.Context, opt *driver.BackupCreateOptions) (driver.BackupID, driver.BackupCreateResponse, error)
Create provides a mock function with given fields: ctx, opt
func (*ClientBackup) Download ¶
func (_m *ClientBackup) Download(ctx context.Context, id driver.BackupID, remoteRepository string, config interface{}) (driver.BackupTransferJobID, error)
Download provides a mock function with given fields: ctx, id, remoteRepository, config
func (*ClientBackup) List ¶
func (_m *ClientBackup) List(ctx context.Context, opt *driver.BackupListOptions) (map[driver.BackupID]driver.BackupMeta, error)
List provides a mock function with given fields: ctx, opt
func (*ClientBackup) Progress ¶
func (_m *ClientBackup) Progress(ctx context.Context, job driver.BackupTransferJobID) (driver.BackupTransferProgressReport, error)
Progress provides a mock function with given fields: ctx, job
func (*ClientBackup) Restore ¶
func (_m *ClientBackup) Restore(ctx context.Context, id driver.BackupID, opt *driver.BackupRestoreOptions) error
Restore provides a mock function with given fields: ctx, id, opt
type ClientCluster ¶
ClientCluster is an autogenerated mock type for the ClientCluster type
func NewClientCluster ¶
func NewClientCluster(t mockConstructorTestingTNewClientCluster) *ClientCluster
NewClientCluster creates a new instance of ClientCluster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ClientDatabases ¶
ClientDatabases is an autogenerated mock type for the ClientDatabases type
func NewClientDatabases ¶
func NewClientDatabases(t mockConstructorTestingTNewClientDatabases) *ClientDatabases
NewClientDatabases creates a new instance of ClientDatabases. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientDatabases) AccessibleDatabases ¶
AccessibleDatabases provides a mock function with given fields: ctx
func (*ClientDatabases) CreateDatabase ¶
func (_m *ClientDatabases) CreateDatabase(ctx context.Context, name string, options *driver.CreateDatabaseOptions) (driver.Database, error)
CreateDatabase provides a mock function with given fields: ctx, name, options
func (*ClientDatabases) DatabaseExists ¶
DatabaseExists provides a mock function with given fields: ctx, name
type ClientFoxx ¶
ClientFoxx is an autogenerated mock type for the ClientFoxx type
func NewClientFoxx ¶
func NewClientFoxx(t mockConstructorTestingTNewClientFoxx) *ClientFoxx
NewClientFoxx creates a new instance of ClientFoxx. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientFoxx) Foxx ¶
func (_m *ClientFoxx) Foxx() driver.FoxxService
Foxx provides a mock function with given fields:
type ClientReplication ¶
ClientReplication is an autogenerated mock type for the ClientReplication type
func NewClientReplication ¶
func NewClientReplication(t mockConstructorTestingTNewClientReplication) *ClientReplication
NewClientReplication creates a new instance of ClientReplication. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientReplication) Replication ¶
func (_m *ClientReplication) Replication() driver.Replication
Replication provides a mock function with given fields:
type ClientServerAdmin ¶
ClientServerAdmin is an autogenerated mock type for the ClientServerAdmin type
func NewClientServerAdmin ¶
func NewClientServerAdmin(t mockConstructorTestingTNewClientServerAdmin) *ClientServerAdmin
NewClientServerAdmin creates a new instance of ClientServerAdmin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientServerAdmin) Logs ¶
func (_m *ClientServerAdmin) Logs(ctx context.Context) (driver.ServerLogs, error)
Logs provides a mock function with given fields: ctx
func (*ClientServerAdmin) ServerMode ¶
func (_m *ClientServerAdmin) ServerMode(ctx context.Context) (driver.ServerMode, error)
ServerMode provides a mock function with given fields: ctx
func (*ClientServerAdmin) SetServerMode ¶
func (_m *ClientServerAdmin) SetServerMode(ctx context.Context, mode driver.ServerMode) error
SetServerMode provides a mock function with given fields: ctx, mode
func (*ClientServerAdmin) Shutdown ¶
func (_m *ClientServerAdmin) Shutdown(ctx context.Context, removeFromCluster bool) error
Shutdown provides a mock function with given fields: ctx, removeFromCluster
func (*ClientServerAdmin) ShutdownInfoV2 ¶
func (_m *ClientServerAdmin) ShutdownInfoV2(ctx context.Context) (driver.ShutdownInfo, error)
ShutdownInfoV2 provides a mock function with given fields: ctx
func (*ClientServerAdmin) ShutdownV2 ¶
func (_m *ClientServerAdmin) ShutdownV2(ctx context.Context, removeFromCluster bool, graceful bool) error
ShutdownV2 provides a mock function with given fields: ctx, removeFromCluster, graceful
func (*ClientServerAdmin) Statistics ¶
func (_m *ClientServerAdmin) Statistics(ctx context.Context) (driver.ServerStatistics, error)
Statistics provides a mock function with given fields: ctx
type ClientServerInfo ¶
ClientServerInfo is an autogenerated mock type for the ClientServerInfo type
func NewClientServerInfo ¶
func NewClientServerInfo(t mockConstructorTestingTNewClientServerInfo) *ClientServerInfo
NewClientServerInfo creates a new instance of ClientServerInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientServerInfo) ServerID ¶
func (_m *ClientServerInfo) ServerID(ctx context.Context) (string, error)
ServerID provides a mock function with given fields: ctx
func (*ClientServerInfo) ServerRole ¶
func (_m *ClientServerInfo) ServerRole(ctx context.Context) (driver.ServerRole, error)
ServerRole provides a mock function with given fields: ctx
func (*ClientServerInfo) Version ¶
func (_m *ClientServerInfo) Version(ctx context.Context) (driver.VersionInfo, error)
Version provides a mock function with given fields: ctx
type ClientUsers ¶
ClientUsers is an autogenerated mock type for the ClientUsers type
func NewClientUsers ¶
func NewClientUsers(t mockConstructorTestingTNewClientUsers) *ClientUsers
NewClientUsers creates a new instance of ClientUsers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientUsers) CreateUser ¶
func (_m *ClientUsers) CreateUser(ctx context.Context, name string, options *driver.UserOptions) (driver.User, error)
CreateUser provides a mock function with given fields: ctx, name, options
func (*ClientUsers) UserExists ¶
UserExists provides a mock function with given fields: ctx, name
type Cluster ¶
Cluster is an autogenerated mock type for the Cluster type
func NewCluster ¶
func NewCluster(t mockConstructorTestingTNewCluster) *Cluster
NewCluster creates a new instance of Cluster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Cluster) CleanOutServer ¶
CleanOutServer provides a mock function with given fields: ctx, serverID
func (*Cluster) DatabaseInventory ¶
func (_m *Cluster) DatabaseInventory(ctx context.Context, db driver.Database) (driver.DatabaseInventory, error)
DatabaseInventory provides a mock function with given fields: ctx, db
func (*Cluster) IsCleanedOut ¶
IsCleanedOut provides a mock function with given fields: ctx, serverID
func (*Cluster) MoveShard ¶
func (_m *Cluster) MoveShard(ctx context.Context, col driver.Collection, shard driver.ShardID, fromServer driver.ServerID, toServer driver.ServerID) error
MoveShard provides a mock function with given fields: ctx, col, shard, fromServer, toServer
func (*Cluster) RemoveServer ¶
RemoveServer provides a mock function with given fields: ctx, serverID
type Collection ¶
Collection is an autogenerated mock type for the Collection type
func NewCollection ¶
func NewCollection(t mockConstructorTestingTNewCollection) *Collection
NewCollection creates a new instance of Collection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Collection) Count ¶
func (_m *Collection) Count(ctx context.Context) (int64, error)
Count provides a mock function with given fields: ctx
func (*Collection) CreateDocument ¶
func (_m *Collection) CreateDocument(ctx context.Context, document interface{}) (driver.DocumentMeta, error)
CreateDocument provides a mock function with given fields: ctx, document
func (*Collection) CreateDocuments ¶
func (_m *Collection) CreateDocuments(ctx context.Context, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
CreateDocuments provides a mock function with given fields: ctx, documents
func (*Collection) Database ¶
func (_m *Collection) Database() driver.Database
Database provides a mock function with given fields:
func (*Collection) DocumentExists ¶
DocumentExists provides a mock function with given fields: ctx, key
func (*Collection) EnsureFullTextIndex ¶
func (_m *Collection) EnsureFullTextIndex(ctx context.Context, fields []string, options *driver.EnsureFullTextIndexOptions) (driver.Index, bool, error)
EnsureFullTextIndex provides a mock function with given fields: ctx, fields, options
func (*Collection) EnsureGeoIndex ¶
func (_m *Collection) EnsureGeoIndex(ctx context.Context, fields []string, options *driver.EnsureGeoIndexOptions) (driver.Index, bool, error)
EnsureGeoIndex provides a mock function with given fields: ctx, fields, options
func (*Collection) EnsureHashIndex ¶
func (_m *Collection) EnsureHashIndex(ctx context.Context, fields []string, options *driver.EnsureHashIndexOptions) (driver.Index, bool, error)
EnsureHashIndex provides a mock function with given fields: ctx, fields, options
func (*Collection) EnsurePersistentIndex ¶
func (_m *Collection) EnsurePersistentIndex(ctx context.Context, fields []string, options *driver.EnsurePersistentIndexOptions) (driver.Index, bool, error)
EnsurePersistentIndex provides a mock function with given fields: ctx, fields, options
func (*Collection) EnsureSkipListIndex ¶
func (_m *Collection) EnsureSkipListIndex(ctx context.Context, fields []string, options *driver.EnsureSkipListIndexOptions) (driver.Index, bool, error)
EnsureSkipListIndex provides a mock function with given fields: ctx, fields, options
func (*Collection) EnsureTTLIndex ¶
func (_m *Collection) EnsureTTLIndex(ctx context.Context, field string, expireAfter int, options *driver.EnsureTTLIndexOptions) (driver.Index, bool, error)
EnsureTTLIndex provides a mock function with given fields: ctx, field, expireAfter, options
func (*Collection) EnsureZKDIndex ¶
func (_m *Collection) EnsureZKDIndex(ctx context.Context, fields []string, options *driver.EnsureZKDIndexOptions) (driver.Index, bool, error)
EnsureZKDIndex provides a mock function with given fields: ctx, fields, options
func (*Collection) ImportDocuments ¶
func (_m *Collection) ImportDocuments(ctx context.Context, documents interface{}, options *driver.ImportDocumentOptions) (driver.ImportDocumentStatistics, error)
ImportDocuments provides a mock function with given fields: ctx, documents, options
func (*Collection) IndexExists ¶
IndexExists provides a mock function with given fields: ctx, name
func (*Collection) Load ¶
func (_m *Collection) Load(ctx context.Context) error
Load provides a mock function with given fields: ctx
func (*Collection) Name ¶
func (_m *Collection) Name() string
Name provides a mock function with given fields:
func (*Collection) Properties ¶
func (_m *Collection) Properties(ctx context.Context) (driver.CollectionProperties, error)
Properties provides a mock function with given fields: ctx
func (*Collection) ReadDocument ¶
func (_m *Collection) ReadDocument(ctx context.Context, key string, result interface{}) (driver.DocumentMeta, error)
ReadDocument provides a mock function with given fields: ctx, key, result
func (*Collection) ReadDocuments ¶
func (_m *Collection) ReadDocuments(ctx context.Context, keys []string, results interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
ReadDocuments provides a mock function with given fields: ctx, keys, results
func (*Collection) Remove ¶
func (_m *Collection) Remove(ctx context.Context) error
Remove provides a mock function with given fields: ctx
func (*Collection) RemoveDocument ¶
func (_m *Collection) RemoveDocument(ctx context.Context, key string) (driver.DocumentMeta, error)
RemoveDocument provides a mock function with given fields: ctx, key
func (*Collection) RemoveDocuments ¶
func (_m *Collection) RemoveDocuments(ctx context.Context, keys []string) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
RemoveDocuments provides a mock function with given fields: ctx, keys
func (*Collection) ReplaceDocument ¶
func (_m *Collection) ReplaceDocument(ctx context.Context, key string, document interface{}) (driver.DocumentMeta, error)
ReplaceDocument provides a mock function with given fields: ctx, key, document
func (*Collection) ReplaceDocuments ¶
func (_m *Collection) ReplaceDocuments(ctx context.Context, keys []string, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
ReplaceDocuments provides a mock function with given fields: ctx, keys, documents
func (*Collection) Revision ¶
func (_m *Collection) Revision(ctx context.Context) (string, error)
Revision provides a mock function with given fields: ctx
func (*Collection) SetProperties ¶
func (_m *Collection) SetProperties(ctx context.Context, options driver.SetCollectionPropertiesOptions) error
SetProperties provides a mock function with given fields: ctx, options
func (*Collection) Shards ¶
func (_m *Collection) Shards(ctx context.Context, details bool) (driver.CollectionShards, error)
Shards provides a mock function with given fields: ctx, details
func (*Collection) Statistics ¶
func (_m *Collection) Statistics(ctx context.Context) (driver.CollectionStatistics, error)
Statistics provides a mock function with given fields: ctx
func (*Collection) Status ¶
func (_m *Collection) Status(ctx context.Context) (driver.CollectionStatus, error)
Status provides a mock function with given fields: ctx
func (*Collection) Truncate ¶
func (_m *Collection) Truncate(ctx context.Context) error
Truncate provides a mock function with given fields: ctx
func (*Collection) Unload ¶
func (_m *Collection) Unload(ctx context.Context) error
Unload provides a mock function with given fields: ctx
func (*Collection) UpdateDocument ¶
func (_m *Collection) UpdateDocument(ctx context.Context, key string, update interface{}) (driver.DocumentMeta, error)
UpdateDocument provides a mock function with given fields: ctx, key, update
func (*Collection) UpdateDocuments ¶
func (_m *Collection) UpdateDocuments(ctx context.Context, keys []string, updates interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
UpdateDocuments provides a mock function with given fields: ctx, keys, updates
type CollectionDocuments ¶
CollectionDocuments is an autogenerated mock type for the CollectionDocuments type
func NewCollectionDocuments ¶
func NewCollectionDocuments(t mockConstructorTestingTNewCollectionDocuments) *CollectionDocuments
NewCollectionDocuments creates a new instance of CollectionDocuments. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CollectionDocuments) CreateDocument ¶
func (_m *CollectionDocuments) CreateDocument(ctx context.Context, document interface{}) (driver.DocumentMeta, error)
CreateDocument provides a mock function with given fields: ctx, document
func (*CollectionDocuments) CreateDocuments ¶
func (_m *CollectionDocuments) CreateDocuments(ctx context.Context, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
CreateDocuments provides a mock function with given fields: ctx, documents
func (*CollectionDocuments) DocumentExists ¶
DocumentExists provides a mock function with given fields: ctx, key
func (*CollectionDocuments) ImportDocuments ¶
func (_m *CollectionDocuments) ImportDocuments(ctx context.Context, documents interface{}, options *driver.ImportDocumentOptions) (driver.ImportDocumentStatistics, error)
ImportDocuments provides a mock function with given fields: ctx, documents, options
func (*CollectionDocuments) ReadDocument ¶
func (_m *CollectionDocuments) ReadDocument(ctx context.Context, key string, result interface{}) (driver.DocumentMeta, error)
ReadDocument provides a mock function with given fields: ctx, key, result
func (*CollectionDocuments) ReadDocuments ¶
func (_m *CollectionDocuments) ReadDocuments(ctx context.Context, keys []string, results interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
ReadDocuments provides a mock function with given fields: ctx, keys, results
func (*CollectionDocuments) RemoveDocument ¶
func (_m *CollectionDocuments) RemoveDocument(ctx context.Context, key string) (driver.DocumentMeta, error)
RemoveDocument provides a mock function with given fields: ctx, key
func (*CollectionDocuments) RemoveDocuments ¶
func (_m *CollectionDocuments) RemoveDocuments(ctx context.Context, keys []string) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
RemoveDocuments provides a mock function with given fields: ctx, keys
func (*CollectionDocuments) ReplaceDocument ¶
func (_m *CollectionDocuments) ReplaceDocument(ctx context.Context, key string, document interface{}) (driver.DocumentMeta, error)
ReplaceDocument provides a mock function with given fields: ctx, key, document
func (*CollectionDocuments) ReplaceDocuments ¶
func (_m *CollectionDocuments) ReplaceDocuments(ctx context.Context, keys []string, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
ReplaceDocuments provides a mock function with given fields: ctx, keys, documents
func (*CollectionDocuments) UpdateDocument ¶
func (_m *CollectionDocuments) UpdateDocument(ctx context.Context, key string, update interface{}) (driver.DocumentMeta, error)
UpdateDocument provides a mock function with given fields: ctx, key, update
func (*CollectionDocuments) UpdateDocuments ¶
func (_m *CollectionDocuments) UpdateDocuments(ctx context.Context, keys []string, updates interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)
UpdateDocuments provides a mock function with given fields: ctx, keys, updates
type CollectionIndexes ¶
CollectionIndexes is an autogenerated mock type for the CollectionIndexes type
func NewCollectionIndexes ¶
func NewCollectionIndexes(t mockConstructorTestingTNewCollectionIndexes) *CollectionIndexes
NewCollectionIndexes creates a new instance of CollectionIndexes. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CollectionIndexes) EnsureFullTextIndex ¶
func (_m *CollectionIndexes) EnsureFullTextIndex(ctx context.Context, fields []string, options *driver.EnsureFullTextIndexOptions) (driver.Index, bool, error)
EnsureFullTextIndex provides a mock function with given fields: ctx, fields, options
func (*CollectionIndexes) EnsureGeoIndex ¶
func (_m *CollectionIndexes) EnsureGeoIndex(ctx context.Context, fields []string, options *driver.EnsureGeoIndexOptions) (driver.Index, bool, error)
EnsureGeoIndex provides a mock function with given fields: ctx, fields, options
func (*CollectionIndexes) EnsureHashIndex ¶
func (_m *CollectionIndexes) EnsureHashIndex(ctx context.Context, fields []string, options *driver.EnsureHashIndexOptions) (driver.Index, bool, error)
EnsureHashIndex provides a mock function with given fields: ctx, fields, options
func (*CollectionIndexes) EnsurePersistentIndex ¶
func (_m *CollectionIndexes) EnsurePersistentIndex(ctx context.Context, fields []string, options *driver.EnsurePersistentIndexOptions) (driver.Index, bool, error)
EnsurePersistentIndex provides a mock function with given fields: ctx, fields, options
func (*CollectionIndexes) EnsureSkipListIndex ¶
func (_m *CollectionIndexes) EnsureSkipListIndex(ctx context.Context, fields []string, options *driver.EnsureSkipListIndexOptions) (driver.Index, bool, error)
EnsureSkipListIndex provides a mock function with given fields: ctx, fields, options
func (*CollectionIndexes) EnsureTTLIndex ¶
func (_m *CollectionIndexes) EnsureTTLIndex(ctx context.Context, field string, expireAfter int, options *driver.EnsureTTLIndexOptions) (driver.Index, bool, error)
EnsureTTLIndex provides a mock function with given fields: ctx, field, expireAfter, options
func (*CollectionIndexes) EnsureZKDIndex ¶
func (_m *CollectionIndexes) EnsureZKDIndex(ctx context.Context, fields []string, options *driver.EnsureZKDIndexOptions) (driver.Index, bool, error)
EnsureZKDIndex provides a mock function with given fields: ctx, fields, options
func (*CollectionIndexes) IndexExists ¶
IndexExists provides a mock function with given fields: ctx, name
type Connection ¶
Connection is an autogenerated mock type for the Connection type
func NewConnection ¶
func NewConnection(t mockConstructorTestingTNewConnection) *Connection
NewConnection creates a new instance of Connection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Connection) Endpoints ¶
func (_m *Connection) Endpoints() []string
Endpoints provides a mock function with given fields:
func (*Connection) NewRequest ¶
NewRequest provides a mock function with given fields: method, path
func (*Connection) Protocols ¶
func (_m *Connection) Protocols() driver.ProtocolSet
Protocols provides a mock function with given fields:
func (*Connection) SetAuthentication ¶
func (_m *Connection) SetAuthentication(_a0 driver.Authentication) (driver.Connection, error)
SetAuthentication provides a mock function with given fields: _a0
func (*Connection) Unmarshal ¶
func (_m *Connection) Unmarshal(data driver.RawObject, result interface{}) error
Unmarshal provides a mock function with given fields: data, result
func (*Connection) UpdateEndpoints ¶
func (_m *Connection) UpdateEndpoints(endpoints []string) error
UpdateEndpoints provides a mock function with given fields: endpoints
type Cursor ¶
Cursor is an autogenerated mock type for the Cursor type
func NewCursor ¶
func NewCursor(t mockConstructorTestingTNewCursor) *Cursor
NewCursor creates a new instance of Cursor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Cursor) Extra ¶
func (_m *Cursor) Extra() driver.QueryExtra
Extra provides a mock function with given fields:
func (*Cursor) ReadDocument ¶
func (_m *Cursor) ReadDocument(ctx context.Context, result interface{}) (driver.DocumentMeta, error)
ReadDocument provides a mock function with given fields: ctx, result
func (*Cursor) Statistics ¶
func (_m *Cursor) Statistics() driver.QueryStatistics
Statistics provides a mock function with given fields:
type Database ¶
Database is an autogenerated mock type for the Database type
func NewDatabase ¶
func NewDatabase(t mockConstructorTestingTNewDatabase) *Database
NewDatabase creates a new instance of Database. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Database) AbortTransaction ¶
func (_m *Database) AbortTransaction(ctx context.Context, tid driver.TransactionID, opts *driver.AbortTransactionOptions) error
AbortTransaction provides a mock function with given fields: ctx, tid, opts
func (*Database) BeginTransaction ¶
func (_m *Database) BeginTransaction(ctx context.Context, cols driver.TransactionCollections, opts *driver.BeginTransactionOptions) (driver.TransactionID, error)
BeginTransaction provides a mock function with given fields: ctx, cols, opts
func (*Database) Collection ¶
Collection provides a mock function with given fields: ctx, name
func (*Database) CollectionExists ¶
CollectionExists provides a mock function with given fields: ctx, name
func (*Database) Collections ¶
Collections provides a mock function with given fields: ctx
func (*Database) CommitTransaction ¶
func (_m *Database) CommitTransaction(ctx context.Context, tid driver.TransactionID, opts *driver.CommitTransactionOptions) error
CommitTransaction provides a mock function with given fields: ctx, tid, opts
func (*Database) CreateArangoSearchView ¶
func (_m *Database) CreateArangoSearchView(ctx context.Context, name string, options *driver.ArangoSearchViewProperties) (driver.ArangoSearchView, error)
CreateArangoSearchView provides a mock function with given fields: ctx, name, options
func (*Database) CreateCollection ¶
func (_m *Database) CreateCollection(ctx context.Context, name string, options *driver.CreateCollectionOptions) (driver.Collection, error)
CreateCollection provides a mock function with given fields: ctx, name, options
func (*Database) CreateGraph ¶
func (_m *Database) CreateGraph(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)
CreateGraph provides a mock function with given fields: ctx, name, options
func (*Database) CreateGraphV2 ¶
func (_m *Database) CreateGraphV2(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)
CreateGraphV2 provides a mock function with given fields: ctx, name, options
func (*Database) EngineInfo ¶
EngineInfo provides a mock function with given fields: ctx
func (*Database) EnsureAnalyzer ¶
func (_m *Database) EnsureAnalyzer(ctx context.Context, analyzer driver.ArangoSearchAnalyzerDefinition) (bool, driver.ArangoSearchAnalyzer, error)
EnsureAnalyzer provides a mock function with given fields: ctx, analyzer
func (*Database) GraphExists ¶
GraphExists provides a mock function with given fields: ctx, name
func (*Database) Query ¶
func (_m *Database) Query(ctx context.Context, query string, bindVars map[string]interface{}) (driver.Cursor, error)
Query provides a mock function with given fields: ctx, query, bindVars
func (*Database) Transaction ¶
func (_m *Database) Transaction(ctx context.Context, action string, options *driver.TransactionOptions) (interface{}, error)
Transaction provides a mock function with given fields: ctx, action, options
func (*Database) TransactionStatus ¶
func (_m *Database) TransactionStatus(ctx context.Context, tid driver.TransactionID) (driver.TransactionStatusRecord, error)
TransactionStatus provides a mock function with given fields: ctx, tid
func (*Database) ValidateQuery ¶
ValidateQuery provides a mock function with given fields: ctx, query
func (*Database) ViewExists ¶
ViewExists provides a mock function with given fields: ctx, name
type DatabaseArangoSearchAnalyzers ¶
DatabaseArangoSearchAnalyzers is an autogenerated mock type for the DatabaseArangoSearchAnalyzers type
func NewDatabaseArangoSearchAnalyzers ¶
func NewDatabaseArangoSearchAnalyzers(t mockConstructorTestingTNewDatabaseArangoSearchAnalyzers) *DatabaseArangoSearchAnalyzers
NewDatabaseArangoSearchAnalyzers creates a new instance of DatabaseArangoSearchAnalyzers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DatabaseArangoSearchAnalyzers) Analyzer ¶
func (_m *DatabaseArangoSearchAnalyzers) Analyzer(ctx context.Context, name string) (driver.ArangoSearchAnalyzer, error)
Analyzer provides a mock function with given fields: ctx, name
func (*DatabaseArangoSearchAnalyzers) Analyzers ¶
func (_m *DatabaseArangoSearchAnalyzers) Analyzers(ctx context.Context) ([]driver.ArangoSearchAnalyzer, error)
Analyzers provides a mock function with given fields: ctx
func (*DatabaseArangoSearchAnalyzers) EnsureAnalyzer ¶
func (_m *DatabaseArangoSearchAnalyzers) EnsureAnalyzer(ctx context.Context, analyzer driver.ArangoSearchAnalyzerDefinition) (bool, driver.ArangoSearchAnalyzer, error)
EnsureAnalyzer provides a mock function with given fields: ctx, analyzer
type DatabaseCollections ¶
DatabaseCollections is an autogenerated mock type for the DatabaseCollections type
func NewDatabaseCollections ¶
func NewDatabaseCollections(t mockConstructorTestingTNewDatabaseCollections) *DatabaseCollections
NewDatabaseCollections creates a new instance of DatabaseCollections. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DatabaseCollections) Collection ¶
func (_m *DatabaseCollections) Collection(ctx context.Context, name string) (driver.Collection, error)
Collection provides a mock function with given fields: ctx, name
func (*DatabaseCollections) CollectionExists ¶
CollectionExists provides a mock function with given fields: ctx, name
func (*DatabaseCollections) Collections ¶
func (_m *DatabaseCollections) Collections(ctx context.Context) ([]driver.Collection, error)
Collections provides a mock function with given fields: ctx
func (*DatabaseCollections) CreateCollection ¶
func (_m *DatabaseCollections) CreateCollection(ctx context.Context, name string, options *driver.CreateCollectionOptions) (driver.Collection, error)
CreateCollection provides a mock function with given fields: ctx, name, options
type DatabaseGraphs ¶
DatabaseGraphs is an autogenerated mock type for the DatabaseGraphs type
func NewDatabaseGraphs ¶
func NewDatabaseGraphs(t mockConstructorTestingTNewDatabaseGraphs) *DatabaseGraphs
NewDatabaseGraphs creates a new instance of DatabaseGraphs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DatabaseGraphs) CreateGraph ¶
func (_m *DatabaseGraphs) CreateGraph(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)
CreateGraph provides a mock function with given fields: ctx, name, options
func (*DatabaseGraphs) CreateGraphV2 ¶
func (_m *DatabaseGraphs) CreateGraphV2(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)
CreateGraphV2 provides a mock function with given fields: ctx, name, options
func (*DatabaseGraphs) GraphExists ¶
GraphExists provides a mock function with given fields: ctx, name
type DatabaseStreamingTransactions ¶
DatabaseStreamingTransactions is an autogenerated mock type for the DatabaseStreamingTransactions type
func NewDatabaseStreamingTransactions ¶
func NewDatabaseStreamingTransactions(t mockConstructorTestingTNewDatabaseStreamingTransactions) *DatabaseStreamingTransactions
NewDatabaseStreamingTransactions creates a new instance of DatabaseStreamingTransactions. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DatabaseStreamingTransactions) AbortTransaction ¶
func (_m *DatabaseStreamingTransactions) AbortTransaction(ctx context.Context, tid driver.TransactionID, opts *driver.AbortTransactionOptions) error
AbortTransaction provides a mock function with given fields: ctx, tid, opts
func (*DatabaseStreamingTransactions) BeginTransaction ¶
func (_m *DatabaseStreamingTransactions) BeginTransaction(ctx context.Context, cols driver.TransactionCollections, opts *driver.BeginTransactionOptions) (driver.TransactionID, error)
BeginTransaction provides a mock function with given fields: ctx, cols, opts
func (*DatabaseStreamingTransactions) CommitTransaction ¶
func (_m *DatabaseStreamingTransactions) CommitTransaction(ctx context.Context, tid driver.TransactionID, opts *driver.CommitTransactionOptions) error
CommitTransaction provides a mock function with given fields: ctx, tid, opts
func (*DatabaseStreamingTransactions) TransactionStatus ¶
func (_m *DatabaseStreamingTransactions) TransactionStatus(ctx context.Context, tid driver.TransactionID) (driver.TransactionStatusRecord, error)
TransactionStatus provides a mock function with given fields: ctx, tid
type DatabaseViews ¶
DatabaseViews is an autogenerated mock type for the DatabaseViews type
func NewDatabaseViews ¶
func NewDatabaseViews(t mockConstructorTestingTNewDatabaseViews) *DatabaseViews
NewDatabaseViews creates a new instance of DatabaseViews. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DatabaseViews) CreateArangoSearchView ¶
func (_m *DatabaseViews) CreateArangoSearchView(ctx context.Context, name string, options *driver.ArangoSearchViewProperties) (driver.ArangoSearchView, error)
CreateArangoSearchView provides a mock function with given fields: ctx, name, options
func (*DatabaseViews) ViewExists ¶
ViewExists provides a mock function with given fields: ctx, name
type FoxxService ¶
FoxxService is an autogenerated mock type for the FoxxService type
func NewFoxxService ¶
func NewFoxxService(t mockConstructorTestingTNewFoxxService) *FoxxService
NewFoxxService creates a new instance of FoxxService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FoxxService) InstallFoxxService ¶
func (_m *FoxxService) InstallFoxxService(ctx context.Context, zipFile string, options driver.FoxxCreateOptions) error
InstallFoxxService provides a mock function with given fields: ctx, zipFile, options
func (*FoxxService) UninstallFoxxService ¶
func (_m *FoxxService) UninstallFoxxService(ctx context.Context, options driver.FoxxDeleteOptions) error
UninstallFoxxService provides a mock function with given fields: ctx, options
type Graph ¶
Graph is an autogenerated mock type for the Graph type
func NewGraph ¶
func NewGraph(t mockConstructorTestingTNewGraph) *Graph
NewGraph creates a new instance of Graph. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Graph) CreateEdgeCollection ¶
func (_m *Graph) CreateEdgeCollection(ctx context.Context, collection string, constraints driver.VertexConstraints) (driver.Collection, error)
CreateEdgeCollection provides a mock function with given fields: ctx, collection, constraints
func (*Graph) CreateEdgeCollectionWithOptions ¶
func (_m *Graph) CreateEdgeCollectionWithOptions(ctx context.Context, collection string, constraints driver.VertexConstraints, options driver.CreateEdgeCollectionOptions) (driver.Collection, error)
CreateEdgeCollectionWithOptions provides a mock function with given fields: ctx, collection, constraints, options
func (*Graph) CreateVertexCollection ¶
func (_m *Graph) CreateVertexCollection(ctx context.Context, collection string) (driver.Collection, error)
CreateVertexCollection provides a mock function with given fields: ctx, collection
func (*Graph) CreateVertexCollectionWithOptions ¶
func (_m *Graph) CreateVertexCollectionWithOptions(ctx context.Context, collection string, options driver.CreateVertexCollectionOptions) (driver.Collection, error)
CreateVertexCollectionWithOptions provides a mock function with given fields: ctx, collection, options
func (*Graph) EdgeCollection ¶
func (_m *Graph) EdgeCollection(ctx context.Context, name string) (driver.Collection, driver.VertexConstraints, error)
EdgeCollection provides a mock function with given fields: ctx, name
func (*Graph) EdgeCollectionExists ¶
EdgeCollectionExists provides a mock function with given fields: ctx, name
func (*Graph) EdgeCollections ¶
func (_m *Graph) EdgeCollections(ctx context.Context) ([]driver.Collection, []driver.VertexConstraints, error)
EdgeCollections provides a mock function with given fields: ctx
func (*Graph) EdgeDefinitions ¶
func (_m *Graph) EdgeDefinitions() []driver.EdgeDefinition
EdgeDefinitions provides a mock function with given fields:
func (*Graph) IsDisjoint ¶
IsDisjoint provides a mock function with given fields:
func (*Graph) IsSatellite ¶
IsSatellite provides a mock function with given fields:
func (*Graph) Key ¶
func (_m *Graph) Key() driver.DocumentID
Key provides a mock function with given fields:
func (*Graph) MinReplicationFactor ¶
MinReplicationFactor provides a mock function with given fields:
func (*Graph) NumberOfShards ¶
NumberOfShards provides a mock function with given fields:
func (*Graph) OrphanCollections ¶
OrphanCollections provides a mock function with given fields:
func (*Graph) ReplicationFactor ¶
ReplicationFactor provides a mock function with given fields:
func (*Graph) SetVertexConstraints ¶
func (_m *Graph) SetVertexConstraints(ctx context.Context, collection string, constraints driver.VertexConstraints) error
SetVertexConstraints provides a mock function with given fields: ctx, collection, constraints
func (*Graph) SmartGraphAttribute ¶
SmartGraphAttribute provides a mock function with given fields:
func (*Graph) VertexCollection ¶
VertexCollection provides a mock function with given fields: ctx, name
func (*Graph) VertexCollectionExists ¶
VertexCollectionExists provides a mock function with given fields: ctx, name
func (*Graph) VertexCollections ¶
VertexCollections provides a mock function with given fields: ctx
func (*Graph) WriteConcern ¶
WriteConcern provides a mock function with given fields:
type GraphEdgeCollections ¶
GraphEdgeCollections is an autogenerated mock type for the GraphEdgeCollections type
func NewGraphEdgeCollections ¶
func NewGraphEdgeCollections(t mockConstructorTestingTNewGraphEdgeCollections) *GraphEdgeCollections
NewGraphEdgeCollections creates a new instance of GraphEdgeCollections. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GraphEdgeCollections) CreateEdgeCollection ¶
func (_m *GraphEdgeCollections) CreateEdgeCollection(ctx context.Context, collection string, constraints driver.VertexConstraints) (driver.Collection, error)
CreateEdgeCollection provides a mock function with given fields: ctx, collection, constraints
func (*GraphEdgeCollections) CreateEdgeCollectionWithOptions ¶
func (_m *GraphEdgeCollections) CreateEdgeCollectionWithOptions(ctx context.Context, collection string, constraints driver.VertexConstraints, options driver.CreateEdgeCollectionOptions) (driver.Collection, error)
CreateEdgeCollectionWithOptions provides a mock function with given fields: ctx, collection, constraints, options
func (*GraphEdgeCollections) EdgeCollection ¶
func (_m *GraphEdgeCollections) EdgeCollection(ctx context.Context, name string) (driver.Collection, driver.VertexConstraints, error)
EdgeCollection provides a mock function with given fields: ctx, name
func (*GraphEdgeCollections) EdgeCollectionExists ¶
func (_m *GraphEdgeCollections) EdgeCollectionExists(ctx context.Context, name string) (bool, error)
EdgeCollectionExists provides a mock function with given fields: ctx, name
func (*GraphEdgeCollections) EdgeCollections ¶
func (_m *GraphEdgeCollections) EdgeCollections(ctx context.Context) ([]driver.Collection, []driver.VertexConstraints, error)
EdgeCollections provides a mock function with given fields: ctx
func (*GraphEdgeCollections) SetVertexConstraints ¶
func (_m *GraphEdgeCollections) SetVertexConstraints(ctx context.Context, collection string, constraints driver.VertexConstraints) error
SetVertexConstraints provides a mock function with given fields: ctx, collection, constraints
type GraphVertexCollections ¶
GraphVertexCollections is an autogenerated mock type for the GraphVertexCollections type
func NewGraphVertexCollections ¶
func NewGraphVertexCollections(t mockConstructorTestingTNewGraphVertexCollections) *GraphVertexCollections
NewGraphVertexCollections creates a new instance of GraphVertexCollections. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GraphVertexCollections) CreateVertexCollection ¶
func (_m *GraphVertexCollections) CreateVertexCollection(ctx context.Context, collection string) (driver.Collection, error)
CreateVertexCollection provides a mock function with given fields: ctx, collection
func (*GraphVertexCollections) CreateVertexCollectionWithOptions ¶
func (_m *GraphVertexCollections) CreateVertexCollectionWithOptions(ctx context.Context, collection string, options driver.CreateVertexCollectionOptions) (driver.Collection, error)
CreateVertexCollectionWithOptions provides a mock function with given fields: ctx, collection, options
func (*GraphVertexCollections) VertexCollection ¶
func (_m *GraphVertexCollections) VertexCollection(ctx context.Context, name string) (driver.Collection, error)
VertexCollection provides a mock function with given fields: ctx, name
func (*GraphVertexCollections) VertexCollectionExists ¶
func (_m *GraphVertexCollections) VertexCollectionExists(ctx context.Context, name string) (bool, error)
VertexCollectionExists provides a mock function with given fields: ctx, name
func (*GraphVertexCollections) VertexCollections ¶
func (_m *GraphVertexCollections) VertexCollections(ctx context.Context) ([]driver.Collection, error)
VertexCollections provides a mock function with given fields: ctx
type Index ¶
Index is an autogenerated mock type for the Index type
func NewIndex ¶
func NewIndex(t mockConstructorTestingTNewIndex) *Index
NewIndex creates a new instance of Index. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Index) Deduplicate ¶
Deduplicate provides a mock function with given fields:
func (*Index) ExpireAfter ¶
ExpireAfter provides a mock function with given fields:
func (*Index) InBackground ¶
InBackground provides a mock function with given fields:
type KeyChanger ¶
KeyChanger is an autogenerated mock type for the KeyChanger type
func NewKeyChanger ¶
func NewKeyChanger(t mockConstructorTestingTNewKeyChanger) *KeyChanger
NewKeyChanger creates a new instance of KeyChanger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*KeyChanger) GetKey ¶
func (_m *KeyChanger) GetKey() string
GetKey provides a mock function with given fields:
func (*KeyChanger) GetNew ¶
func (_m *KeyChanger) GetNew() interface{}
GetNew provides a mock function with given fields:
func (*KeyChanger) GetOperation ¶
func (_m *KeyChanger) GetOperation() string
GetOperation provides a mock function with given fields:
func (*KeyChanger) GetTTL ¶
func (_m *KeyChanger) GetTTL() time.Duration
GetTTL provides a mock function with given fields:
func (*KeyChanger) GetURL ¶
func (_m *KeyChanger) GetURL() string
GetURL provides a mock function with given fields:
func (*KeyChanger) GetVal ¶
func (_m *KeyChanger) GetVal() interface{}
GetVal provides a mock function with given fields:
type KeyConditioner ¶
KeyConditioner is an autogenerated mock type for the KeyConditioner type
func NewKeyConditioner ¶
func NewKeyConditioner(t mockConstructorTestingTNewKeyConditioner) *KeyConditioner
NewKeyConditioner creates a new instance of KeyConditioner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*KeyConditioner) GetName ¶
func (_m *KeyConditioner) GetName() string
GetName provides a mock function with given fields:
func (*KeyConditioner) GetValue ¶
func (_m *KeyConditioner) GetValue() interface{}
GetValue provides a mock function with given fields:
type Lock ¶
Lock is an autogenerated mock type for the Lock type
func NewLock ¶
func NewLock(t mockConstructorTestingTNewLock) *Lock
NewLock creates a new instance of Lock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Logger ¶
Logger is an autogenerated mock type for the Logger type
type QueryExtra ¶
QueryExtra is an autogenerated mock type for the QueryExtra type
func NewQueryExtra ¶
func NewQueryExtra(t mockConstructorTestingTNewQueryExtra) *QueryExtra
NewQueryExtra creates a new instance of QueryExtra. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*QueryExtra) GetPlanRaw ¶
func (_m *QueryExtra) GetPlanRaw() ([]byte, bool, error)
GetPlanRaw provides a mock function with given fields:
func (*QueryExtra) GetProfileRaw ¶
func (_m *QueryExtra) GetProfileRaw() ([]byte, bool, error)
GetProfileRaw provides a mock function with given fields:
func (*QueryExtra) GetStatistics ¶
func (_m *QueryExtra) GetStatistics() driver.QueryStatistics
GetStatistics provides a mock function with given fields:
type QueryStatistics ¶
QueryStatistics is an autogenerated mock type for the QueryStatistics type
func NewQueryStatistics ¶
func NewQueryStatistics(t mockConstructorTestingTNewQueryStatistics) *QueryStatistics
NewQueryStatistics creates a new instance of QueryStatistics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*QueryStatistics) ExecutionTime ¶
func (_m *QueryStatistics) ExecutionTime() time.Duration
ExecutionTime provides a mock function with given fields:
func (*QueryStatistics) Filtered ¶
func (_m *QueryStatistics) Filtered() int64
Filtered provides a mock function with given fields:
func (*QueryStatistics) FullCount ¶
func (_m *QueryStatistics) FullCount() int64
FullCount provides a mock function with given fields:
func (*QueryStatistics) ScannedFull ¶
func (_m *QueryStatistics) ScannedFull() int64
ScannedFull provides a mock function with given fields:
func (*QueryStatistics) ScannedIndex ¶
func (_m *QueryStatistics) ScannedIndex() int64
ScannedIndex provides a mock function with given fields:
func (*QueryStatistics) WritesExecuted ¶
func (_m *QueryStatistics) WritesExecuted() int64
WritesExecuted provides a mock function with given fields:
func (*QueryStatistics) WritesIgnored ¶
func (_m *QueryStatistics) WritesIgnored() int64
WritesIgnored provides a mock function with given fields:
type Replication ¶
Replication is an autogenerated mock type for the Replication type
func NewReplication ¶
func NewReplication(t mockConstructorTestingTNewReplication) *Replication
NewReplication creates a new instance of Replication. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Replication) CreateBatch ¶
func (_m *Replication) CreateBatch(ctx context.Context, db driver.Database, serverID int64, ttl time.Duration) (driver.Batch, error)
CreateBatch provides a mock function with given fields: ctx, db, serverID, ttl
func (*Replication) DatabaseInventory ¶
func (_m *Replication) DatabaseInventory(ctx context.Context, db driver.Database) (driver.DatabaseInventory, error)
DatabaseInventory provides a mock function with given fields: ctx, db
func (*Replication) GetRevisionDocuments ¶
func (_m *Replication) GetRevisionDocuments(ctx context.Context, db driver.Database, batchId string, collection string, revisions driver.Revisions) ([]map[string]interface{}, error)
GetRevisionDocuments provides a mock function with given fields: ctx, db, batchId, collection, revisions
func (*Replication) GetRevisionTree ¶
func (_m *Replication) GetRevisionTree(ctx context.Context, db driver.Database, batchId string, collection string) (driver.RevisionTree, error)
GetRevisionTree provides a mock function with given fields: ctx, db, batchId, collection
func (*Replication) GetRevisionsByRanges ¶
func (_m *Replication) GetRevisionsByRanges(ctx context.Context, db driver.Database, batchId string, collection string, minMaxRevision []driver.RevisionMinMax, resume driver.RevisionUInt64) (driver.RevisionRanges, error)
GetRevisionsByRanges provides a mock function with given fields: ctx, db, batchId, collection, minMaxRevision, resume
type Request ¶
Request is an autogenerated mock type for the Request type
func NewRequest ¶
func NewRequest(t mockConstructorTestingTNewRequest) *Request
NewRequest creates a new instance of Request. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Request) SetBodyArray ¶
func (_m *Request) SetBodyArray(bodyArray interface{}, mergeArray []map[string]interface{}) (driver.Request, error)
SetBodyArray provides a mock function with given fields: bodyArray, mergeArray
func (*Request) SetBodyImportArray ¶
SetBodyImportArray provides a mock function with given fields: bodyArray
type RequestRepeater ¶
RequestRepeater is an autogenerated mock type for the RequestRepeater type
func NewRequestRepeater ¶
func NewRequestRepeater(t mockConstructorTestingTNewRequestRepeater) *RequestRepeater
NewRequestRepeater creates a new instance of RequestRepeater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RequestRepeater) Repeat ¶
func (_m *RequestRepeater) Repeat(conn driver.Connection, resp driver.Response, err error) bool
Repeat provides a mock function with given fields: conn, resp, err
type Response ¶
Response is an autogenerated mock type for the Response type
func NewResponse ¶
func NewResponse(t mockConstructorTestingTNewResponse) *Response
NewResponse creates a new instance of Response. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Response) CheckStatus ¶
CheckStatus provides a mock function with given fields: validStatusCodes
func (*Response) ParseArrayBody ¶
ParseArrayBody provides a mock function with given fields:
func (*Response) StatusCode ¶
StatusCode provides a mock function with given fields:
type ServerConnectionBuilder ¶
ServerConnectionBuilder is an autogenerated mock type for the ServerConnectionBuilder type
func NewServerConnectionBuilder ¶
func NewServerConnectionBuilder(t mockConstructorTestingTNewServerConnectionBuilder) *ServerConnectionBuilder
NewServerConnectionBuilder creates a new instance of ServerConnectionBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ServerConnectionBuilder) Execute ¶
func (_m *ServerConnectionBuilder) Execute(endpoint string) (driver.Connection, error)
Execute provides a mock function with given fields: endpoint
type User ¶
User is an autogenerated mock type for the User type
func NewUser ¶
func NewUser(t mockConstructorTestingTNewUser) *User
NewUser creates a new instance of User. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*User) AccessibleDatabases ¶
AccessibleDatabases provides a mock function with given fields: ctx
func (*User) GetCollectionAccess ¶
func (_m *User) GetCollectionAccess(ctx context.Context, col driver.AccessTarget) (driver.Grant, error)
GetCollectionAccess provides a mock function with given fields: ctx, col
func (*User) GetDatabaseAccess ¶
GetDatabaseAccess provides a mock function with given fields: ctx, db
func (*User) GrantReadWriteAccess ¶
GrantReadWriteAccess provides a mock function with given fields: ctx, db
func (*User) IsPasswordChangeNeeded ¶
IsPasswordChangeNeeded provides a mock function with given fields:
func (*User) RemoveCollectionAccess ¶
RemoveCollectionAccess provides a mock function with given fields: ctx, col
func (*User) RemoveDatabaseAccess ¶
RemoveDatabaseAccess provides a mock function with given fields: ctx, db
func (*User) RevokeAccess ¶
RevokeAccess provides a mock function with given fields: ctx, db
func (*User) SetCollectionAccess ¶
func (_m *User) SetCollectionAccess(ctx context.Context, col driver.AccessTarget, access driver.Grant) error
SetCollectionAccess provides a mock function with given fields: ctx, col, access
type View ¶
View is an autogenerated mock type for the View type
func NewView ¶
func NewView(t mockConstructorTestingTNewView) *View
NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*View) ArangoSearchView ¶
func (_m *View) ArangoSearchView() (driver.ArangoSearchView, error)
ArangoSearchView provides a mock function with given fields:
Source Files ¶
- AccessTarget.go
- Agency.go
- ArangoSearchAnalyzer.go
- ArangoSearchView.go
- Authentication.go
- Batch.go
- BodyBuilder.go
- Client.go
- ClientAdminBackup.go
- ClientBackup.go
- ClientCluster.go
- ClientDatabases.go
- ClientFoxx.go
- ClientReplication.go
- ClientServerAdmin.go
- ClientServerInfo.go
- ClientUsers.go
- Cluster.go
- Collection.go
- CollectionDocuments.go
- CollectionIndexes.go
- Connection.go
- Cursor.go
- Database.go
- DatabaseArangoSearchAnalyzers.go
- DatabaseCollections.go
- DatabaseGraphs.go
- DatabaseStreamingTransactions.go
- DatabaseViews.go
- FoxxService.go
- Graph.go
- GraphEdgeCollections.go
- GraphVertexCollections.go
- Index.go
- KeyChanger.go
- KeyConditioner.go
- Lock.go
- Logger.go
- QueryExtra.go
- QueryStatistics.go
- Replication.go
- Request.go
- RequestRepeater.go
- Response.go
- ServerConnectionBuilder.go
- User.go
- View.go