mock

package
v0.0.0-...-95f7d39 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockArangoSearchAnalyzer

type MockArangoSearchAnalyzer struct{}

func (*MockArangoSearchAnalyzer) Database

func (sa *MockArangoSearchAnalyzer) Database() driver.Database

func (*MockArangoSearchAnalyzer) Definition

func (sa *MockArangoSearchAnalyzer) Definition() driver.ArangoSearchAnalyzerDefinition

func (*MockArangoSearchAnalyzer) Name

func (sa *MockArangoSearchAnalyzer) Name() string

func (*MockArangoSearchAnalyzer) Properties

func (sa *MockArangoSearchAnalyzer) Properties() driver.ArangoSearchAnalyzerProperties

func (*MockArangoSearchAnalyzer) Remove

func (sa *MockArangoSearchAnalyzer) Remove(ctx context.Context, force bool) error

func (*MockArangoSearchAnalyzer) Type

func (sa *MockArangoSearchAnalyzer) Type() driver.ArangoSearchAnalyzerType

func (*MockArangoSearchAnalyzer) UniqueName

func (sa *MockArangoSearchAnalyzer) UniqueName() string

type MockArangoSearchView

type MockArangoSearchView struct{}

func (*MockArangoSearchView) ArangoSearchView

func (v *MockArangoSearchView) ArangoSearchView() (driver.ArangoSearchView, error)

func (*MockArangoSearchView) ArangoSearchViewAlias

func (v *MockArangoSearchView) ArangoSearchViewAlias() (driver.ArangoSearchViewAlias, error)

func (*MockArangoSearchView) Database

func (v *MockArangoSearchView) Database() driver.Database

func (*MockArangoSearchView) Name

func (v *MockArangoSearchView) Name() string

ArangoSearchView

func (*MockArangoSearchView) Properties

func (v *MockArangoSearchView) Properties(ctx context.Context) (driver.ArangoSearchViewProperties, error)

func (*MockArangoSearchView) Remove

func (v *MockArangoSearchView) Remove(ctx context.Context) error

func (*MockArangoSearchView) Rename

func (v *MockArangoSearchView) Rename(ctx context.Context, newName string) error

func (*MockArangoSearchView) SetProperties

func (v *MockArangoSearchView) SetProperties(ctx context.Context, options driver.ArangoSearchViewProperties) error

func (*MockArangoSearchView) Type

func (v *MockArangoSearchView) Type() driver.ViewType

type MockArangoSearchViewAlias

type MockArangoSearchViewAlias struct{}

func (*MockArangoSearchViewAlias) ArangoSearchView

func (v *MockArangoSearchViewAlias) ArangoSearchView() (driver.ArangoSearchView, error)

func (*MockArangoSearchViewAlias) ArangoSearchViewAlias

func (v *MockArangoSearchViewAlias) ArangoSearchViewAlias() (driver.ArangoSearchViewAlias, error)

func (*MockArangoSearchViewAlias) Database

func (v *MockArangoSearchViewAlias) Database() driver.Database

func (*MockArangoSearchViewAlias) Name

ArangoSearchAliasView

func (*MockArangoSearchViewAlias) Properties

func (v *MockArangoSearchViewAlias) Properties(ctx context.Context) (driver.ArangoSearchAliasViewProperties, error)

func (*MockArangoSearchViewAlias) Remove

func (*MockArangoSearchViewAlias) Rename

func (v *MockArangoSearchViewAlias) Rename(ctx context.Context, newName string) error

func (*MockArangoSearchViewAlias) SetProperties

func (v *MockArangoSearchViewAlias) SetProperties(ctx context.Context, options driver.ArangoSearchAliasViewProperties) (driver.ArangoSearchAliasViewProperties, error)

func (*MockArangoSearchViewAlias) Type

func (v *MockArangoSearchViewAlias) Type() driver.ViewType

type MockBackup

type MockBackup struct{}

func (*MockBackup) Abort

func (b *MockBackup) Abort(ctx context.Context, job driver.BackupTransferJobID) error

func (*MockBackup) Create

func (b *MockBackup) Create(ctx context.Context, opt *driver.BackupCreateOptions) (driver.BackupID, driver.BackupCreateResponse, error)

func (*MockBackup) Delete

func (b *MockBackup) Delete(ctx context.Context, id driver.BackupID) error

func (*MockBackup) Download

func (b *MockBackup) Download(ctx context.Context, id driver.BackupID, remoteRepository string, config interface{}) (driver.BackupTransferJobID, error)

func (*MockBackup) List

func (b *MockBackup) List(ctx context.Context, opt *driver.BackupListOptions) (map[driver.BackupID]driver.BackupMeta, error)

func (*MockBackup) Progress

func (b *MockBackup) Progress(ctx context.Context, job driver.BackupTransferJobID) (driver.BackupTransferProgressReport, error)

func (*MockBackup) Restore

func (b *MockBackup) Restore(ctx context.Context, id driver.BackupID, opt *driver.BackupRestoreOptions) error

func (*MockBackup) Upload

func (b *MockBackup) Upload(ctx context.Context, id driver.BackupID, remoteRepository string, config interface{}) (driver.BackupTransferJobID, error)

type MockBatch

type MockBatch struct{}

func (*MockBatch) BatchID

func (b *MockBatch) BatchID() string

func (*MockBatch) Delete

func (b *MockBatch) Delete(ctx context.Context) error

func (*MockBatch) Extend

func (b *MockBatch) Extend(ctx context.Context, ttl time.Duration) error

func (*MockBatch) LastTick

func (b *MockBatch) LastTick() driver.Tick

type MockClient

type MockClient struct{}

func (*MockClient) AccessibleDatabases

func (c *MockClient) AccessibleDatabases(ctx context.Context) ([]driver.Database, error)

func (*MockClient) Backup

func (c *MockClient) Backup() driver.ClientBackup

Backup functions

func (*MockClient) Cluster

func (c *MockClient) Cluster(ctx context.Context) (driver.Cluster, error)

Cluster functions

func (*MockClient) Connection

func (c *MockClient) Connection() driver.Connection

func (*MockClient) CreateDatabase

func (c *MockClient) CreateDatabase(ctx context.Context, name string, options *driver.CreateDatabaseOptions) (driver.Database, error)

func (*MockClient) CreateUser

func (c *MockClient) CreateUser(ctx context.Context, name string, options *driver.UserOptions) (driver.User, error)

func (*MockClient) Database

func (c *MockClient) Database(ctx context.Context, name string) (driver.Database, error)

Database functions

func (*MockClient) DatabaseExists

func (c *MockClient) DatabaseExists(ctx context.Context, name string) (bool, error)

func (*MockClient) Databases

func (c *MockClient) Databases(ctx context.Context) ([]driver.Database, error)

func (*MockClient) Foxx

func (c *MockClient) Foxx() driver.FoxxService

func (*MockClient) GetLogLevels

func (c *MockClient) GetLogLevels(ctx context.Context, opts *driver.LogLevelsGetOptions) (driver.LogLevels, error)

func (*MockClient) Logs

func (c *MockClient) Logs(ctx context.Context) (driver.ServerLogs, error)

func (*MockClient) Metrics

func (c *MockClient) Metrics(ctx context.Context) ([]byte, error)

func (*MockClient) MetricsForSingleServer

func (c *MockClient) MetricsForSingleServer(ctx context.Context, serverID string) ([]byte, error)

func (*MockClient) Replication

func (c *MockClient) Replication() driver.Replication

Replication functions

func (*MockClient) ServerID

func (c *MockClient) ServerID(ctx context.Context) (string, error)

func (*MockClient) ServerMode

func (c *MockClient) ServerMode(ctx context.Context) (driver.ServerMode, error)

Server/cluster administration functions

func (*MockClient) ServerRole

func (c *MockClient) ServerRole(ctx context.Context) (driver.ServerRole, error)

func (*MockClient) SetLogLevels

func (c *MockClient) SetLogLevels(ctx context.Context, logLevels driver.LogLevels, opts *driver.LogLevelsSetOptions) error

func (*MockClient) SetServerMode

func (c *MockClient) SetServerMode(ctx context.Context, mode driver.ServerMode) error

func (*MockClient) Shutdown

func (c *MockClient) Shutdown(ctx context.Context, removeFromCluster bool) error

func (*MockClient) ShutdownInfoV2

func (c *MockClient) ShutdownInfoV2(ctx context.Context) (driver.ShutdownInfo, error)

func (*MockClient) ShutdownV2

func (c *MockClient) ShutdownV2(ctx context.Context, removeFromCluster, graceful bool) error

func (*MockClient) Statistics

func (c *MockClient) Statistics(ctx context.Context) (driver.ServerStatistics, error)

func (*MockClient) SynchronizeEndpoints

func (c *MockClient) SynchronizeEndpoints(ctx context.Context) error

func (*MockClient) SynchronizeEndpoints2

func (c *MockClient) SynchronizeEndpoints2(ctx context.Context, dbname string) error

func (*MockClient) User

func (c *MockClient) User(ctx context.Context, name string) (driver.User, error)

User functions

func (*MockClient) UserExists

func (c *MockClient) UserExists(ctx context.Context, name string) (bool, error)

func (*MockClient) Users

func (c *MockClient) Users(ctx context.Context) ([]driver.User, error)

func (*MockClient) Version

func (c *MockClient) Version(ctx context.Context) (driver.VersionInfo, error)

Individual server information functions

type MockCluster

type MockCluster struct{}

func (*MockCluster) CleanOutServer

func (c *MockCluster) CleanOutServer(ctx context.Context, serverID string) error

func (*MockCluster) DatabaseInventory

func (c *MockCluster) DatabaseInventory(ctx context.Context, db driver.Database) (driver.DatabaseInventory, error)

func (*MockCluster) Health

func (c *MockCluster) Health(ctx context.Context) (driver.ClusterHealth, error)

func (*MockCluster) IsCleanedOut

func (c *MockCluster) IsCleanedOut(ctx context.Context, serverID string) (bool, error)

func (*MockCluster) MoveShard

func (c *MockCluster) MoveShard(ctx context.Context, col driver.Collection, shard driver.ShardID, fromServer, toServer driver.ServerID) error

func (*MockCluster) RemoveServer

func (c *MockCluster) RemoveServer(ctx context.Context, serverID driver.ServerID) error

func (*MockCluster) ResignServer

func (c *MockCluster) ResignServer(ctx context.Context, serverID string) error

type MockCollection

type MockCollection struct{}

func (*MockCollection) Checksum

func (c *MockCollection) Checksum(ctx context.Context, withRevisions bool, withData bool) (driver.CollectionChecksum, error)

func (*MockCollection) Count

func (c *MockCollection) Count(ctx context.Context) (int64, error)

func (*MockCollection) CreateDocument

func (c *MockCollection) CreateDocument(ctx context.Context, document interface{}) (driver.DocumentMeta, error)

func (*MockCollection) CreateDocuments

func (c *MockCollection) CreateDocuments(ctx context.Context, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)

func (*MockCollection) Database

func (c *MockCollection) Database() driver.Database

func (*MockCollection) DocumentExists

func (c *MockCollection) DocumentExists(ctx context.Context, key string) (bool, error)

Collection documents

func (*MockCollection) EnsureFullTextIndex

func (c *MockCollection) EnsureFullTextIndex(ctx context.Context, fields []string, options *driver.EnsureFullTextIndexOptions) (driver.Index, bool, error)

func (*MockCollection) EnsureGeoIndex

func (c *MockCollection) EnsureGeoIndex(ctx context.Context, fields []string, options *driver.EnsureGeoIndexOptions) (driver.Index, bool, error)

func (*MockCollection) EnsureHashIndex

func (c *MockCollection) EnsureHashIndex(ctx context.Context, fields []string, options *driver.EnsureHashIndexOptions) (driver.Index, bool, error)

func (*MockCollection) EnsureInvertedIndex

func (c *MockCollection) EnsureInvertedIndex(ctx context.Context, options *driver.InvertedIndexOptions) (driver.Index, bool, error)

func (*MockCollection) EnsurePersistentIndex

func (c *MockCollection) EnsurePersistentIndex(ctx context.Context, fields []string, options *driver.EnsurePersistentIndexOptions) (driver.Index, bool, error)

func (*MockCollection) EnsureSkipListIndex

func (c *MockCollection) EnsureSkipListIndex(ctx context.Context, fields []string, options *driver.EnsureSkipListIndexOptions) (driver.Index, bool, error)

func (*MockCollection) EnsureTTLIndex

func (c *MockCollection) EnsureTTLIndex(ctx context.Context, field string, expireAfter int, options *driver.EnsureTTLIndexOptions) (driver.Index, bool, error)

func (*MockCollection) EnsureZKDIndex

func (c *MockCollection) EnsureZKDIndex(ctx context.Context, fields []string, options *driver.EnsureZKDIndexOptions) (driver.Index, bool, error)

func (*MockCollection) ImportDocuments

func (c *MockCollection) ImportDocuments(ctx context.Context, documents interface{}, options *driver.ImportDocumentOptions) (driver.ImportDocumentStatistics, error)

func (*MockCollection) Index

func (c *MockCollection) Index(ctx context.Context, name string) (driver.Index, error)

Index functions

func (*MockCollection) IndexExists

func (c *MockCollection) IndexExists(ctx context.Context, name string) (bool, error)

func (*MockCollection) Indexes

func (c *MockCollection) Indexes(ctx context.Context) ([]driver.Index, error)

func (*MockCollection) Load

func (c *MockCollection) Load(ctx context.Context) error

func (*MockCollection) Name

func (c *MockCollection) Name() string

func (*MockCollection) Properties

func (c *MockCollection) Properties(ctx context.Context) (driver.CollectionProperties, error)

func (*MockCollection) ReadDocument

func (c *MockCollection) ReadDocument(ctx context.Context, key string, result interface{}) (driver.DocumentMeta, error)

func (*MockCollection) ReadDocuments

func (c *MockCollection) ReadDocuments(ctx context.Context, keys []string, results interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)

func (*MockCollection) Remove

func (c *MockCollection) Remove(ctx context.Context) error

func (*MockCollection) RemoveDocument

func (c *MockCollection) RemoveDocument(ctx context.Context, key string) (driver.DocumentMeta, error)

func (*MockCollection) RemoveDocuments

func (c *MockCollection) RemoveDocuments(ctx context.Context, keys []string) (driver.DocumentMetaSlice, driver.ErrorSlice, error)

func (*MockCollection) ReplaceDocument

func (c *MockCollection) ReplaceDocument(ctx context.Context, key string, document interface{}) (driver.DocumentMeta, error)

func (*MockCollection) ReplaceDocuments

func (c *MockCollection) ReplaceDocuments(ctx context.Context, keys []string, documents interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)

func (*MockCollection) Revision

func (c *MockCollection) Revision(ctx context.Context) (string, error)

func (*MockCollection) SetProperties

func (c *MockCollection) SetProperties(ctx context.Context, options driver.SetCollectionPropertiesOptions) error

func (*MockCollection) Shards

func (c *MockCollection) Shards(ctx context.Context, details bool) (driver.CollectionShards, error)

func (*MockCollection) Statistics

func (c *MockCollection) Statistics(ctx context.Context) (driver.CollectionStatistics, error)

func (*MockCollection) Status

func (c *MockCollection) Status(ctx context.Context) (driver.CollectionStatus, error)

func (*MockCollection) Truncate

func (c *MockCollection) Truncate(ctx context.Context) error

func (*MockCollection) Unload

func (c *MockCollection) Unload(ctx context.Context) error

func (*MockCollection) UpdateDocument

func (c *MockCollection) UpdateDocument(ctx context.Context, key string, update interface{}) (driver.DocumentMeta, error)

func (*MockCollection) UpdateDocuments

func (c *MockCollection) UpdateDocuments(ctx context.Context, keys []string, updates interface{}) (driver.DocumentMetaSlice, driver.ErrorSlice, error)

type MockConnection

type MockConnection struct{}

func (*MockConnection) Do

func (c *MockConnection) Do(ctx context.Context, req driver.Request) (driver.Response, error)

func (*MockConnection) Endpoints

func (c *MockConnection) Endpoints() []string

func (*MockConnection) NewRequest

func (c *MockConnection) NewRequest(method, path string) (driver.Request, error)

Connection

func (*MockConnection) Protocols

func (c *MockConnection) Protocols() driver.ProtocolSet

func (*MockConnection) SetAuthentication

func (c *MockConnection) SetAuthentication(driver.Authentication) (driver.Connection, error)

func (*MockConnection) Unmarshal

func (c *MockConnection) Unmarshal(data driver.RawObject, result interface{}) error

func (*MockConnection) UpdateEndpoints

func (c *MockConnection) UpdateEndpoints(endpoints []string) error

type MockCursor

type MockCursor struct{}

func (*MockCursor) Close

func (c *MockCursor) Close() error

func (*MockCursor) Count

func (c *MockCursor) Count() int64

func (*MockCursor) Extra

func (c *MockCursor) Extra() driver.QueryExtra

func (*MockCursor) HasMore

func (c *MockCursor) HasMore() bool

func (*MockCursor) ReadDocument

func (c *MockCursor) ReadDocument(ctx context.Context, result interface{}) (driver.DocumentMeta, error)

func (*MockCursor) RetryReadDocument

func (qe *MockCursor) RetryReadDocument(ctx context.Context, result interface{}) (driver.DocumentMeta, error)

func (*MockCursor) Statistics

func (c *MockCursor) Statistics() driver.QueryStatistics

type MockDatabase

type MockDatabase struct{}

func (*MockDatabase) AbortTransaction

func (db *MockDatabase) AbortTransaction(ctx context.Context, tid driver.TransactionID, opts *driver.AbortTransactionOptions) error

func (*MockDatabase) Analyzer

func (db *MockDatabase) Analyzer(ctx context.Context, name string) (driver.ArangoSearchAnalyzer, error)

func (*MockDatabase) Analyzers

func (db *MockDatabase) Analyzers(ctx context.Context) ([]driver.ArangoSearchAnalyzer, error)

func (*MockDatabase) BeginTransaction

func (db *MockDatabase) BeginTransaction(ctx context.Context, cols driver.TransactionCollections, opts *driver.BeginTransactionOptions) (driver.TransactionID, error)

Streaming trasnaction functions

func (*MockDatabase) CancelJob

func (db *MockDatabase) CancelJob(ctx context.Context, id string) error

func (*MockDatabase) Collection

func (db *MockDatabase) Collection(ctx context.Context, name string) (driver.Collection, error)

DatabaseCollections

func (*MockDatabase) CollectionExists

func (db *MockDatabase) CollectionExists(ctx context.Context, name string) (bool, error)

func (*MockDatabase) Collections

func (db *MockDatabase) Collections(ctx context.Context) ([]driver.Collection, error)

func (*MockDatabase) CommitTransaction

func (db *MockDatabase) CommitTransaction(ctx context.Context, tid driver.TransactionID, opts *driver.CommitTransactionOptions) error

func (*MockDatabase) CreateArangoSearchAliasView

func (db *MockDatabase) CreateArangoSearchAliasView(ctx context.Context, name string, options *driver.ArangoSearchAliasViewProperties) (driver.ArangoSearchViewAlias, error)

func (*MockDatabase) CreateArangoSearchView

func (db *MockDatabase) CreateArangoSearchView(ctx context.Context, name string, options *driver.ArangoSearchViewProperties) (driver.ArangoSearchView, error)

func (*MockDatabase) CreateCollection

func (db *MockDatabase) CreateCollection(ctx context.Context, name string, options *driver.CreateCollectionOptions) (driver.Collection, error)

func (*MockDatabase) CreateGraph

func (db *MockDatabase) CreateGraph(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)

func (*MockDatabase) CreateGraphV2

func (db *MockDatabase) CreateGraphV2(ctx context.Context, name string, options *driver.CreateGraphOptions) (driver.Graph, error)

func (*MockDatabase) EngineInfo

func (db *MockDatabase) EngineInfo(ctx context.Context) (driver.EngineInfo, error)

func (*MockDatabase) EnsureAnalyzer

func (db *MockDatabase) EnsureAnalyzer(ctx context.Context, analyzer driver.ArangoSearchAnalyzerDefinition) (bool, driver.ArangoSearchAnalyzer, error)

ArangoSearch Analyers API

func (*MockDatabase) ExplainQuery

func (db *MockDatabase) ExplainQuery(ctx context.Context, query string, bindVars map[string]interface{}, opts *driver.ExplainQueryOptions) (driver.ExplainQueryResult, error)

Query functions

func (*MockDatabase) GetJob

func (db *MockDatabase) GetJob(ctx context.Context, id string) (*driver.PregelJob, error)

func (*MockDatabase) GetJobs

func (db *MockDatabase) GetJobs(ctx context.Context) ([]*driver.PregelJob, error)

func (*MockDatabase) Graph

func (db *MockDatabase) Graph(ctx context.Context, name string) (driver.Graph, error)

Graph functions

func (*MockDatabase) GraphExists

func (db *MockDatabase) GraphExists(ctx context.Context, name string) (bool, error)

func (*MockDatabase) Graphs

func (db *MockDatabase) Graphs(ctx context.Context) ([]driver.Graph, error)

func (*MockDatabase) Info

func (db *MockDatabase) Info(ctx context.Context) (driver.DatabaseInfo, error)

func (*MockDatabase) Name

func (db *MockDatabase) Name() string

func (*MockDatabase) OptimizerRulesForQueries

func (db *MockDatabase) OptimizerRulesForQueries(ctx context.Context) ([]driver.QueryRule, error)

func (*MockDatabase) Query

func (db *MockDatabase) Query(ctx context.Context, query string, bindVars map[string]interface{}) (driver.Cursor, error)

func (*MockDatabase) Remove

func (db *MockDatabase) Remove(ctx context.Context) error

func (*MockDatabase) StartJob

func (db *MockDatabase) StartJob(ctx context.Context, options driver.PregelJobOptions) (string, error)

Pregel functions

func (*MockDatabase) Transaction

func (db *MockDatabase) Transaction(ctx context.Context, action string, options *driver.TransactionOptions) (interface{}, error)

func (*MockDatabase) TransactionStatus

func (db *MockDatabase) TransactionStatus(ctx context.Context, tid driver.TransactionID) (driver.TransactionStatusRecord, error)

func (*MockDatabase) ValidateQuery

func (db *MockDatabase) ValidateQuery(ctx context.Context, query string) error

func (*MockDatabase) View

func (db *MockDatabase) View(ctx context.Context, name string) (driver.View, error)

View functions

func (*MockDatabase) ViewExists

func (db *MockDatabase) ViewExists(ctx context.Context, name string) (bool, error)

func (*MockDatabase) Views

func (db *MockDatabase) Views(ctx context.Context) ([]driver.View, error)

type MockFoxxService

type MockFoxxService struct{}

func (*MockFoxxService) InstallFoxxService

func (f *MockFoxxService) InstallFoxxService(ctx context.Context, zipFile string, options driver.FoxxCreateOptions) error

func (*MockFoxxService) UninstallFoxxService

func (f *MockFoxxService) UninstallFoxxService(ctx context.Context, options driver.FoxxDeleteOptions) error

type MockGraph

type MockGraph struct{}

func (*MockGraph) CreateEdgeCollection

func (g *MockGraph) CreateEdgeCollection(ctx context.Context, collection string, constraints driver.VertexConstraints) (driver.Collection, error)

func (*MockGraph) CreateEdgeCollectionWithOptions

func (g *MockGraph) CreateEdgeCollectionWithOptions(ctx context.Context, collection string, constraints driver.VertexConstraints, options driver.CreateEdgeCollectionOptions) (driver.Collection, error)

func (*MockGraph) CreateVertexCollection

func (g *MockGraph) CreateVertexCollection(ctx context.Context, collection string) (driver.Collection, error)

func (*MockGraph) CreateVertexCollectionWithOptions

func (g *MockGraph) CreateVertexCollectionWithOptions(ctx context.Context, collection string, options driver.CreateVertexCollectionOptions) (driver.Collection, error)

func (*MockGraph) EdgeCollection

func (g *MockGraph) EdgeCollection(ctx context.Context, name string) (driver.Collection, driver.VertexConstraints, error)

GraphEdgeCollections

func (*MockGraph) EdgeCollectionExists

func (g *MockGraph) EdgeCollectionExists(ctx context.Context, name string) (bool, error)

func (*MockGraph) EdgeCollections

func (g *MockGraph) EdgeCollections(ctx context.Context) ([]driver.Collection, []driver.VertexConstraints, error)

func (*MockGraph) EdgeDefinitions

func (g *MockGraph) EdgeDefinitions() []driver.EdgeDefinition

func (*MockGraph) ID

func (g *MockGraph) ID() string

func (*MockGraph) IsDisjoint

func (g *MockGraph) IsDisjoint() bool

func (*MockGraph) IsSatellite

func (g *MockGraph) IsSatellite() bool

func (*MockGraph) IsSmart

func (g *MockGraph) IsSmart() bool

func (*MockGraph) Key

func (g *MockGraph) Key() driver.DocumentID

func (*MockGraph) MinReplicationFactor

func (g *MockGraph) MinReplicationFactor() int

func (*MockGraph) Name

func (g *MockGraph) Name() string

func (*MockGraph) NumberOfShards

func (g *MockGraph) NumberOfShards() int

func (*MockGraph) OrphanCollections

func (g *MockGraph) OrphanCollections() []string

func (*MockGraph) Remove

func (g *MockGraph) Remove(ctx context.Context) error

func (*MockGraph) ReplicationFactor

func (g *MockGraph) ReplicationFactor() int

func (*MockGraph) Rev

func (g *MockGraph) Rev() string

func (*MockGraph) SetVertexConstraints

func (g *MockGraph) SetVertexConstraints(ctx context.Context, collection string, constraints driver.VertexConstraints) error

func (*MockGraph) SmartGraphAttribute

func (g *MockGraph) SmartGraphAttribute() string

func (*MockGraph) VertexCollection

func (g *MockGraph) VertexCollection(ctx context.Context, name string) (driver.Collection, error)

GraphVertexCollections

func (*MockGraph) VertexCollectionExists

func (g *MockGraph) VertexCollectionExists(ctx context.Context, name string) (bool, error)

func (*MockGraph) VertexCollections

func (g *MockGraph) VertexCollections(ctx context.Context) ([]driver.Collection, error)

func (*MockGraph) WriteConcern

func (g *MockGraph) WriteConcern() int

type MockIndex

type MockIndex struct{}

func (*MockIndex) CacheEnabled

func (i *MockIndex) CacheEnabled() bool

func (*MockIndex) Deduplicate

func (i *MockIndex) Deduplicate() bool

func (*MockIndex) Estimates

func (i *MockIndex) Estimates() bool

func (*MockIndex) ExpireAfter

func (i *MockIndex) ExpireAfter() int

func (*MockIndex) Fields

func (i *MockIndex) Fields() []string

func (*MockIndex) GeoJSON

func (i *MockIndex) GeoJSON() bool

func (*MockIndex) ID

func (i *MockIndex) ID() string

func (*MockIndex) InBackground

func (i *MockIndex) InBackground() bool

func (*MockIndex) InvertedIndexOptions

func (i *MockIndex) InvertedIndexOptions() driver.InvertedIndexOptions

func (*MockIndex) LegacyPolygons

func (i *MockIndex) LegacyPolygons() bool

func (*MockIndex) MinLength

func (i *MockIndex) MinLength() int

func (*MockIndex) Name

func (i *MockIndex) Name() string

func (*MockIndex) Remove

func (i *MockIndex) Remove(ctx context.Context) error

func (*MockIndex) Sparse

func (i *MockIndex) Sparse() bool

func (*MockIndex) StoredValues

func (i *MockIndex) StoredValues() []string

func (*MockIndex) Type

func (i *MockIndex) Type() driver.IndexType

func (*MockIndex) Unique

func (i *MockIndex) Unique() bool

func (*MockIndex) UserName

func (i *MockIndex) UserName() string

type MockQueryExtra

type MockQueryExtra struct{}

func (*MockQueryExtra) GetPlanRaw

func (qe *MockQueryExtra) GetPlanRaw() ([]byte, bool, error)

func (*MockQueryExtra) GetProfileRaw

func (qe *MockQueryExtra) GetProfileRaw() ([]byte, bool, error)

func (*MockQueryExtra) GetStatistics

func (qe *MockQueryExtra) GetStatistics() driver.QueryStatistics

type MockQueryStatistics

type MockQueryStatistics struct{}

func (*MockQueryStatistics) ExecutionTime

func (qs *MockQueryStatistics) ExecutionTime() time.Duration

func (*MockQueryStatistics) Filtered

func (qs *MockQueryStatistics) Filtered() int64

func (*MockQueryStatistics) FullCount

func (qs *MockQueryStatistics) FullCount() int64

func (*MockQueryStatistics) ScannedFull

func (qs *MockQueryStatistics) ScannedFull() int64

func (*MockQueryStatistics) ScannedIndex

func (qs *MockQueryStatistics) ScannedIndex() int64

func (*MockQueryStatistics) WritesExecuted

func (qs *MockQueryStatistics) WritesExecuted() int64

func (*MockQueryStatistics) WritesIgnored

func (qs *MockQueryStatistics) WritesIgnored() int64

type MockReplication

type MockReplication struct{}

func (*MockReplication) CreateBatch

func (r *MockReplication) CreateBatch(ctx context.Context, db driver.Database, serverID int64, ttl time.Duration) (driver.Batch, error)

func (*MockReplication) DatabaseInventory

func (r *MockReplication) DatabaseInventory(ctx context.Context, db driver.Database) (driver.DatabaseInventory, error)

func (*MockReplication) GetRevisionDocuments

func (r *MockReplication) GetRevisionDocuments(ctx context.Context, db driver.Database, batchId, collection string, revisions driver.Revisions) ([]map[string]interface{}, error)

func (*MockReplication) GetRevisionTree

func (r *MockReplication) GetRevisionTree(ctx context.Context, db driver.Database, batchId, collection string) (driver.RevisionTree, error)

func (*MockReplication) GetRevisionsByRanges

func (r *MockReplication) GetRevisionsByRanges(ctx context.Context, db driver.Database, batchId, collection string, minMaxRevision []driver.RevisionMinMax, resume driver.RevisionUInt64) (driver.RevisionRanges, error)

type MockRequest

type MockRequest struct{}

func (*MockRequest) Clone

func (r *MockRequest) Clone() driver.Request

func (*MockRequest) Method

func (r *MockRequest) Method() string

func (*MockRequest) Path

func (r *MockRequest) Path() string

func (*MockRequest) SetBody

func (r *MockRequest) SetBody(body ...interface{}) (driver.Request, error)

func (*MockRequest) SetBodyArray

func (r *MockRequest) SetBodyArray(bodyArray interface{}, mergeArray []map[string]interface{}) (driver.Request, error)

func (*MockRequest) SetBodyImportArray

func (r *MockRequest) SetBodyImportArray(bodyArray interface{}) (driver.Request, error)

func (*MockRequest) SetHeader

func (r *MockRequest) SetHeader(key, value string) driver.Request

func (*MockRequest) SetQuery

func (r *MockRequest) SetQuery(key, value string) driver.Request

Request

func (*MockRequest) Written

func (r *MockRequest) Written() bool

type MockResponse

type MockResponse struct{}

func (*MockResponse) CheckStatus

func (r *MockResponse) CheckStatus(validStatusCodes ...int) error

func (*MockResponse) Endpoint

func (r *MockResponse) Endpoint() string

func (*MockResponse) Header

func (r *MockResponse) Header(key string) string

func (*MockResponse) ParseArrayBody

func (r *MockResponse) ParseArrayBody() ([]driver.Response, error)

func (*MockResponse) ParseBody

func (r *MockResponse) ParseBody(field string, result interface{}) error

func (*MockResponse) StatusCode

func (r *MockResponse) StatusCode() int

response

type MockUser

type MockUser struct{}

func (*MockUser) AccessibleDatabases

func (u *MockUser) AccessibleDatabases(ctx context.Context) ([]driver.Database, error)

func (*MockUser) Extra

func (u *MockUser) Extra(result interface{}) error

func (*MockUser) GetCollectionAccess

func (u *MockUser) GetCollectionAccess(ctx context.Context, col driver.AccessTarget) (driver.Grant, error)

func (*MockUser) GetDatabaseAccess

func (u *MockUser) GetDatabaseAccess(ctx context.Context, db driver.Database) (driver.Grant, error)

func (*MockUser) GrantReadWriteAccess

func (u *MockUser) GrantReadWriteAccess(ctx context.Context, db driver.Database) error

func (*MockUser) IsActive

func (u *MockUser) IsActive() bool

func (*MockUser) IsPasswordChangeNeeded

func (u *MockUser) IsPasswordChangeNeeded() bool

func (*MockUser) Name

func (u *MockUser) Name() string

func (*MockUser) Remove

func (u *MockUser) Remove(ctx context.Context) error

func (*MockUser) RemoveCollectionAccess

func (u *MockUser) RemoveCollectionAccess(ctx context.Context, col driver.AccessTarget) error

func (*MockUser) RemoveDatabaseAccess

func (u *MockUser) RemoveDatabaseAccess(ctx context.Context, db driver.Database) error

func (*MockUser) Replace

func (u *MockUser) Replace(ctx context.Context, options driver.UserOptions) error

func (*MockUser) RevokeAccess

func (u *MockUser) RevokeAccess(ctx context.Context, db driver.Database) error

func (*MockUser) SetCollectionAccess

func (u *MockUser) SetCollectionAccess(ctx context.Context, col driver.AccessTarget, access driver.Grant) error

func (*MockUser) SetDatabaseAccess

func (u *MockUser) SetDatabaseAccess(ctx context.Context, db driver.Database, access driver.Grant) error

func (*MockUser) Update

func (u *MockUser) Update(ctx context.Context, options driver.UserOptions) error

type MockView

type MockView struct{}

func (*MockView) ArangoSearchView

func (v *MockView) ArangoSearchView() (driver.ArangoSearchView, error)

func (*MockView) ArangoSearchViewAlias

func (v *MockView) ArangoSearchViewAlias() (driver.ArangoSearchViewAlias, error)

func (*MockView) Database

func (v *MockView) Database() driver.Database

func (*MockView) Name

func (v *MockView) Name() string

func (*MockView) Remove

func (v *MockView) Remove(ctx context.Context) error

func (*MockView) Rename

func (v *MockView) Rename(ctx context.Context, newName string) error

func (*MockView) Type

func (v *MockView) Type() driver.ViewType

Jump to

Keyboard shortcuts

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