Documentation
¶
Overview ¶
Package arangodb is a generated GoMock package.
Package arangodb is a generated GoMock package.
Package arangodb is a generated GoMock package.
Package arangodb is a generated GoMock package.
Package arangodb is a generated GoMock package.
Index ¶
- Variables
- type ArangoDB
- type Client
- func (c *Client) Connect()
- func (c *Client) GetEdges(ctx context.Context, dbName, graphName, edgeCollection, vertexID string, ...) error
- func (c *Client) HealthCheck(ctx context.Context) (any, error)
- func (c *Client) Query(ctx context.Context, dbName, query string, bindVars map[string]any, result any) error
- func (c *Client) UseLogger(logger any)
- func (c *Client) UseMetrics(metrics any)
- func (c *Client) UseTracer(tracer any)
- type Config
- type DB
- func (d *DB) CreateCollection(ctx context.Context, database, collection string, isEdge bool) error
- func (d *DB) CreateDB(ctx context.Context, database string) error
- func (d *DB) DropCollection(ctx context.Context, database, collectionName string) error
- func (d *DB) DropDB(ctx context.Context, database string) error
- type Document
- func (d *Document) CreateDocument(ctx context.Context, dbName, collectionName string, document any) (string, error)
- func (d *Document) DeleteDocument(ctx context.Context, dbName, collectionName, documentID string) error
- func (d *Document) GetDocument(ctx context.Context, dbName, collectionName, documentID string, result any) error
- func (d *Document) UpdateDocument(ctx context.Context, dbName, collectionName, documentID string, document any) error
- type EdgeDefinition
- type EdgeDetails
- type EdgeDirection
- type GetEdgesOptions
- type Graph
- type GraphsResponseReader
- type Health
- type Logger
- type Metrics
- type MockArango
- func (m *MockArango) AccessibleDatabases(ctx context.Context) ([]arangodb.Database, error)
- func (m *MockArango) AddUser(ctx context.Context, username string, options any) error
- func (m *MockArango) AsyncJobCancel(ctx context.Context, jobID string) (bool, error)
- func (m *MockArango) AsyncJobDelete(ctx context.Context, deleteType arangodb.AsyncJobDeleteType, ...) (bool, error)
- func (m *MockArango) AsyncJobList(ctx context.Context, jobType arangodb.AsyncJobStatusType, ...) ([]string, error)
- func (m *MockArango) AsyncJobStatus(ctx context.Context, jobID string) (arangodb.AsyncJobStatusType, error)
- func (m *MockArango) BackupCreate(ctx context.Context, opt *arangodb.BackupCreateOptions) (arangodb.BackupResponse, error)
- func (m *MockArango) BackupDelete(ctx context.Context, id string) error
- func (m *MockArango) BackupDownload(ctx context.Context, backupId string, remoteRepository string, ...) (arangodb.TransferMonitor, error)
- func (m *MockArango) BackupList(ctx context.Context, opt *arangodb.BackupListOptions) (arangodb.ListBackupsResponse, error)
- func (m *MockArango) BackupRestore(ctx context.Context, id string) (arangodb.BackupRestoreResponse, error)
- func (m *MockArango) BackupUpload(ctx context.Context, backupId string, remoteRepository string, ...) (arangodb.TransferMonitor, error)
- func (m *MockArango) CheckAvailability(ctx context.Context, serverEndpoint string) error
- func (m *MockArango) CleanOutServer(ctx context.Context, serverID arangodb.ServerID) (string, error)
- func (m *MockArango) Connect()
- func (m *MockArango) Connection() connection.Connection
- func (m *MockArango) CreateCollection(ctx context.Context, database, collection string, isEdge bool) error
- func (m *MockArango) CreateDB(ctx context.Context, database string) error
- func (m *MockArango) CreateDatabase(ctx context.Context, name string, options *arangodb.CreateDatabaseOptions) (arangodb.Database, error)
- func (m *MockArango) CreateDocument(ctx context.Context, dbName, collectionName string, document any) (string, error)
- func (m *MockArango) CreateEdgeDocument(ctx context.Context, dbName, collectionName, from, to string, document any) (string, error)
- func (m *MockArango) CreateGraph(ctx context.Context, database, graph string, edgeDefinitions any) error
- func (m *MockArango) CreateUser(ctx context.Context, name string, options *arangodb.UserOptions) (arangodb.User, error)
- func (m *MockArango) Database(ctx context.Context, name string) (arangodb.Database, error)
- func (m *MockArango) DatabaseExists(ctx context.Context, name string) (bool, error)
- func (m *MockArango) DatabaseInventory(ctx context.Context, dbName string) (arangodb.DatabaseInventory, error)
- func (m *MockArango) Databases(ctx context.Context) ([]arangodb.Database, error)
- func (m *MockArango) Delete(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)
- func (m *MockArango) DeleteDocument(ctx context.Context, dbName, collectionName, documentID string) error
- func (m *MockArango) DropCollection(ctx context.Context, database, collection string) error
- func (m *MockArango) DropDB(ctx context.Context, database string) error
- func (m *MockArango) DropGraph(ctx context.Context, database, graph string) error
- func (m *MockArango) DropUser(ctx context.Context, username string) error
- func (m *MockArango) EXPECT() *MockArangoMockRecorder
- func (m *MockArango) Get(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)
- func (m *MockArango) GetDatabase(ctx context.Context, name string, options *arangodb.GetDatabaseOptions) (arangodb.Database, error)
- func (m *MockArango) GetDocument(ctx context.Context, dbName, collectionName, documentID string, result any) error
- func (m *MockArango) GetLicense(ctx context.Context) (arangodb.License, error)
- func (m *MockArango) GetLogLevels(ctx context.Context, opts *arangodb.LogLevelsGetOptions) (arangodb.LogLevels, error)
- func (m *MockArango) GrantCollection(ctx context.Context, database, collection, username, permission string) error
- func (m *MockArango) GrantDB(ctx context.Context, database, username, permission string) error
- func (m *MockArango) Head(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)
- func (m *MockArango) Health(ctx context.Context) (arangodb.ClusterHealth, error)
- func (m *MockArango) HealthCheck(ctx context.Context) (any, error)
- func (m *MockArango) IsCleanedOut(ctx context.Context, serverID arangodb.ServerID) (bool, error)
- func (m *MockArango) ListCollections(ctx context.Context, database string) ([]string, error)
- func (m *MockArango) ListDBs(ctx context.Context) ([]string, error)
- func (m *MockArango) ListGraphs(ctx context.Context, database string) ([]string, error)
- func (m *MockArango) MoveShard(ctx context.Context, col arangodb.Collection, shard arangodb.ShardID, ...) (string, error)
- func (m *MockArango) NumberOfServers(ctx context.Context) (arangodb.NumberOfServersResponse, error)
- func (m *MockArango) Patch(ctx context.Context, output, input interface{}, urlParts ...string) (connection.Response, error)
- func (m *MockArango) Post(ctx context.Context, output, input interface{}, urlParts ...string) (connection.Response, error)
- func (m *MockArango) Put(ctx context.Context, output, input interface{}, urlParts ...string) (connection.Response, error)
- func (m *MockArango) Query(ctx context.Context, dbName, query string, bindVars map[string]any, result any) error
- func (m *MockArango) RemoveServer(ctx context.Context, serverID arangodb.ServerID) error
- func (m *MockArango) RemoveUser(ctx context.Context, name string) error
- func (m *MockArango) ReplaceUser(ctx context.Context, name string, options *arangodb.UserOptions) (arangodb.User, error)
- func (m *MockArango) ResignServer(ctx context.Context, serverID arangodb.ServerID) (string, error)
- func (m *MockArango) ServerID(ctx context.Context) (string, error)
- func (m *MockArango) ServerMode(ctx context.Context) (arangodb.ServerMode, error)
- func (m *MockArango) ServerRole(ctx context.Context) (arangodb.ServerRole, error)
- func (m *MockArango) SetLicense(ctx context.Context, license string, force bool) error
- func (m *MockArango) SetLogLevels(ctx context.Context, logLevels arangodb.LogLevels, ...) error
- func (m *MockArango) SetServerMode(ctx context.Context, mode arangodb.ServerMode) error
- func (m *MockArango) TransferMonitor(jobId string, transferType arangodb.TransferType) (arangodb.TransferMonitor, error)
- func (m *MockArango) TruncateCollection(ctx context.Context, database, collection string) error
- func (m *MockArango) UpdateDocument(ctx context.Context, dbName, collectionName, documentID string, document any) error
- func (m *MockArango) UpdateUser(ctx context.Context, name string, options *arangodb.UserOptions) (arangodb.User, error)
- func (m *MockArango) User(ctx context.Context, username string) (arangodb.User, error)
- func (m *MockArango) UserExists(ctx context.Context, name string) (bool, error)
- func (m *MockArango) Users(ctx context.Context) ([]arangodb.User, error)
- func (m *MockArango) Version(ctx context.Context) (arangodb.VersionInfo, error)
- func (m *MockArango) VersionWithOptions(ctx context.Context, opts *arangodb.GetVersionOptions) (arangodb.VersionInfo, error)
- type MockArangoMockRecorder
- func (mr *MockArangoMockRecorder) AddUser(ctx, username, options any) *gomock.Call
- func (mr *MockArangoMockRecorder) Connect() *gomock.Call
- func (mr *MockArangoMockRecorder) Connection() *gomock.Call
- func (mr *MockArangoMockRecorder) CreateCollection(ctx, database, collection, isEdge any) *gomock.Call
- func (mr *MockArangoMockRecorder) CreateDB(ctx, database any) *gomock.Call
- func (mr *MockArangoMockRecorder) CreateDatabase(ctx, name, options interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) CreateDocument(ctx, dbName, collectionName, document any) *gomock.Call
- func (mr *MockArangoMockRecorder) CreateEdgeDocument(ctx, dbName, collectionName, from, to, document any) *gomock.Call
- func (mr *MockArangoMockRecorder) CreateGraph(ctx, database, graph, edgeDefinitions any) *gomock.Call
- func (mr *MockArangoMockRecorder) Database(ctx, name any) *gomock.Call
- func (mr *MockArangoMockRecorder) Databases(ctx any) *gomock.Call
- func (mr *MockArangoMockRecorder) Delete(ctx, output interface{}, urlParts ...interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) DeleteDocument(ctx, dbName, collectionName, documentID any) *gomock.Call
- func (mr *MockArangoMockRecorder) DropCollection(ctx, database, collection any) *gomock.Call
- func (mr *MockArangoMockRecorder) DropDB(ctx, database any) *gomock.Call
- func (mr *MockArangoMockRecorder) DropGraph(ctx, database, graph any) *gomock.Call
- func (mr *MockArangoMockRecorder) DropUser(ctx, username any) *gomock.Call
- func (mr *MockArangoMockRecorder) Get(ctx, output interface{}, urlParts ...interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) GetDatabase(ctx, name, options interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) GetDocument(ctx, dbName, collectionName, documentID, result any) *gomock.Call
- func (mr *MockArangoMockRecorder) GrantCollection(ctx, database, collection, username, permission any) *gomock.Call
- func (mr *MockArangoMockRecorder) GrantDB(ctx, database, username, permission any) *gomock.Call
- func (mr *MockArangoMockRecorder) Head(ctx, output interface{}, urlParts ...interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) HealthCheck(ctx any) *gomock.Call
- func (mr *MockArangoMockRecorder) ListCollections(ctx, database any) *gomock.Call
- func (mr *MockArangoMockRecorder) ListDBs(ctx any) *gomock.Call
- func (mr *MockArangoMockRecorder) ListGraphs(ctx, database any) *gomock.Call
- func (mr *MockArangoMockRecorder) Patch(ctx, output, input interface{}, urlParts ...interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) Post(ctx, output, input interface{}, urlParts ...interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) Put(ctx, output, input interface{}, urlParts ...interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) Query(ctx, dbName, query, bindVars, result any) *gomock.Call
- func (mr *MockArangoMockRecorder) ReplaceUser(ctx, name, options interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) TruncateCollection(ctx, database, collection any) *gomock.Call
- func (mr *MockArangoMockRecorder) UpdateDocument(ctx, dbName, collectionName, documentID, document any) *gomock.Call
- func (mr *MockArangoMockRecorder) UpdateUser(ctx, name, options interface{}) *gomock.Call
- func (mr *MockArangoMockRecorder) User(ctx, username any) *gomock.Call
- func (mr *MockArangoMockRecorder) Version(ctx any) *gomock.Call
- func (mr *MockArangoMockRecorder) VersionWithOptions(ctx, opts interface{}) *gomock.Call
- type MockCollection
- func (m *MockCollection) Count(ctx context.Context) (int64, error)
- func (m *MockCollection) CreateDocument(ctx context.Context, document any) (arangodb.CollectionDocumentCreateResponse, error)
- func (m *MockCollection) CreateDocumentWithOptions(ctx context.Context, document any, ...) (arangodb.CollectionDocumentCreateResponse, error)
- func (m *MockCollection) CreateDocuments(ctx context.Context, documents any) (arangodb.CollectionDocumentCreateResponseReader, error)
- func (m *MockCollection) CreateDocumentsWithOptions(ctx context.Context, documents any, ...) (arangodb.CollectionDocumentCreateResponseReader, error)
- func (m *MockCollection) Database() arangodb.Database
- func (m *MockCollection) DeleteDocument(ctx context.Context, key string) (arangodb.CollectionDocumentDeleteResponse, error)
- func (m *MockCollection) DeleteDocumentWithOptions(ctx context.Context, key string, ...) (arangodb.CollectionDocumentDeleteResponse, error)
- func (m *MockCollection) DeleteDocuments(ctx context.Context, keys []string) (arangodb.CollectionDocumentDeleteResponseReader, error)
- func (m *MockCollection) DeleteDocumentsWithOptions(ctx context.Context, documents any, ...) (arangodb.CollectionDocumentDeleteResponseReader, error)
- func (m *MockCollection) DeleteIndex(ctx context.Context, name string) error
- func (m *MockCollection) DeleteIndexByID(ctx context.Context, id string) error
- func (m *MockCollection) DocumentExists(ctx context.Context, key string) (bool, error)
- func (m *MockCollection) EXPECT() *MockCollectionMockRecorder
- func (m *MockCollection) EnsureGeoIndex(ctx context.Context, fields []string, options *arangodb.CreateGeoIndexOptions) (arangodb.IndexResponse, bool, error)
- func (m *MockCollection) EnsureInvertedIndex(ctx context.Context, options *arangodb.InvertedIndexOptions) (arangodb.IndexResponse, bool, error)
- func (m *MockCollection) EnsureMDIIndex(ctx context.Context, fields []string, options *arangodb.CreateMDIIndexOptions) (arangodb.IndexResponse, bool, error)
- func (m *MockCollection) EnsureMDIPrefixedIndex(ctx context.Context, fields []string, ...) (arangodb.IndexResponse, bool, error)
- func (m *MockCollection) EnsurePersistentIndex(ctx context.Context, fields []string, ...) (arangodb.IndexResponse, bool, error)
- func (m *MockCollection) EnsureTTLIndex(ctx context.Context, fields []string, expireAfter int, ...) (arangodb.IndexResponse, bool, error)
- func (m *MockCollection) EnsureZKDIndex(ctx context.Context, fields []string, options *arangodb.CreateZKDIndexOptions) (arangodb.IndexResponse, bool, error)
- func (m *MockCollection) Index(ctx context.Context, name string) (arangodb.IndexResponse, error)
- func (m *MockCollection) IndexExists(ctx context.Context, name string) (bool, error)
- func (m *MockCollection) Indexes(ctx context.Context) ([]arangodb.IndexResponse, error)
- func (m *MockCollection) Name() string
- func (m *MockCollection) Properties(ctx context.Context) (arangodb.CollectionProperties, error)
- func (m *MockCollection) ReadDocument(ctx context.Context, key string, result any) (arangodb.DocumentMeta, error)
- func (m *MockCollection) ReadDocumentWithOptions(ctx context.Context, key string, result any, ...) (arangodb.DocumentMeta, error)
- func (m *MockCollection) ReadDocuments(ctx context.Context, keys []string) (arangodb.CollectionDocumentReadResponseReader, error)
- func (m *MockCollection) ReadDocumentsWithOptions(ctx context.Context, documents any, ...) (arangodb.CollectionDocumentReadResponseReader, error)
- func (m *MockCollection) Remove(ctx context.Context) error
- func (m *MockCollection) RemoveWithOptions(ctx context.Context, opts *arangodb.RemoveCollectionOptions) error
- func (m *MockCollection) ReplaceDocument(ctx context.Context, key string, document any) (arangodb.CollectionDocumentReplaceResponse, error)
- func (m *MockCollection) ReplaceDocumentWithOptions(ctx context.Context, key string, document any, ...) (arangodb.CollectionDocumentReplaceResponse, error)
- func (m *MockCollection) ReplaceDocuments(ctx context.Context, documents any) (arangodb.CollectionDocumentReplaceResponseReader, error)
- func (m *MockCollection) ReplaceDocumentsWithOptions(ctx context.Context, documents any, ...) (arangodb.CollectionDocumentReplaceResponseReader, error)
- func (m *MockCollection) SetProperties(ctx context.Context, options arangodb.SetCollectionPropertiesOptions) error
- func (m *MockCollection) Shards(ctx context.Context, details bool) (arangodb.CollectionShards, error)
- func (m *MockCollection) Truncate(ctx context.Context) error
- func (m *MockCollection) UpdateDocument(ctx context.Context, key string, document any) (arangodb.CollectionDocumentUpdateResponse, error)
- func (m *MockCollection) UpdateDocumentWithOptions(ctx context.Context, key string, document any, ...) (arangodb.CollectionDocumentUpdateResponse, error)
- func (m *MockCollection) UpdateDocuments(ctx context.Context, documents any) (arangodb.CollectionDocumentUpdateResponseReader, error)
- func (m *MockCollection) UpdateDocumentsWithOptions(ctx context.Context, documents any, ...) (arangodb.CollectionDocumentUpdateResponseReader, error)
- type MockCollectionMockRecorder
- func (mr *MockCollectionMockRecorder) Count(ctx any) *gomock.Call
- func (mr *MockCollectionMockRecorder) CreateDocument(ctx, document any) *gomock.Call
- func (mr *MockCollectionMockRecorder) CreateDocumentWithOptions(ctx, document, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) CreateDocuments(ctx, documents any) *gomock.Call
- func (mr *MockCollectionMockRecorder) CreateDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Database() *gomock.Call
- func (mr *MockCollectionMockRecorder) DeleteDocument(ctx, key any) *gomock.Call
- func (mr *MockCollectionMockRecorder) DeleteDocumentWithOptions(ctx, key, opts any) *gomock.Call
- func (mr *MockCollectionMockRecorder) DeleteDocuments(ctx, keys any) *gomock.Call
- func (mr *MockCollectionMockRecorder) DeleteDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
- func (mr *MockCollectionMockRecorder) DeleteIndex(ctx, name any) *gomock.Call
- func (mr *MockCollectionMockRecorder) DeleteIndexByID(ctx, id any) *gomock.Call
- func (mr *MockCollectionMockRecorder) DocumentExists(ctx, key any) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsureGeoIndex(ctx, fields, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsureInvertedIndex(ctx, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsureMDIIndex(ctx, fields, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsureMDIPrefixedIndex(ctx, fields, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsurePersistentIndex(ctx, fields, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsureTTLIndex(ctx, fields, expireAfter, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsureZKDIndex(ctx, fields, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Index(ctx, name any) *gomock.Call
- func (mr *MockCollectionMockRecorder) IndexExists(ctx, name any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Indexes(ctx any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Name() *gomock.Call
- func (mr *MockCollectionMockRecorder) Properties(ctx any) *gomock.Call
- func (mr *MockCollectionMockRecorder) ReadDocument(ctx, key, result any) *gomock.Call
- func (mr *MockCollectionMockRecorder) ReadDocumentWithOptions(ctx, key, result, opts any) *gomock.Call
- func (mr *MockCollectionMockRecorder) ReadDocuments(ctx, keys any) *gomock.Call
- func (mr *MockCollectionMockRecorder) ReadDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Remove(ctx any) *gomock.Call
- func (mr *MockCollectionMockRecorder) RemoveWithOptions(ctx, opts any) *gomock.Call
- func (mr *MockCollectionMockRecorder) ReplaceDocument(ctx, key, document any) *gomock.Call
- func (mr *MockCollectionMockRecorder) ReplaceDocumentWithOptions(ctx, key, document, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) ReplaceDocuments(ctx, documents any) *gomock.Call
- func (mr *MockCollectionMockRecorder) ReplaceDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
- func (mr *MockCollectionMockRecorder) SetProperties(ctx, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Shards(ctx, details any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Truncate(ctx any) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateDocument(ctx, key, document any) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateDocumentWithOptions(ctx, key, document, options any) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateDocuments(ctx, documents any) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
- type MockDatabase
- func (m *MockDatabase) Analyzer(ctx context.Context, name string) (arangodb.Analyzer, error)
- func (m *MockDatabase) Analyzers(ctx context.Context) (arangodb.AnalyzersResponseReader, error)
- func (m *MockDatabase) BeginTransaction(ctx context.Context, cols arangodb.TransactionCollections, ...) (arangodb.Transaction, error)
- func (m *MockDatabase) Collection(ctx context.Context, name string) (arangodb.Collection, error)
- func (m *MockDatabase) CollectionExists(ctx context.Context, name string) (bool, error)
- func (m *MockDatabase) Collections(ctx context.Context) ([]arangodb.Collection, error)
- func (m *MockDatabase) CreateArangoSearchAliasView(ctx context.Context, name string, ...) (arangodb.ArangoSearchViewAlias, error)
- func (m *MockDatabase) CreateArangoSearchView(ctx context.Context, name string, options *arangodb.ArangoSearchViewProperties) (arangodb.ArangoSearchView, error)
- func (m *MockDatabase) CreateCollection(ctx context.Context, name string, props *arangodb.CreateCollectionProperties) (arangodb.Collection, error)
- func (m *MockDatabase) CreateCollectionWithOptions(ctx context.Context, name string, props *arangodb.CreateCollectionProperties, ...) (arangodb.Collection, error)
- func (m *MockDatabase) CreateGraph(ctx context.Context, name string, graph *arangodb.GraphDefinition, ...) (arangodb.Graph, error)
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) EnsureAnalyzer(ctx context.Context, analyzer *arangodb.AnalyzerDefinition) (bool, arangodb.Analyzer, error)
- func (m *MockDatabase) ExplainQuery(ctx context.Context, query string, bindVars map[string]any, ...) (arangodb.ExplainQueryResult, error)
- func (m *MockDatabase) GetCollection(ctx context.Context, name string, options *arangodb.GetCollectionOptions) (arangodb.Collection, error)
- func (m *MockDatabase) GetEdges(ctx context.Context, name, vertex string, options *arangodb.GetEdgesOptions) ([]arangodb.EdgeDetails, error)
- func (m *MockDatabase) Graph(ctx context.Context, name string, options *arangodb.GetGraphOptions) (arangodb.Graph, error)
- func (m *MockDatabase) GraphExists(ctx context.Context, name string) (bool, error)
- func (m *MockDatabase) Graphs(ctx context.Context) (arangodb.GraphsResponseReader, error)
- func (m *MockDatabase) Info(ctx context.Context) (arangodb.DatabaseInfo, error)
- func (m *MockDatabase) ListTransactions(ctx context.Context) ([]arangodb.Transaction, error)
- func (m *MockDatabase) ListTransactionsWithStatuses(ctx context.Context, statuses ...arangodb.TransactionStatus) ([]arangodb.Transaction, error)
- func (m *MockDatabase) Name() string
- func (m *MockDatabase) Query(ctx context.Context, query string, opts *arangodb.QueryOptions) (arangodb.Cursor, error)
- func (m *MockDatabase) QueryBatch(ctx context.Context, query string, opts *arangodb.QueryOptions, result any) (arangodb.CursorBatch, error)
- func (m *MockDatabase) Remove(ctx context.Context) error
- func (m *MockDatabase) Transaction(ctx context.Context, id arangodb.TransactionID) (arangodb.Transaction, error)
- func (m *MockDatabase) TransactionJS(ctx context.Context, options arangodb.TransactionJSOptions) (any, error)
- func (m *MockDatabase) ValidateQuery(ctx context.Context, query string) error
- func (m *MockDatabase) View(ctx context.Context, name string) (arangodb.View, error)
- func (m *MockDatabase) ViewExists(ctx context.Context, name string) (bool, error)
- func (m *MockDatabase) Views(ctx context.Context) (arangodb.ViewsResponseReader, error)
- func (m *MockDatabase) ViewsAll(ctx context.Context) ([]arangodb.View, error)
- func (m *MockDatabase) WithTransaction(ctx context.Context, cols arangodb.TransactionCollections, ...) error
- type MockDatabaseGraph
- func (m *MockDatabaseGraph) CreateGraph(ctx context.Context, name string, graph *arangodb.GraphDefinition, ...) (arangodb.Graph, error)
- func (m *MockDatabaseGraph) EXPECT() *MockDatabaseGraphMockRecorder
- func (m *MockDatabaseGraph) GetEdges(ctx context.Context, name, vertex string, options *GetEdgesOptions) ([]EdgeDetails, error)
- func (m *MockDatabaseGraph) Graph(ctx context.Context, name string, options *arangodb.GetGraphOptions) (arangodb.Graph, error)
- func (m *MockDatabaseGraph) GraphExists(ctx context.Context, name string) (bool, error)
- func (m *MockDatabaseGraph) Graphs(ctx context.Context) (GraphsResponseReader, error)
- type MockDatabaseGraphMockRecorder
- func (mr *MockDatabaseGraphMockRecorder) CreateGraph(ctx, name, graph, options any) *gomock.Call
- func (mr *MockDatabaseGraphMockRecorder) GetEdges(ctx, name, vertex, options any) *gomock.Call
- func (mr *MockDatabaseGraphMockRecorder) Graph(ctx, name, options any) *gomock.Call
- func (mr *MockDatabaseGraphMockRecorder) GraphExists(ctx, name any) *gomock.Call
- func (mr *MockDatabaseGraphMockRecorder) Graphs(ctx any) *gomock.Call
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) Analyzer(ctx, name any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Analyzers(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) BeginTransaction(ctx, cols, opts any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Collection(ctx, name any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CollectionExists(ctx, name any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Collections(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CreateArangoSearchAliasView(ctx, name, options any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CreateArangoSearchView(ctx, name, options any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CreateCollection(ctx, name, props any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CreateCollectionWithOptions(ctx, name, props, options any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CreateGraph(ctx, name, graph, options any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) EnsureAnalyzer(ctx, analyzer any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ExplainQuery(ctx, query, bindVars, opts any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetCollection(ctx, name, options any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetEdges(ctx, name, vertex, options any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Graph(ctx, name, options any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GraphExists(ctx, name any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Graphs(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Info(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ListTransactions(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ListTransactionsWithStatuses(ctx any, statuses ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Name() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Query(ctx, query, opts any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) QueryBatch(ctx, query, opts, result any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Remove(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Transaction(ctx, id any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) TransactionJS(ctx, options any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ValidateQuery(ctx, query any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) View(ctx, name any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ViewExists(ctx, name any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Views(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ViewsAll(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WithTransaction(ctx, cols, opts, commitOptions, abortOptions, w any) *gomock.Call
- type MockGraph
- func (m *MockGraph) CreateEdgeDefinition(ctx context.Context, collection string, from, to []string, ...) (arangodb.CreateEdgeDefinitionResponse, error)
- func (m *MockGraph) CreateVertexCollection(ctx context.Context, name string, opts *arangodb.CreateVertexCollectionOptions) (arangodb.CreateVertexCollectionResponse, error)
- func (m *MockGraph) DeleteEdgeDefinition(ctx context.Context, collection string, ...) (arangodb.DeleteEdgeDefinitionResponse, error)
- func (m *MockGraph) DeleteVertexCollection(ctx context.Context, name string, opts *arangodb.DeleteVertexCollectionOptions) (arangodb.DeleteVertexCollectionResponse, error)
- func (m *MockGraph) EXPECT() *MockGraphMockRecorder
- func (m *MockGraph) EdgeDefinition(ctx context.Context, collection string) (arangodb.Edge, error)
- func (m *MockGraph) EdgeDefinitionExists(ctx context.Context, collection string) (bool, error)
- func (m *MockGraph) EdgeDefinitions() []arangodb.EdgeDefinition
- func (m *MockGraph) GetEdgeDefinitions(ctx context.Context) ([]arangodb.Edge, error)
- func (m *MockGraph) IsDisjoint() bool
- func (m *MockGraph) IsSatellite() bool
- func (m *MockGraph) IsSmart() bool
- func (m *MockGraph) Name() string
- func (m *MockGraph) NumberOfShards() *int
- func (m *MockGraph) OrphanCollections() []string
- func (m *MockGraph) Remove(ctx context.Context, opts *arangodb.RemoveGraphOptions) error
- func (m *MockGraph) ReplaceEdgeDefinition(ctx context.Context, collection string, from, to []string, ...) (arangodb.ReplaceEdgeDefinitionResponse, error)
- func (m *MockGraph) ReplicationFactor() int
- func (m *MockGraph) SmartGraphAttribute() string
- func (m *MockGraph) VertexCollection(ctx context.Context, name string) (arangodb.VertexCollection, error)
- func (m *MockGraph) VertexCollectionExists(ctx context.Context, name string) (bool, error)
- func (m *MockGraph) VertexCollections(ctx context.Context) ([]arangodb.VertexCollection, error)
- func (m *MockGraph) WriteConcern() *int
- type MockGraphEdgesDefinition
- func (m *MockGraphEdgesDefinition) CreateEdgeDefinition(ctx context.Context, collection string, from, to []string, ...) (arangodb.CreateEdgeDefinitionResponse, error)
- func (m *MockGraphEdgesDefinition) DeleteEdgeDefinition(ctx context.Context, collection string, ...) (arangodb.DeleteEdgeDefinitionResponse, error)
- func (m *MockGraphEdgesDefinition) EXPECT() *MockGraphEdgesDefinitionMockRecorder
- func (m *MockGraphEdgesDefinition) EdgeDefinition(ctx context.Context, collection string) (arangodb.Edge, error)
- func (m *MockGraphEdgesDefinition) EdgeDefinitionExists(ctx context.Context, collection string) (bool, error)
- func (m *MockGraphEdgesDefinition) GetEdgeDefinitions(ctx context.Context) ([]arangodb.Edge, error)
- func (m *MockGraphEdgesDefinition) ReplaceEdgeDefinition(ctx context.Context, collection string, from, to []string, ...) (arangodb.ReplaceEdgeDefinitionResponse, error)
- type MockGraphEdgesDefinitionMockRecorder
- func (mr *MockGraphEdgesDefinitionMockRecorder) CreateEdgeDefinition(ctx, collection, from, to, opts any) *gomock.Call
- func (mr *MockGraphEdgesDefinitionMockRecorder) DeleteEdgeDefinition(ctx, collection, opts any) *gomock.Call
- func (mr *MockGraphEdgesDefinitionMockRecorder) EdgeDefinition(ctx, collection any) *gomock.Call
- func (mr *MockGraphEdgesDefinitionMockRecorder) EdgeDefinitionExists(ctx, collection any) *gomock.Call
- func (mr *MockGraphEdgesDefinitionMockRecorder) GetEdgeDefinitions(ctx any) *gomock.Call
- func (mr *MockGraphEdgesDefinitionMockRecorder) ReplaceEdgeDefinition(ctx, collection, from, to, opts any) *gomock.Call
- type MockGraphMockRecorder
- func (mr *MockGraphMockRecorder) CreateEdgeDefinition(ctx, collection, from, to, opts any) *gomock.Call
- func (mr *MockGraphMockRecorder) CreateVertexCollection(ctx, name, opts any) *gomock.Call
- func (mr *MockGraphMockRecorder) DeleteEdgeDefinition(ctx, collection, opts any) *gomock.Call
- func (mr *MockGraphMockRecorder) DeleteVertexCollection(ctx, name, opts any) *gomock.Call
- func (mr *MockGraphMockRecorder) EdgeDefinition(ctx, collection any) *gomock.Call
- func (mr *MockGraphMockRecorder) EdgeDefinitionExists(ctx, collection any) *gomock.Call
- func (mr *MockGraphMockRecorder) EdgeDefinitions() *gomock.Call
- func (mr *MockGraphMockRecorder) GetEdgeDefinitions(ctx any) *gomock.Call
- func (mr *MockGraphMockRecorder) IsDisjoint() *gomock.Call
- func (mr *MockGraphMockRecorder) IsSatellite() *gomock.Call
- func (mr *MockGraphMockRecorder) IsSmart() *gomock.Call
- func (mr *MockGraphMockRecorder) Name() *gomock.Call
- func (mr *MockGraphMockRecorder) NumberOfShards() *gomock.Call
- func (mr *MockGraphMockRecorder) OrphanCollections() *gomock.Call
- func (mr *MockGraphMockRecorder) Remove(ctx, opts any) *gomock.Call
- func (mr *MockGraphMockRecorder) ReplaceEdgeDefinition(ctx, collection, from, to, opts any) *gomock.Call
- func (mr *MockGraphMockRecorder) ReplicationFactor() *gomock.Call
- func (mr *MockGraphMockRecorder) SmartGraphAttribute() *gomock.Call
- func (mr *MockGraphMockRecorder) VertexCollection(ctx, name any) *gomock.Call
- func (mr *MockGraphMockRecorder) VertexCollectionExists(ctx, name any) *gomock.Call
- func (mr *MockGraphMockRecorder) VertexCollections(ctx any) *gomock.Call
- func (mr *MockGraphMockRecorder) WriteConcern() *gomock.Call
- type MockGraphVertexCollections
- func (m *MockGraphVertexCollections) CreateVertexCollection(ctx context.Context, name string, opts *arangodb.CreateVertexCollectionOptions) (arangodb.CreateVertexCollectionResponse, error)
- func (m *MockGraphVertexCollections) DeleteVertexCollection(ctx context.Context, name string, opts *arangodb.DeleteVertexCollectionOptions) (arangodb.DeleteVertexCollectionResponse, error)
- func (m *MockGraphVertexCollections) EXPECT() *MockGraphVertexCollectionsMockRecorder
- func (m *MockGraphVertexCollections) VertexCollection(ctx context.Context, name string) (arangodb.VertexCollection, error)
- func (m *MockGraphVertexCollections) VertexCollectionExists(ctx context.Context, name string) (bool, error)
- func (m *MockGraphVertexCollections) VertexCollections(ctx context.Context) ([]arangodb.VertexCollection, error)
- type MockGraphVertexCollectionsMockRecorder
- func (mr *MockGraphVertexCollectionsMockRecorder) CreateVertexCollection(ctx, name, opts any) *gomock.Call
- func (mr *MockGraphVertexCollectionsMockRecorder) DeleteVertexCollection(ctx, name, opts any) *gomock.Call
- func (mr *MockGraphVertexCollectionsMockRecorder) VertexCollection(ctx, name any) *gomock.Call
- func (mr *MockGraphVertexCollectionsMockRecorder) VertexCollectionExists(ctx, name any) *gomock.Call
- func (mr *MockGraphVertexCollectionsMockRecorder) VertexCollections(ctx any) *gomock.Call
- type MockGraphsResponseReader
- type MockGraphsResponseReaderMockRecorder
- type MockLogger
- type MockLoggerMockRecorder
- func (mr *MockLoggerMockRecorder) Debug(args ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Debugf(pattern any, args ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Errorf(pattern any, args ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Logf(pattern any, args ...any) *gomock.Call
- type MockMetrics
- type MockMetricsMockRecorder
- type MockUser
- func (*MockUser) AccessibleDatabases(context.Context) (map[string]arangodb.Grant, error)
- func (*MockUser) AccessibleDatabasesFull(context.Context) (map[string]arangodb.DatabasePermissions, error)
- func (*MockUser) Extra(any) error
- func (*MockUser) GetCollectionAccess(context.Context, string, string) (arangodb.Grant, error)
- func (*MockUser) GetDatabaseAccess(context.Context, string) (arangodb.Grant, error)
- func (m *MockUser) IsActive() bool
- func (m *MockUser) Name() string
- func (*MockUser) RemoveCollectionAccess(context.Context, string, string) error
- func (*MockUser) RemoveDatabaseAccess(context.Context, string) error
- func (*MockUser) SetCollectionAccess(context.Context, string, string, arangodb.Grant) error
- func (*MockUser) SetDatabaseAccess(context.Context, string, arangodb.Grant) error
- type QueryLog
- type UserOptions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ArangoDB ¶
type ArangoDB interface { Connect() // CreateDB creates a new database in ArangoDB. CreateDB(ctx context.Context, database string) error // DropDB deletes an existing database in ArangoDB. DropDB(ctx context.Context, database string) error // CreateCollection creates a new collection in a database with specified type. CreateCollection(ctx context.Context, database, collection string, isEdge bool) error // DropCollection deletes an existing collection from a database. DropCollection(ctx context.Context, database, collection string) error // CreateGraph creates a new graph in a database. CreateGraph(ctx context.Context, database, graph string, edgeDefinitions any) error // DropGraph deletes an existing graph from a database. DropGraph(ctx context.Context, database, graph string) error CreateDocument(ctx context.Context, dbName, collectionName string, document any) (string, error) GetDocument(ctx context.Context, dbName, collectionName, documentID string, result any) error UpdateDocument(ctx context.Context, dbName, collectionName, documentID string, document any) error DeleteDocument(ctx context.Context, dbName, collectionName, documentID string) error // GetEdges retrieves all the edge documents connected to a specific vertex in an ArangoDB graph. GetEdges(ctx context.Context, dbName, graphName, edgeCollection, vertexID string, resp any) error // Query operations Query(ctx context.Context, dbName string, query string, bindVars map[string]any, result any) error HealthCheck(ctx context.Context) (any, error) // contains filtered or unexported methods }
type Client ¶
Client represents an ArangoDB client.
func (*Client) Connect ¶
func (c *Client) Connect()
Connect establishes a connection to the ArangoDB server.
func (*Client) GetEdges ¶
func (c *Client) GetEdges(ctx context.Context, dbName, graphName, edgeCollection, vertexID string, resp any) error
GetEdges fetches all edges connected to a given vertex in the specified edge collection.
Parameters:
- ctx: Request context for tracing and cancellation.
- dbName: Database name.
- graphName: Graph name.
- edgeCollection: Edge collection name.
- vertexID: Full vertex ID (e.g., "persons/16563").
- resp: Pointer to `*EdgeDetails` to store results.
Returns an error if input is invalid, `resp` is of the wrong type, or the query fails.
func (*Client) HealthCheck ¶
HealthCheck performs a health check.
func (*Client) Query ¶
func (c *Client) Query(ctx context.Context, dbName, query string, bindVars map[string]any, result any) error
Query executes an AQL query and binds the results.
Parameters:
- ctx: Request context for tracing and cancellation.
- dbName: Name of the database where the query will be executed.
- query: AQL query string to be executed.
- bindVars: Map of bind variables to be used in the query.
- result: Pointer to a slice of maps where the query results will be stored.
Returns an error if the database connection fails, the query execution fails, or the result parameter is not a pointer to a slice of maps.
func (*Client) UseMetrics ¶
UseMetrics sets the metrics for the ArangoDB client.
type DB ¶ added in v0.2.0
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CreateCollection ¶ added in v0.2.0
CreateCollection creates a new collection in a database with specified type. It first checks if the collection already exists before attempting to create it. Returns ErrCollectionExists if the collection already exists.
func (*DB) CreateDB ¶ added in v0.2.0
CreateDB creates a new database in ArangoDB. It first checks if the database already exists before attempting to create it. Returns ErrDatabaseExists if the database already exists.
func (*DB) DropCollection ¶ added in v0.2.0
DropCollection deletes an existing collection from a database.
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func (*Document) CreateDocument ¶
func (d *Document) CreateDocument(ctx context.Context, dbName, collectionName string, document any) (string, error)
CreateDocument creates a new document in the specified collection. If the collection is an edge collection, the document must include `_from` and `_to`.
Parameters:
- ctx: Request context for tracing and cancellation.
- dbName: Name of the database where the document will be created.
- collectionName: Name of the collection where the document will be created.
- document: The document to be created. For edge collections, it must include `_from` and `_to` fields.
Returns the ID of the created document and an error if the document creation fails.
Example for creating a regular document:
doc := map[string]any{ "name": "Alice", "age": 30, } id, err := client.CreateDocument(ctx, "myDB", "users", doc)
Example for creating an edge document:
edgeDoc := map[string]any{ "_from": "users/123", "_to": "orders/456", "relation": "purchased", }
id, err := client.CreateDocument(ctx, "myDB", "edges", edgeDoc).
func (*Document) DeleteDocument ¶
func (d *Document) DeleteDocument(ctx context.Context, dbName, collectionName, documentID string) error
DeleteDocument deletes a document by its ID from the specified collection.
type EdgeDefinition ¶
type EdgeDefinition []arangodb.EdgeDefinition
type EdgeDetails ¶
type EdgeDetails []arangodb.EdgeDetails
type EdgeDirection ¶ added in v0.3.0
type EdgeDirection string
type GetEdgesOptions ¶ added in v0.3.0
type GetEdgesOptions struct { // The direction of the edges. Allowed values are "in" and "out". If not set, edges in both directions are returned. Direction EdgeDirection `json:"direction,omitempty"` // Set this to true to allow the Coordinator to ask any shard replica for the data, not only the shard leader. // This may result array of collection names that is used to create SatelliteCollections for a (Disjoint) SmartGraph // using SatelliteCollections (Enterprise Edition only). Each array element must be a string and a valid // collection name. The collection type cannot be modified later. Satellites []string `json:"satellites,omitempty"` }
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) CreateGraph ¶ added in v0.2.0
CreateGraph creates a new graph in a database. It first checks if the graph already exists before attempting to create it. Parameters:
- ctx: Request context for tracing and cancellation.
- database: Name of the database where the graph will be created.
- graph: Name of the graph to be created.
- edgeDefinitions: Pointer to EdgeDefinition struct containing edge definitions.
Returns ErrGraphExists if the graph already exists. Returns an error if the edgeDefinitions parameter is not of type *EdgeDefinition or is nil.
func (*Graph) DropGraph ¶ added in v0.2.0
DropGraph deletes an existing graph from a database. Parameters:
- ctx: Request context for tracing and cancellation.
- database: Name of the database where the graph exists.
- graphName: Name of the graph to be deleted.
Returns an error if the graph does not exist or if there is an issue with the database connection.
type GraphsResponseReader ¶ added in v0.3.0
type Health ¶
type Health struct { Status string `json:"status,omitempty"` Details map[string]any `json:"details,omitempty"` }
Health represents the health status of ArangoDB.
type Metrics ¶
type Metrics interface { NewHistogram(name, desc string, buckets ...float64) RecordHistogram(ctx context.Context, name string, value float64, labels ...string) }
Metrics defines the interface for capturing metrics.
type MockArango ¶
type MockArango struct {
// contains filtered or unexported fields
}
MockArango is a mock of ArangoDB interface.
func NewMockArango ¶
func NewMockArango(ctrl *gomock.Controller) *MockArango
NewMockArango creates a new mock instance.
func (*MockArango) AccessibleDatabases ¶
func (*MockArango) AsyncJobCancel ¶
func (*MockArango) AsyncJobDelete ¶
func (m *MockArango) AsyncJobDelete(ctx context.Context, deleteType arangodb.AsyncJobDeleteType, opts *arangodb.AsyncJobDeleteOptions) (bool, error)
func (*MockArango) AsyncJobList ¶
func (m *MockArango) AsyncJobList(ctx context.Context, jobType arangodb.AsyncJobStatusType, opts *arangodb.AsyncJobListOptions) ([]string, error)
func (*MockArango) AsyncJobStatus ¶
func (m *MockArango) AsyncJobStatus(ctx context.Context, jobID string) (arangodb.AsyncJobStatusType, error)
func (*MockArango) BackupCreate ¶
func (m *MockArango) BackupCreate(ctx context.Context, opt *arangodb.BackupCreateOptions) (arangodb.BackupResponse, error)
func (*MockArango) BackupDelete ¶
func (m *MockArango) BackupDelete(ctx context.Context, id string) error
func (*MockArango) BackupDownload ¶
func (m *MockArango) BackupDownload(ctx context.Context, backupId string, remoteRepository string, config interface{}) (arangodb.TransferMonitor, error)
func (*MockArango) BackupList ¶
func (m *MockArango) BackupList(ctx context.Context, opt *arangodb.BackupListOptions) (arangodb.ListBackupsResponse, error)
func (*MockArango) BackupRestore ¶
func (m *MockArango) BackupRestore(ctx context.Context, id string) (arangodb.BackupRestoreResponse, error)
func (*MockArango) BackupUpload ¶
func (m *MockArango) BackupUpload(ctx context.Context, backupId string, remoteRepository string, config interface{}) (arangodb.TransferMonitor, error)
func (*MockArango) CheckAvailability ¶
func (m *MockArango) CheckAvailability(ctx context.Context, serverEndpoint string) error
func (*MockArango) CleanOutServer ¶
func (*MockArango) Connection ¶
func (m *MockArango) Connection() connection.Connection
func (*MockArango) CreateCollection ¶
func (m *MockArango) CreateCollection(ctx context.Context, database, collection string, isEdge bool) error
CreateCollection mocks base method.
func (*MockArango) CreateDB ¶
func (m *MockArango) CreateDB(ctx context.Context, database string) error
CreateDB mocks base method.
func (*MockArango) CreateDatabase ¶
func (m *MockArango) CreateDatabase(ctx context.Context, name string, options *arangodb.CreateDatabaseOptions) (arangodb.Database, error)
func (*MockArango) CreateDocument ¶
func (m *MockArango) CreateDocument(ctx context.Context, dbName, collectionName string, document any) (string, error)
CreateDocument mocks base method.
func (*MockArango) CreateEdgeDocument ¶
func (m *MockArango) CreateEdgeDocument(ctx context.Context, dbName, collectionName, from, to string, document any) (string, error)
CreateEdgeDocument mocks base method.
func (*MockArango) CreateGraph ¶
func (m *MockArango) CreateGraph(ctx context.Context, database, graph string, edgeDefinitions any) error
CreateGraph mocks base method.
func (*MockArango) CreateUser ¶
func (m *MockArango) CreateUser(ctx context.Context, name string, options *arangodb.UserOptions) (arangodb.User, error)
func (*MockArango) DatabaseExists ¶
func (*MockArango) DatabaseInventory ¶
func (m *MockArango) DatabaseInventory(ctx context.Context, dbName string) (arangodb.DatabaseInventory, error)
func (*MockArango) Delete ¶
func (m *MockArango) Delete(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)
func (*MockArango) DeleteDocument ¶
func (m *MockArango) DeleteDocument(ctx context.Context, dbName, collectionName, documentID string) error
DeleteDocument mocks base method.
func (*MockArango) DropCollection ¶
func (m *MockArango) DropCollection(ctx context.Context, database, collection string) error
DropCollection mocks base method.
func (*MockArango) DropDB ¶
func (m *MockArango) DropDB(ctx context.Context, database string) error
DropDB mocks base method.
func (*MockArango) DropGraph ¶
func (m *MockArango) DropGraph(ctx context.Context, database, graph string) error
DropGraph mocks base method.
func (*MockArango) DropUser ¶
func (m *MockArango) DropUser(ctx context.Context, username string) error
DropUser mocks base method.
func (*MockArango) EXPECT ¶
func (m *MockArango) EXPECT() *MockArangoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockArango) Get ¶
func (m *MockArango) Get(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)
func (*MockArango) GetDatabase ¶
func (m *MockArango) GetDatabase(ctx context.Context, name string, options *arangodb.GetDatabaseOptions) (arangodb.Database, error)
func (*MockArango) GetDocument ¶
func (m *MockArango) GetDocument(ctx context.Context, dbName, collectionName, documentID string, result any) error
GetDocument mocks base method.
func (*MockArango) GetLicense ¶
func (*MockArango) GetLogLevels ¶
func (m *MockArango) GetLogLevels(ctx context.Context, opts *arangodb.LogLevelsGetOptions) (arangodb.LogLevels, error)
func (*MockArango) GrantCollection ¶
func (m *MockArango) GrantCollection(ctx context.Context, database, collection, username, permission string) error
GrantCollection mocks base method.
func (*MockArango) GrantDB ¶
func (m *MockArango) GrantDB(ctx context.Context, database, username, permission string) error
GrantDB mocks base method.
func (*MockArango) Head ¶
func (m *MockArango) Head(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)
func (*MockArango) Health ¶
func (m *MockArango) Health(ctx context.Context) (arangodb.ClusterHealth, error)
func (*MockArango) HealthCheck ¶
func (m *MockArango) HealthCheck(ctx context.Context) (any, error)
HealthCheck mocks base method.
func (*MockArango) IsCleanedOut ¶
func (*MockArango) ListCollections ¶
ListCollections mocks base method.
func (*MockArango) ListDBs ¶
func (m *MockArango) ListDBs(ctx context.Context) ([]string, error)
ListDBs mocks base method.
func (*MockArango) ListGraphs ¶
ListGraphs mocks base method.
func (*MockArango) NumberOfServers ¶
func (m *MockArango) NumberOfServers(ctx context.Context) (arangodb.NumberOfServersResponse, error)
func (*MockArango) Patch ¶
func (m *MockArango) Patch(ctx context.Context, output, input interface{}, urlParts ...string) (connection.Response, error)
func (*MockArango) Post ¶
func (m *MockArango) Post(ctx context.Context, output, input interface{}, urlParts ...string) (connection.Response, error)
func (*MockArango) Put ¶
func (m *MockArango) Put(ctx context.Context, output, input interface{}, urlParts ...string) (connection.Response, error)
func (*MockArango) Query ¶
func (m *MockArango) Query(ctx context.Context, dbName, query string, bindVars map[string]any, result any) error
Query mocks base method.
func (*MockArango) RemoveServer ¶
func (*MockArango) RemoveUser ¶
func (m *MockArango) RemoveUser(ctx context.Context, name string) error
func (*MockArango) ReplaceUser ¶
func (m *MockArango) ReplaceUser(ctx context.Context, name string, options *arangodb.UserOptions) (arangodb.User, error)
func (*MockArango) ResignServer ¶
func (*MockArango) ServerMode ¶
func (m *MockArango) ServerMode(ctx context.Context) (arangodb.ServerMode, error)
func (*MockArango) ServerRole ¶
func (m *MockArango) ServerRole(ctx context.Context) (arangodb.ServerRole, error)
func (*MockArango) SetLicense ¶
func (*MockArango) SetLogLevels ¶
func (m *MockArango) SetLogLevels(ctx context.Context, logLevels arangodb.LogLevels, opts *arangodb.LogLevelsSetOptions) error
func (*MockArango) SetServerMode ¶
func (m *MockArango) SetServerMode(ctx context.Context, mode arangodb.ServerMode) error
func (*MockArango) TransferMonitor ¶
func (m *MockArango) TransferMonitor(jobId string, transferType arangodb.TransferType) (arangodb.TransferMonitor, error)
func (*MockArango) TruncateCollection ¶
func (m *MockArango) TruncateCollection(ctx context.Context, database, collection string) error
TruncateCollection mocks base method.
func (*MockArango) UpdateDocument ¶
func (m *MockArango) UpdateDocument(ctx context.Context, dbName, collectionName, documentID string, document any) error
UpdateDocument mocks base method.
func (*MockArango) UpdateUser ¶
func (m *MockArango) UpdateUser(ctx context.Context, name string, options *arangodb.UserOptions) (arangodb.User, error)
func (*MockArango) UserExists ¶
func (*MockArango) Version ¶
func (m *MockArango) Version(ctx context.Context) (arangodb.VersionInfo, error)
Version mocks base method.
func (*MockArango) VersionWithOptions ¶
func (m *MockArango) VersionWithOptions(ctx context.Context, opts *arangodb.GetVersionOptions) (arangodb.VersionInfo, error)
type MockArangoMockRecorder ¶
type MockArangoMockRecorder struct {
// contains filtered or unexported fields
}
MockArangoMockRecorder is the mock recorder for MockArango.
func (*MockArangoMockRecorder) AddUser ¶
func (mr *MockArangoMockRecorder) AddUser(ctx, username, options any) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockArangoMockRecorder) Connect ¶
func (mr *MockArangoMockRecorder) Connect() *gomock.Call
Connect indicates an expected call of Connect.
func (*MockArangoMockRecorder) Connection ¶
func (mr *MockArangoMockRecorder) Connection() *gomock.Call
func (*MockArangoMockRecorder) CreateCollection ¶
func (mr *MockArangoMockRecorder) CreateCollection(ctx, database, collection, isEdge any) *gomock.Call
CreateCollection indicates an expected call of CreateCollection.
func (*MockArangoMockRecorder) CreateDB ¶
func (mr *MockArangoMockRecorder) CreateDB(ctx, database any) *gomock.Call
CreateDB indicates an expected call of CreateDB.
func (*MockArangoMockRecorder) CreateDatabase ¶
func (mr *MockArangoMockRecorder) CreateDatabase(ctx, name, options interface{}) *gomock.Call
func (*MockArangoMockRecorder) CreateDocument ¶
func (mr *MockArangoMockRecorder) CreateDocument(ctx, dbName, collectionName, document any) *gomock.Call
CreateDocument indicates an expected call of CreateDocument.
func (*MockArangoMockRecorder) CreateEdgeDocument ¶
func (mr *MockArangoMockRecorder) CreateEdgeDocument(ctx, dbName, collectionName, from, to, document any) *gomock.Call
CreateEdgeDocument indicates an expected call of CreateEdgeDocument.
func (*MockArangoMockRecorder) CreateGraph ¶
func (mr *MockArangoMockRecorder) CreateGraph(ctx, database, graph, edgeDefinitions any) *gomock.Call
CreateGraph indicates an expected call of CreateGraph.
func (*MockArangoMockRecorder) Database ¶
func (mr *MockArangoMockRecorder) Database(ctx, name any) *gomock.Call
Database indicates an expected call of Database.
func (*MockArangoMockRecorder) Databases ¶
func (mr *MockArangoMockRecorder) Databases(ctx any) *gomock.Call
Databases indicates an expected call of Databases.
func (*MockArangoMockRecorder) Delete ¶
func (mr *MockArangoMockRecorder) Delete(ctx, output interface{}, urlParts ...interface{}) *gomock.Call
func (*MockArangoMockRecorder) DeleteDocument ¶
func (mr *MockArangoMockRecorder) DeleteDocument(ctx, dbName, collectionName, documentID any) *gomock.Call
DeleteDocument indicates an expected call of DeleteDocument.
func (*MockArangoMockRecorder) DropCollection ¶
func (mr *MockArangoMockRecorder) DropCollection(ctx, database, collection any) *gomock.Call
DropCollection indicates an expected call of DropCollection.
func (*MockArangoMockRecorder) DropDB ¶
func (mr *MockArangoMockRecorder) DropDB(ctx, database any) *gomock.Call
DropDB indicates an expected call of DropDB.
func (*MockArangoMockRecorder) DropGraph ¶
func (mr *MockArangoMockRecorder) DropGraph(ctx, database, graph any) *gomock.Call
DropGraph indicates an expected call of DropGraph.
func (*MockArangoMockRecorder) DropUser ¶
func (mr *MockArangoMockRecorder) DropUser(ctx, username any) *gomock.Call
DropUser indicates an expected call of DropUser.
func (*MockArangoMockRecorder) Get ¶
func (mr *MockArangoMockRecorder) Get(ctx, output interface{}, urlParts ...interface{}) *gomock.Call
func (*MockArangoMockRecorder) GetDatabase ¶
func (mr *MockArangoMockRecorder) GetDatabase(ctx, name, options interface{}) *gomock.Call
func (*MockArangoMockRecorder) GetDocument ¶
func (mr *MockArangoMockRecorder) GetDocument(ctx, dbName, collectionName, documentID, result any) *gomock.Call
GetDocument indicates an expected call of GetDocument.
func (*MockArangoMockRecorder) GrantCollection ¶
func (mr *MockArangoMockRecorder) GrantCollection(ctx, database, collection, username, permission any) *gomock.Call
GrantCollection indicates an expected call of GrantCollection.
func (*MockArangoMockRecorder) GrantDB ¶
func (mr *MockArangoMockRecorder) GrantDB(ctx, database, username, permission any) *gomock.Call
GrantDB indicates an expected call of GrantDB.
func (*MockArangoMockRecorder) Head ¶
func (mr *MockArangoMockRecorder) Head(ctx, output interface{}, urlParts ...interface{}) *gomock.Call
func (*MockArangoMockRecorder) HealthCheck ¶
func (mr *MockArangoMockRecorder) HealthCheck(ctx any) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockArangoMockRecorder) ListCollections ¶
func (mr *MockArangoMockRecorder) ListCollections(ctx, database any) *gomock.Call
ListCollections indicates an expected call of ListCollections.
func (*MockArangoMockRecorder) ListDBs ¶
func (mr *MockArangoMockRecorder) ListDBs(ctx any) *gomock.Call
ListDBs indicates an expected call of ListDBs.
func (*MockArangoMockRecorder) ListGraphs ¶
func (mr *MockArangoMockRecorder) ListGraphs(ctx, database any) *gomock.Call
ListGraphs indicates an expected call of ListGraphs.
func (*MockArangoMockRecorder) Patch ¶
func (mr *MockArangoMockRecorder) Patch(ctx, output, input interface{}, urlParts ...interface{}) *gomock.Call
func (*MockArangoMockRecorder) Post ¶
func (mr *MockArangoMockRecorder) Post(ctx, output, input interface{}, urlParts ...interface{}) *gomock.Call
func (*MockArangoMockRecorder) Put ¶
func (mr *MockArangoMockRecorder) Put(ctx, output, input interface{}, urlParts ...interface{}) *gomock.Call
func (*MockArangoMockRecorder) Query ¶
func (mr *MockArangoMockRecorder) Query(ctx, dbName, query, bindVars, result any) *gomock.Call
Query indicates an expected call of Query.
func (*MockArangoMockRecorder) ReplaceUser ¶
func (mr *MockArangoMockRecorder) ReplaceUser(ctx, name, options interface{}) *gomock.Call
Mock recorder method for setting up expectations
func (*MockArangoMockRecorder) TruncateCollection ¶
func (mr *MockArangoMockRecorder) TruncateCollection(ctx, database, collection any) *gomock.Call
TruncateCollection indicates an expected call of TruncateCollection.
func (*MockArangoMockRecorder) UpdateDocument ¶
func (mr *MockArangoMockRecorder) UpdateDocument(ctx, dbName, collectionName, documentID, document any) *gomock.Call
UpdateDocument indicates an expected call of UpdateDocument.
func (*MockArangoMockRecorder) UpdateUser ¶
func (mr *MockArangoMockRecorder) UpdateUser(ctx, name, options interface{}) *gomock.Call
Mock recorder method for setting up expectations
func (*MockArangoMockRecorder) User ¶
func (mr *MockArangoMockRecorder) User(ctx, username any) *gomock.Call
User indicates an expected call of User.
func (*MockArangoMockRecorder) Version ¶
func (mr *MockArangoMockRecorder) Version(ctx any) *gomock.Call
Version indicates an expected call of Version.
func (*MockArangoMockRecorder) VersionWithOptions ¶
func (mr *MockArangoMockRecorder) VersionWithOptions(ctx, opts interface{}) *gomock.Call
Mock recorder method for setting up expectations
type MockCollection ¶
type MockCollection struct {
// contains filtered or unexported fields
}
MockCollection is a mock of Collection interface.
func NewMockCollection ¶
func NewMockCollection(ctrl *gomock.Controller) *MockCollection
NewMockCollection creates a new mock instance.
func (*MockCollection) Count ¶
func (m *MockCollection) Count(ctx context.Context) (int64, error)
Count mocks base method.
func (*MockCollection) CreateDocument ¶
func (m *MockCollection) CreateDocument(ctx context.Context, document any) (arangodb.CollectionDocumentCreateResponse, error)
CreateDocument mocks base method.
func (*MockCollection) CreateDocumentWithOptions ¶
func (m *MockCollection) CreateDocumentWithOptions(ctx context.Context, document any, options *arangodb.CollectionDocumentCreateOptions) (arangodb.CollectionDocumentCreateResponse, error)
CreateDocumentWithOptions mocks base method.
func (*MockCollection) CreateDocuments ¶
func (m *MockCollection) CreateDocuments(ctx context.Context, documents any) (arangodb.CollectionDocumentCreateResponseReader, error)
CreateDocuments mocks base method.
func (*MockCollection) CreateDocumentsWithOptions ¶
func (m *MockCollection) CreateDocumentsWithOptions(ctx context.Context, documents any, opts *arangodb.CollectionDocumentCreateOptions) (arangodb.CollectionDocumentCreateResponseReader, error)
CreateDocumentsWithOptions mocks base method.
func (*MockCollection) Database ¶
func (m *MockCollection) Database() arangodb.Database
Database mocks base method.
func (*MockCollection) DeleteDocument ¶
func (m *MockCollection) DeleteDocument(ctx context.Context, key string) (arangodb.CollectionDocumentDeleteResponse, error)
DeleteDocument mocks base method.
func (*MockCollection) DeleteDocumentWithOptions ¶
func (m *MockCollection) DeleteDocumentWithOptions(ctx context.Context, key string, opts *arangodb.CollectionDocumentDeleteOptions) (arangodb.CollectionDocumentDeleteResponse, error)
DeleteDocumentWithOptions mocks base method.
func (*MockCollection) DeleteDocuments ¶
func (m *MockCollection) DeleteDocuments(ctx context.Context, keys []string) (arangodb.CollectionDocumentDeleteResponseReader, error)
DeleteDocuments mocks base method.
func (*MockCollection) DeleteDocumentsWithOptions ¶
func (m *MockCollection) DeleteDocumentsWithOptions(ctx context.Context, documents any, opts *arangodb.CollectionDocumentDeleteOptions) (arangodb.CollectionDocumentDeleteResponseReader, error)
DeleteDocumentsWithOptions mocks base method.
func (*MockCollection) DeleteIndex ¶
func (m *MockCollection) DeleteIndex(ctx context.Context, name string) error
DeleteIndex mocks base method.
func (*MockCollection) DeleteIndexByID ¶
func (m *MockCollection) DeleteIndexByID(ctx context.Context, id string) error
DeleteIndexByID mocks base method.
func (*MockCollection) DocumentExists ¶
DocumentExists mocks base method.
func (*MockCollection) EXPECT ¶
func (m *MockCollection) EXPECT() *MockCollectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCollection) EnsureGeoIndex ¶
func (m *MockCollection) EnsureGeoIndex(ctx context.Context, fields []string, options *arangodb.CreateGeoIndexOptions) (arangodb.IndexResponse, bool, error)
EnsureGeoIndex mocks base method.
func (*MockCollection) EnsureInvertedIndex ¶
func (m *MockCollection) EnsureInvertedIndex(ctx context.Context, options *arangodb.InvertedIndexOptions) (arangodb.IndexResponse, bool, error)
EnsureInvertedIndex mocks base method.
func (*MockCollection) EnsureMDIIndex ¶
func (m *MockCollection) EnsureMDIIndex(ctx context.Context, fields []string, options *arangodb.CreateMDIIndexOptions) (arangodb.IndexResponse, bool, error)
EnsureMDIIndex mocks base method.
func (*MockCollection) EnsureMDIPrefixedIndex ¶
func (m *MockCollection) EnsureMDIPrefixedIndex(ctx context.Context, fields []string, options *arangodb.CreateMDIPrefixedIndexOptions) (arangodb.IndexResponse, bool, error)
EnsureMDIPrefixedIndex mocks base method.
func (*MockCollection) EnsurePersistentIndex ¶
func (m *MockCollection) EnsurePersistentIndex(ctx context.Context, fields []string, options *arangodb.CreatePersistentIndexOptions) (arangodb.IndexResponse, bool, error)
EnsurePersistentIndex mocks base method.
func (*MockCollection) EnsureTTLIndex ¶
func (m *MockCollection) EnsureTTLIndex(ctx context.Context, fields []string, expireAfter int, options *arangodb.CreateTTLIndexOptions) (arangodb.IndexResponse, bool, error)
EnsureTTLIndex mocks base method.
func (*MockCollection) EnsureZKDIndex ¶
func (m *MockCollection) EnsureZKDIndex(ctx context.Context, fields []string, options *arangodb.CreateZKDIndexOptions) (arangodb.IndexResponse, bool, error)
EnsureZKDIndex mocks base method.
func (*MockCollection) Index ¶
func (m *MockCollection) Index(ctx context.Context, name string) (arangodb.IndexResponse, error)
Index mocks base method.
func (*MockCollection) IndexExists ¶
IndexExists mocks base method.
func (*MockCollection) Indexes ¶
func (m *MockCollection) Indexes(ctx context.Context) ([]arangodb.IndexResponse, error)
Indexes mocks base method.
func (*MockCollection) Properties ¶
func (m *MockCollection) Properties(ctx context.Context) (arangodb.CollectionProperties, error)
Properties mocks base method.
func (*MockCollection) ReadDocument ¶
func (m *MockCollection) ReadDocument(ctx context.Context, key string, result any) (arangodb.DocumentMeta, error)
ReadDocument mocks base method.
func (*MockCollection) ReadDocumentWithOptions ¶
func (m *MockCollection) ReadDocumentWithOptions(ctx context.Context, key string, result any, opts *arangodb.CollectionDocumentReadOptions) (arangodb.DocumentMeta, error)
ReadDocumentWithOptions mocks base method.
func (*MockCollection) ReadDocuments ¶
func (m *MockCollection) ReadDocuments(ctx context.Context, keys []string) (arangodb.CollectionDocumentReadResponseReader, error)
ReadDocuments mocks base method.
func (*MockCollection) ReadDocumentsWithOptions ¶
func (m *MockCollection) ReadDocumentsWithOptions(ctx context.Context, documents any, opts *arangodb.CollectionDocumentReadOptions) (arangodb.CollectionDocumentReadResponseReader, error)
ReadDocumentsWithOptions mocks base method.
func (*MockCollection) Remove ¶
func (m *MockCollection) Remove(ctx context.Context) error
Remove mocks base method.
func (*MockCollection) RemoveWithOptions ¶
func (m *MockCollection) RemoveWithOptions(ctx context.Context, opts *arangodb.RemoveCollectionOptions) error
RemoveWithOptions mocks base method.
func (*MockCollection) ReplaceDocument ¶
func (m *MockCollection) ReplaceDocument(ctx context.Context, key string, document any) (arangodb.CollectionDocumentReplaceResponse, error)
ReplaceDocument mocks base method.
func (*MockCollection) ReplaceDocumentWithOptions ¶
func (m *MockCollection) ReplaceDocumentWithOptions(ctx context.Context, key string, document any, options *arangodb.CollectionDocumentReplaceOptions) (arangodb.CollectionDocumentReplaceResponse, error)
ReplaceDocumentWithOptions mocks base method.
func (*MockCollection) ReplaceDocuments ¶
func (m *MockCollection) ReplaceDocuments(ctx context.Context, documents any) (arangodb.CollectionDocumentReplaceResponseReader, error)
ReplaceDocuments mocks base method.
func (*MockCollection) ReplaceDocumentsWithOptions ¶
func (m *MockCollection) ReplaceDocumentsWithOptions(ctx context.Context, documents any, opts *arangodb.CollectionDocumentReplaceOptions) (arangodb.CollectionDocumentReplaceResponseReader, error)
ReplaceDocumentsWithOptions mocks base method.
func (*MockCollection) SetProperties ¶
func (m *MockCollection) SetProperties(ctx context.Context, options arangodb.SetCollectionPropertiesOptions) error
SetProperties mocks base method.
func (*MockCollection) Shards ¶
func (m *MockCollection) Shards(ctx context.Context, details bool) (arangodb.CollectionShards, error)
Shards mocks base method.
func (*MockCollection) Truncate ¶
func (m *MockCollection) Truncate(ctx context.Context) error
Truncate mocks base method.
func (*MockCollection) UpdateDocument ¶
func (m *MockCollection) UpdateDocument(ctx context.Context, key string, document any) (arangodb.CollectionDocumentUpdateResponse, error)
UpdateDocument mocks base method.
func (*MockCollection) UpdateDocumentWithOptions ¶
func (m *MockCollection) UpdateDocumentWithOptions(ctx context.Context, key string, document any, options *arangodb.CollectionDocumentUpdateOptions) (arangodb.CollectionDocumentUpdateResponse, error)
UpdateDocumentWithOptions mocks base method.
func (*MockCollection) UpdateDocuments ¶
func (m *MockCollection) UpdateDocuments(ctx context.Context, documents any) (arangodb.CollectionDocumentUpdateResponseReader, error)
UpdateDocuments mocks base method.
func (*MockCollection) UpdateDocumentsWithOptions ¶
func (m *MockCollection) UpdateDocumentsWithOptions(ctx context.Context, documents any, opts *arangodb.CollectionDocumentUpdateOptions) (arangodb.CollectionDocumentUpdateResponseReader, error)
UpdateDocumentsWithOptions mocks base method.
type MockCollectionMockRecorder ¶
type MockCollectionMockRecorder struct {
// contains filtered or unexported fields
}
MockCollectionMockRecorder is the mock recorder for MockCollection.
func (*MockCollectionMockRecorder) Count ¶
func (mr *MockCollectionMockRecorder) Count(ctx any) *gomock.Call
Count indicates an expected call of Count.
func (*MockCollectionMockRecorder) CreateDocument ¶
func (mr *MockCollectionMockRecorder) CreateDocument(ctx, document any) *gomock.Call
CreateDocument indicates an expected call of CreateDocument.
func (*MockCollectionMockRecorder) CreateDocumentWithOptions ¶
func (mr *MockCollectionMockRecorder) CreateDocumentWithOptions(ctx, document, options any) *gomock.Call
CreateDocumentWithOptions indicates an expected call of CreateDocumentWithOptions.
func (*MockCollectionMockRecorder) CreateDocuments ¶
func (mr *MockCollectionMockRecorder) CreateDocuments(ctx, documents any) *gomock.Call
CreateDocuments indicates an expected call of CreateDocuments.
func (*MockCollectionMockRecorder) CreateDocumentsWithOptions ¶
func (mr *MockCollectionMockRecorder) CreateDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
CreateDocumentsWithOptions indicates an expected call of CreateDocumentsWithOptions.
func (*MockCollectionMockRecorder) Database ¶
func (mr *MockCollectionMockRecorder) Database() *gomock.Call
Database indicates an expected call of Database.
func (*MockCollectionMockRecorder) DeleteDocument ¶
func (mr *MockCollectionMockRecorder) DeleteDocument(ctx, key any) *gomock.Call
DeleteDocument indicates an expected call of DeleteDocument.
func (*MockCollectionMockRecorder) DeleteDocumentWithOptions ¶
func (mr *MockCollectionMockRecorder) DeleteDocumentWithOptions(ctx, key, opts any) *gomock.Call
DeleteDocumentWithOptions indicates an expected call of DeleteDocumentWithOptions.
func (*MockCollectionMockRecorder) DeleteDocuments ¶
func (mr *MockCollectionMockRecorder) DeleteDocuments(ctx, keys any) *gomock.Call
DeleteDocuments indicates an expected call of DeleteDocuments.
func (*MockCollectionMockRecorder) DeleteDocumentsWithOptions ¶
func (mr *MockCollectionMockRecorder) DeleteDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
DeleteDocumentsWithOptions indicates an expected call of DeleteDocumentsWithOptions.
func (*MockCollectionMockRecorder) DeleteIndex ¶
func (mr *MockCollectionMockRecorder) DeleteIndex(ctx, name any) *gomock.Call
DeleteIndex indicates an expected call of DeleteIndex.
func (*MockCollectionMockRecorder) DeleteIndexByID ¶
func (mr *MockCollectionMockRecorder) DeleteIndexByID(ctx, id any) *gomock.Call
DeleteIndexByID indicates an expected call of DeleteIndexByID.
func (*MockCollectionMockRecorder) DocumentExists ¶
func (mr *MockCollectionMockRecorder) DocumentExists(ctx, key any) *gomock.Call
DocumentExists indicates an expected call of DocumentExists.
func (*MockCollectionMockRecorder) EnsureGeoIndex ¶
func (mr *MockCollectionMockRecorder) EnsureGeoIndex(ctx, fields, options any) *gomock.Call
EnsureGeoIndex indicates an expected call of EnsureGeoIndex.
func (*MockCollectionMockRecorder) EnsureInvertedIndex ¶
func (mr *MockCollectionMockRecorder) EnsureInvertedIndex(ctx, options any) *gomock.Call
EnsureInvertedIndex indicates an expected call of EnsureInvertedIndex.
func (*MockCollectionMockRecorder) EnsureMDIIndex ¶
func (mr *MockCollectionMockRecorder) EnsureMDIIndex(ctx, fields, options any) *gomock.Call
EnsureMDIIndex indicates an expected call of EnsureMDIIndex.
func (*MockCollectionMockRecorder) EnsureMDIPrefixedIndex ¶
func (mr *MockCollectionMockRecorder) EnsureMDIPrefixedIndex(ctx, fields, options any) *gomock.Call
EnsureMDIPrefixedIndex indicates an expected call of EnsureMDIPrefixedIndex.
func (*MockCollectionMockRecorder) EnsurePersistentIndex ¶
func (mr *MockCollectionMockRecorder) EnsurePersistentIndex(ctx, fields, options any) *gomock.Call
EnsurePersistentIndex indicates an expected call of EnsurePersistentIndex.
func (*MockCollectionMockRecorder) EnsureTTLIndex ¶
func (mr *MockCollectionMockRecorder) EnsureTTLIndex(ctx, fields, expireAfter, options any) *gomock.Call
EnsureTTLIndex indicates an expected call of EnsureTTLIndex.
func (*MockCollectionMockRecorder) EnsureZKDIndex ¶
func (mr *MockCollectionMockRecorder) EnsureZKDIndex(ctx, fields, options any) *gomock.Call
EnsureZKDIndex indicates an expected call of EnsureZKDIndex.
func (*MockCollectionMockRecorder) Index ¶
func (mr *MockCollectionMockRecorder) Index(ctx, name any) *gomock.Call
Index indicates an expected call of Index.
func (*MockCollectionMockRecorder) IndexExists ¶
func (mr *MockCollectionMockRecorder) IndexExists(ctx, name any) *gomock.Call
IndexExists indicates an expected call of IndexExists.
func (*MockCollectionMockRecorder) Indexes ¶
func (mr *MockCollectionMockRecorder) Indexes(ctx any) *gomock.Call
Indexes indicates an expected call of Indexes.
func (*MockCollectionMockRecorder) Name ¶
func (mr *MockCollectionMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockCollectionMockRecorder) Properties ¶
func (mr *MockCollectionMockRecorder) Properties(ctx any) *gomock.Call
Properties indicates an expected call of Properties.
func (*MockCollectionMockRecorder) ReadDocument ¶
func (mr *MockCollectionMockRecorder) ReadDocument(ctx, key, result any) *gomock.Call
ReadDocument indicates an expected call of ReadDocument.
func (*MockCollectionMockRecorder) ReadDocumentWithOptions ¶
func (mr *MockCollectionMockRecorder) ReadDocumentWithOptions(ctx, key, result, opts any) *gomock.Call
ReadDocumentWithOptions indicates an expected call of ReadDocumentWithOptions.
func (*MockCollectionMockRecorder) ReadDocuments ¶
func (mr *MockCollectionMockRecorder) ReadDocuments(ctx, keys any) *gomock.Call
ReadDocuments indicates an expected call of ReadDocuments.
func (*MockCollectionMockRecorder) ReadDocumentsWithOptions ¶
func (mr *MockCollectionMockRecorder) ReadDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
ReadDocumentsWithOptions indicates an expected call of ReadDocumentsWithOptions.
func (*MockCollectionMockRecorder) Remove ¶
func (mr *MockCollectionMockRecorder) Remove(ctx any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockCollectionMockRecorder) RemoveWithOptions ¶
func (mr *MockCollectionMockRecorder) RemoveWithOptions(ctx, opts any) *gomock.Call
RemoveWithOptions indicates an expected call of RemoveWithOptions.
func (*MockCollectionMockRecorder) ReplaceDocument ¶
func (mr *MockCollectionMockRecorder) ReplaceDocument(ctx, key, document any) *gomock.Call
ReplaceDocument indicates an expected call of ReplaceDocument.
func (*MockCollectionMockRecorder) ReplaceDocumentWithOptions ¶
func (mr *MockCollectionMockRecorder) ReplaceDocumentWithOptions(ctx, key, document, options any) *gomock.Call
ReplaceDocumentWithOptions indicates an expected call of ReplaceDocumentWithOptions.
func (*MockCollectionMockRecorder) ReplaceDocuments ¶
func (mr *MockCollectionMockRecorder) ReplaceDocuments(ctx, documents any) *gomock.Call
ReplaceDocuments indicates an expected call of ReplaceDocuments.
func (*MockCollectionMockRecorder) ReplaceDocumentsWithOptions ¶
func (mr *MockCollectionMockRecorder) ReplaceDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
ReplaceDocumentsWithOptions indicates an expected call of ReplaceDocumentsWithOptions.
func (*MockCollectionMockRecorder) SetProperties ¶
func (mr *MockCollectionMockRecorder) SetProperties(ctx, options any) *gomock.Call
SetProperties indicates an expected call of SetProperties.
func (*MockCollectionMockRecorder) Shards ¶
func (mr *MockCollectionMockRecorder) Shards(ctx, details any) *gomock.Call
Shards indicates an expected call of Shards.
func (*MockCollectionMockRecorder) Truncate ¶
func (mr *MockCollectionMockRecorder) Truncate(ctx any) *gomock.Call
Truncate indicates an expected call of Truncate.
func (*MockCollectionMockRecorder) UpdateDocument ¶
func (mr *MockCollectionMockRecorder) UpdateDocument(ctx, key, document any) *gomock.Call
UpdateDocument indicates an expected call of UpdateDocument.
func (*MockCollectionMockRecorder) UpdateDocumentWithOptions ¶
func (mr *MockCollectionMockRecorder) UpdateDocumentWithOptions(ctx, key, document, options any) *gomock.Call
UpdateDocumentWithOptions indicates an expected call of UpdateDocumentWithOptions.
func (*MockCollectionMockRecorder) UpdateDocuments ¶
func (mr *MockCollectionMockRecorder) UpdateDocuments(ctx, documents any) *gomock.Call
UpdateDocuments indicates an expected call of UpdateDocuments.
func (*MockCollectionMockRecorder) UpdateDocumentsWithOptions ¶
func (mr *MockCollectionMockRecorder) UpdateDocumentsWithOptions(ctx, documents, opts any) *gomock.Call
UpdateDocumentsWithOptions indicates an expected call of UpdateDocumentsWithOptions.
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockArangoDatabase is a mock of database interface.
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance.
func (*MockDatabase) Analyzers ¶
func (m *MockDatabase) Analyzers(ctx context.Context) (arangodb.AnalyzersResponseReader, error)
Analyzers mocks base method.
func (*MockDatabase) BeginTransaction ¶
func (m *MockDatabase) BeginTransaction(ctx context.Context, cols arangodb.TransactionCollections, opts *arangodb.BeginTransactionOptions) (arangodb.Transaction, error)
BeginTransaction mocks base method.
func (*MockDatabase) Collection ¶
func (m *MockDatabase) Collection(ctx context.Context, name string) (arangodb.Collection, error)
Collection mocks base method.
func (*MockDatabase) CollectionExists ¶
CollectionExists mocks base method.
func (*MockDatabase) Collections ¶
func (m *MockDatabase) Collections(ctx context.Context) ([]arangodb.Collection, error)
Collections mocks base method.
func (*MockDatabase) CreateArangoSearchAliasView ¶
func (m *MockDatabase) CreateArangoSearchAliasView(ctx context.Context, name string, options *arangodb.ArangoSearchAliasViewProperties) (arangodb.ArangoSearchViewAlias, error)
CreateArangoSearchAliasView mocks base method.
func (*MockDatabase) CreateArangoSearchView ¶
func (m *MockDatabase) CreateArangoSearchView(ctx context.Context, name string, options *arangodb.ArangoSearchViewProperties) (arangodb.ArangoSearchView, error)
CreateArangoSearchView mocks base method.
func (*MockDatabase) CreateCollection ¶
func (m *MockDatabase) CreateCollection(ctx context.Context, name string, props *arangodb.CreateCollectionProperties) (arangodb.Collection, error)
CreateCollection mocks base method.
func (*MockDatabase) CreateCollectionWithOptions ¶
func (m *MockDatabase) CreateCollectionWithOptions(ctx context.Context, name string, props *arangodb.CreateCollectionProperties, options *arangodb.CreateCollectionOptions) (arangodb.Collection, error)
CreateCollectionWithOptions mocks base method.
func (*MockDatabase) CreateGraph ¶
func (m *MockDatabase) CreateGraph(ctx context.Context, name string, graph *arangodb.GraphDefinition, options *arangodb.CreateGraphOptions) (arangodb.Graph, error)
CreateGraph mocks base method.
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatabase) EnsureAnalyzer ¶
func (m *MockDatabase) EnsureAnalyzer(ctx context.Context, analyzer *arangodb.AnalyzerDefinition) (bool, arangodb.Analyzer, error)
EnsureAnalyzer mocks base method.
func (*MockDatabase) ExplainQuery ¶
func (m *MockDatabase) ExplainQuery(ctx context.Context, query string, bindVars map[string]any, opts *arangodb.ExplainQueryOptions) (arangodb.ExplainQueryResult, error)
ExplainQuery mocks base method.
func (*MockDatabase) GetCollection ¶
func (m *MockDatabase) GetCollection(ctx context.Context, name string, options *arangodb.GetCollectionOptions) (arangodb.Collection, error)
GetCollection mocks base method.
func (*MockDatabase) GetEdges ¶
func (m *MockDatabase) GetEdges(ctx context.Context, name, vertex string, options *arangodb.GetEdgesOptions) ([]arangodb.EdgeDetails, error)
GetEdges mocks base method.
func (*MockDatabase) Graph ¶
func (m *MockDatabase) Graph(ctx context.Context, name string, options *arangodb.GetGraphOptions) (arangodb.Graph, error)
Graph mocks base method.
func (*MockDatabase) GraphExists ¶
GraphExists mocks base method.
func (*MockDatabase) Graphs ¶
func (m *MockDatabase) Graphs(ctx context.Context) (arangodb.GraphsResponseReader, error)
Graphs mocks base method.
func (*MockDatabase) Info ¶
func (m *MockDatabase) Info(ctx context.Context) (arangodb.DatabaseInfo, error)
Info mocks base method.
func (*MockDatabase) ListTransactions ¶
func (m *MockDatabase) ListTransactions(ctx context.Context) ([]arangodb.Transaction, error)
ListTransactions mocks base method.
func (*MockDatabase) ListTransactionsWithStatuses ¶
func (m *MockDatabase) ListTransactionsWithStatuses(ctx context.Context, statuses ...arangodb.TransactionStatus) ([]arangodb.Transaction, error)
ListTransactionsWithStatuses mocks base method.
func (*MockDatabase) Query ¶
func (m *MockDatabase) Query(ctx context.Context, query string, opts *arangodb.QueryOptions) (arangodb.Cursor, error)
Query mocks base method.
func (*MockDatabase) QueryBatch ¶
func (m *MockDatabase) QueryBatch(ctx context.Context, query string, opts *arangodb.QueryOptions, result any) (arangodb.CursorBatch, error)
QueryBatch mocks base method.
func (*MockDatabase) Remove ¶
func (m *MockDatabase) Remove(ctx context.Context) error
Remove mocks base method.
func (*MockDatabase) Transaction ¶
func (m *MockDatabase) Transaction(ctx context.Context, id arangodb.TransactionID) (arangodb.Transaction, error)
Transaction mocks base method.
func (*MockDatabase) TransactionJS ¶
func (m *MockDatabase) TransactionJS(ctx context.Context, options arangodb.TransactionJSOptions) (any, error)
TransactionJS mocks base method.
func (*MockDatabase) ValidateQuery ¶
func (m *MockDatabase) ValidateQuery(ctx context.Context, query string) error
ValidateQuery mocks base method.
func (*MockDatabase) ViewExists ¶
ViewExists mocks base method.
func (*MockDatabase) Views ¶
func (m *MockDatabase) Views(ctx context.Context) (arangodb.ViewsResponseReader, error)
Views mocks base method.
func (*MockDatabase) WithTransaction ¶
func (m *MockDatabase) WithTransaction(ctx context.Context, cols arangodb.TransactionCollections, opts *arangodb.BeginTransactionOptions, commitOptions *arangodb.CommitTransactionOptions, abortOptions *arangodb.AbortTransactionOptions, w arangodb.TransactionWrap) error
WithTransaction mocks base method.
type MockDatabaseGraph ¶ added in v0.3.0
type MockDatabaseGraph struct {
// contains filtered or unexported fields
}
MockDatabaseGraph is a mock of DatabaseGraph interface.
func NewMockDatabaseGraph ¶ added in v0.3.0
func NewMockDatabaseGraph(ctrl *gomock.Controller) *MockDatabaseGraph
NewMockDatabaseGraph creates a new mock instance.
func (*MockDatabaseGraph) CreateGraph ¶ added in v0.3.0
func (m *MockDatabaseGraph) CreateGraph(ctx context.Context, name string, graph *arangodb.GraphDefinition, options *arangodb.CreateGraphOptions) (arangodb.Graph, error)
CreateGraph mocks base method.
func (*MockDatabaseGraph) EXPECT ¶ added in v0.3.0
func (m *MockDatabaseGraph) EXPECT() *MockDatabaseGraphMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatabaseGraph) GetEdges ¶ added in v0.3.0
func (m *MockDatabaseGraph) GetEdges(ctx context.Context, name, vertex string, options *GetEdgesOptions) ([]EdgeDetails, error)
GetEdges mocks base method.
func (*MockDatabaseGraph) Graph ¶ added in v0.3.0
func (m *MockDatabaseGraph) Graph(ctx context.Context, name string, options *arangodb.GetGraphOptions) (arangodb.Graph, error)
Graph mocks base method.
func (*MockDatabaseGraph) GraphExists ¶ added in v0.3.0
GraphExists mocks base method.
func (*MockDatabaseGraph) Graphs ¶ added in v0.3.0
func (m *MockDatabaseGraph) Graphs(ctx context.Context) (GraphsResponseReader, error)
Graphs mocks base method.
type MockDatabaseGraphMockRecorder ¶ added in v0.3.0
type MockDatabaseGraphMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseGraphMockRecorder is the mock recorder for MockDatabaseGraph.
func (*MockDatabaseGraphMockRecorder) CreateGraph ¶ added in v0.3.0
func (mr *MockDatabaseGraphMockRecorder) CreateGraph(ctx, name, graph, options any) *gomock.Call
CreateGraph indicates an expected call of CreateGraph.
func (*MockDatabaseGraphMockRecorder) GetEdges ¶ added in v0.3.0
func (mr *MockDatabaseGraphMockRecorder) GetEdges(ctx, name, vertex, options any) *gomock.Call
GetEdges indicates an expected call of GetEdges.
func (*MockDatabaseGraphMockRecorder) Graph ¶ added in v0.3.0
func (mr *MockDatabaseGraphMockRecorder) Graph(ctx, name, options any) *gomock.Call
Graph indicates an expected call of Graph.
func (*MockDatabaseGraphMockRecorder) GraphExists ¶ added in v0.3.0
func (mr *MockDatabaseGraphMockRecorder) GraphExists(ctx, name any) *gomock.Call
GraphExists indicates an expected call of GraphExists.
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockArangoDatabase.
func (*MockDatabaseMockRecorder) Analyzer ¶
func (mr *MockDatabaseMockRecorder) Analyzer(ctx, name any) *gomock.Call
Analyzer indicates an expected call of Analyzer.
func (*MockDatabaseMockRecorder) Analyzers ¶
func (mr *MockDatabaseMockRecorder) Analyzers(ctx any) *gomock.Call
Analyzers indicates an expected call of Analyzers.
func (*MockDatabaseMockRecorder) BeginTransaction ¶
func (mr *MockDatabaseMockRecorder) BeginTransaction(ctx, cols, opts any) *gomock.Call
BeginTransaction indicates an expected call of BeginTransaction.
func (*MockDatabaseMockRecorder) Collection ¶
func (mr *MockDatabaseMockRecorder) Collection(ctx, name any) *gomock.Call
Collection indicates an expected call of Collection.
func (*MockDatabaseMockRecorder) CollectionExists ¶
func (mr *MockDatabaseMockRecorder) CollectionExists(ctx, name any) *gomock.Call
CollectionExists indicates an expected call of CollectionExists.
func (*MockDatabaseMockRecorder) Collections ¶
func (mr *MockDatabaseMockRecorder) Collections(ctx any) *gomock.Call
Collections indicates an expected call of Collections.
func (*MockDatabaseMockRecorder) CreateArangoSearchAliasView ¶
func (mr *MockDatabaseMockRecorder) CreateArangoSearchAliasView(ctx, name, options any) *gomock.Call
CreateArangoSearchAliasView indicates an expected call of CreateArangoSearchAliasView.
func (*MockDatabaseMockRecorder) CreateArangoSearchView ¶
func (mr *MockDatabaseMockRecorder) CreateArangoSearchView(ctx, name, options any) *gomock.Call
CreateArangoSearchView indicates an expected call of CreateArangoSearchView.
func (*MockDatabaseMockRecorder) CreateCollection ¶
func (mr *MockDatabaseMockRecorder) CreateCollection(ctx, name, props any) *gomock.Call
CreateCollection indicates an expected call of CreateCollection.
func (*MockDatabaseMockRecorder) CreateCollectionWithOptions ¶
func (mr *MockDatabaseMockRecorder) CreateCollectionWithOptions(ctx, name, props, options any) *gomock.Call
CreateCollectionWithOptions indicates an expected call of CreateCollectionWithOptions.
func (*MockDatabaseMockRecorder) CreateGraph ¶
func (mr *MockDatabaseMockRecorder) CreateGraph(ctx, name, graph, options any) *gomock.Call
CreateGraph indicates an expected call of CreateGraph.
func (*MockDatabaseMockRecorder) EnsureAnalyzer ¶
func (mr *MockDatabaseMockRecorder) EnsureAnalyzer(ctx, analyzer any) *gomock.Call
EnsureAnalyzer indicates an expected call of EnsureAnalyzer.
func (*MockDatabaseMockRecorder) ExplainQuery ¶
func (mr *MockDatabaseMockRecorder) ExplainQuery(ctx, query, bindVars, opts any) *gomock.Call
ExplainQuery indicates an expected call of ExplainQuery.
func (*MockDatabaseMockRecorder) GetCollection ¶
func (mr *MockDatabaseMockRecorder) GetCollection(ctx, name, options any) *gomock.Call
GetCollection indicates an expected call of GetCollection.
func (*MockDatabaseMockRecorder) GetEdges ¶
func (mr *MockDatabaseMockRecorder) GetEdges(ctx, name, vertex, options any) *gomock.Call
GetEdges indicates an expected call of GetEdges.
func (*MockDatabaseMockRecorder) Graph ¶
func (mr *MockDatabaseMockRecorder) Graph(ctx, name, options any) *gomock.Call
Graph indicates an expected call of Graph.
func (*MockDatabaseMockRecorder) GraphExists ¶
func (mr *MockDatabaseMockRecorder) GraphExists(ctx, name any) *gomock.Call
GraphExists indicates an expected call of GraphExists.
func (*MockDatabaseMockRecorder) Graphs ¶
func (mr *MockDatabaseMockRecorder) Graphs(ctx any) *gomock.Call
Graphs indicates an expected call of Graphs.
func (*MockDatabaseMockRecorder) Info ¶
func (mr *MockDatabaseMockRecorder) Info(ctx any) *gomock.Call
Info indicates an expected call of Info.
func (*MockDatabaseMockRecorder) ListTransactions ¶
func (mr *MockDatabaseMockRecorder) ListTransactions(ctx any) *gomock.Call
ListTransactions indicates an expected call of ListTransactions.
func (*MockDatabaseMockRecorder) ListTransactionsWithStatuses ¶
func (mr *MockDatabaseMockRecorder) ListTransactionsWithStatuses(ctx any, statuses ...any) *gomock.Call
ListTransactionsWithStatuses indicates an expected call of ListTransactionsWithStatuses.
func (*MockDatabaseMockRecorder) Name ¶
func (mr *MockDatabaseMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockDatabaseMockRecorder) Query ¶
func (mr *MockDatabaseMockRecorder) Query(ctx, query, opts any) *gomock.Call
Query indicates an expected call of Query.
func (*MockDatabaseMockRecorder) QueryBatch ¶
func (mr *MockDatabaseMockRecorder) QueryBatch(ctx, query, opts, result any) *gomock.Call
QueryBatch indicates an expected call of QueryBatch.
func (*MockDatabaseMockRecorder) Remove ¶
func (mr *MockDatabaseMockRecorder) Remove(ctx any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockDatabaseMockRecorder) Transaction ¶
func (mr *MockDatabaseMockRecorder) Transaction(ctx, id any) *gomock.Call
Transaction indicates an expected call of Transaction.
func (*MockDatabaseMockRecorder) TransactionJS ¶
func (mr *MockDatabaseMockRecorder) TransactionJS(ctx, options any) *gomock.Call
TransactionJS indicates an expected call of TransactionJS.
func (*MockDatabaseMockRecorder) ValidateQuery ¶
func (mr *MockDatabaseMockRecorder) ValidateQuery(ctx, query any) *gomock.Call
ValidateQuery indicates an expected call of ValidateQuery.
func (*MockDatabaseMockRecorder) View ¶
func (mr *MockDatabaseMockRecorder) View(ctx, name any) *gomock.Call
View indicates an expected call of View.
func (*MockDatabaseMockRecorder) ViewExists ¶
func (mr *MockDatabaseMockRecorder) ViewExists(ctx, name any) *gomock.Call
ViewExists indicates an expected call of ViewExists.
func (*MockDatabaseMockRecorder) Views ¶
func (mr *MockDatabaseMockRecorder) Views(ctx any) *gomock.Call
Views indicates an expected call of Views.
func (*MockDatabaseMockRecorder) ViewsAll ¶
func (mr *MockDatabaseMockRecorder) ViewsAll(ctx any) *gomock.Call
ViewsAll indicates an expected call of ViewsAll.
func (*MockDatabaseMockRecorder) WithTransaction ¶
func (mr *MockDatabaseMockRecorder) WithTransaction(ctx, cols, opts, commitOptions, abortOptions, w any) *gomock.Call
WithTransaction indicates an expected call of WithTransaction.
type MockGraph ¶ added in v0.3.0
type MockGraph struct {
// contains filtered or unexported fields
}
MockGraph is a mock of Graph interface.
func NewMockGraph ¶ added in v0.3.0
func NewMockGraph(ctrl *gomock.Controller) *MockGraph
NewMockGraph creates a new mock instance.
func (*MockGraph) CreateEdgeDefinition ¶ added in v0.3.0
func (m *MockGraph) CreateEdgeDefinition(ctx context.Context, collection string, from, to []string, opts *arangodb.CreateEdgeDefinitionOptions) (arangodb.CreateEdgeDefinitionResponse, error)
CreateEdgeDefinition mocks base method.
func (*MockGraph) CreateVertexCollection ¶ added in v0.3.0
func (m *MockGraph) CreateVertexCollection(ctx context.Context, name string, opts *arangodb.CreateVertexCollectionOptions) (arangodb.CreateVertexCollectionResponse, error)
CreateVertexCollection mocks base method.
func (*MockGraph) DeleteEdgeDefinition ¶ added in v0.3.0
func (m *MockGraph) DeleteEdgeDefinition(ctx context.Context, collection string, opts *arangodb.DeleteEdgeDefinitionOptions) (arangodb.DeleteEdgeDefinitionResponse, error)
DeleteEdgeDefinition mocks base method.
func (*MockGraph) DeleteVertexCollection ¶ added in v0.3.0
func (m *MockGraph) DeleteVertexCollection(ctx context.Context, name string, opts *arangodb.DeleteVertexCollectionOptions) (arangodb.DeleteVertexCollectionResponse, error)
DeleteVertexCollection mocks base method.
func (*MockGraph) EXPECT ¶ added in v0.3.0
func (m *MockGraph) EXPECT() *MockGraphMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGraph) EdgeDefinition ¶ added in v0.3.0
EdgeDefinition mocks base method.
func (*MockGraph) EdgeDefinitionExists ¶ added in v0.3.0
EdgeDefinitionExists mocks base method.
func (*MockGraph) EdgeDefinitions ¶ added in v0.3.0
func (m *MockGraph) EdgeDefinitions() []arangodb.EdgeDefinition
EdgeDefinitions mocks base method.
func (*MockGraph) GetEdgeDefinitions ¶ added in v0.3.0
GetEdgeDefinitions mocks base method.
func (*MockGraph) IsDisjoint ¶ added in v0.3.0
IsDisjoint mocks base method.
func (*MockGraph) IsSatellite ¶ added in v0.3.0
IsSatellite mocks base method.
func (*MockGraph) NumberOfShards ¶ added in v0.3.0
NumberOfShards mocks base method.
func (*MockGraph) OrphanCollections ¶ added in v0.3.0
OrphanCollections mocks base method.
func (*MockGraph) ReplaceEdgeDefinition ¶ added in v0.3.0
func (m *MockGraph) ReplaceEdgeDefinition(ctx context.Context, collection string, from, to []string, opts *arangodb.ReplaceEdgeOptions) (arangodb.ReplaceEdgeDefinitionResponse, error)
ReplaceEdgeDefinition mocks base method.
func (*MockGraph) ReplicationFactor ¶ added in v0.3.0
ReplicationFactor mocks base method.
func (*MockGraph) SmartGraphAttribute ¶ added in v0.3.0
SmartGraphAttribute mocks base method.
func (*MockGraph) VertexCollection ¶ added in v0.3.0
func (m *MockGraph) VertexCollection(ctx context.Context, name string) (arangodb.VertexCollection, error)
VertexCollection mocks base method.
func (*MockGraph) VertexCollectionExists ¶ added in v0.3.0
VertexCollectionExists mocks base method.
func (*MockGraph) VertexCollections ¶ added in v0.3.0
VertexCollections mocks base method.
func (*MockGraph) WriteConcern ¶ added in v0.3.0
WriteConcern mocks base method.
type MockGraphEdgesDefinition ¶ added in v0.3.0
type MockGraphEdgesDefinition struct {
// contains filtered or unexported fields
}
MockGraphEdgesDefinition is a mock of GraphEdgesDefinition interface.
func NewMockGraphEdgesDefinition ¶ added in v0.3.0
func NewMockGraphEdgesDefinition(ctrl *gomock.Controller) *MockGraphEdgesDefinition
NewMockGraphEdgesDefinition creates a new mock instance.
func (*MockGraphEdgesDefinition) CreateEdgeDefinition ¶ added in v0.3.0
func (m *MockGraphEdgesDefinition) CreateEdgeDefinition(ctx context.Context, collection string, from, to []string, opts *arangodb.CreateEdgeDefinitionOptions) (arangodb.CreateEdgeDefinitionResponse, error)
CreateEdgeDefinition mocks base method.
func (*MockGraphEdgesDefinition) DeleteEdgeDefinition ¶ added in v0.3.0
func (m *MockGraphEdgesDefinition) DeleteEdgeDefinition(ctx context.Context, collection string, opts *arangodb.DeleteEdgeDefinitionOptions) (arangodb.DeleteEdgeDefinitionResponse, error)
DeleteEdgeDefinition mocks base method.
func (*MockGraphEdgesDefinition) EXPECT ¶ added in v0.3.0
func (m *MockGraphEdgesDefinition) EXPECT() *MockGraphEdgesDefinitionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGraphEdgesDefinition) EdgeDefinition ¶ added in v0.3.0
func (m *MockGraphEdgesDefinition) EdgeDefinition(ctx context.Context, collection string) (arangodb.Edge, error)
EdgeDefinition mocks base method.
func (*MockGraphEdgesDefinition) EdgeDefinitionExists ¶ added in v0.3.0
func (m *MockGraphEdgesDefinition) EdgeDefinitionExists(ctx context.Context, collection string) (bool, error)
EdgeDefinitionExists mocks base method.
func (*MockGraphEdgesDefinition) GetEdgeDefinitions ¶ added in v0.3.0
GetEdgeDefinitions mocks base method.
func (*MockGraphEdgesDefinition) ReplaceEdgeDefinition ¶ added in v0.3.0
func (m *MockGraphEdgesDefinition) ReplaceEdgeDefinition(ctx context.Context, collection string, from, to []string, opts *arangodb.ReplaceEdgeOptions) (arangodb.ReplaceEdgeDefinitionResponse, error)
ReplaceEdgeDefinition mocks base method.
type MockGraphEdgesDefinitionMockRecorder ¶ added in v0.3.0
type MockGraphEdgesDefinitionMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphEdgesDefinitionMockRecorder is the mock recorder for MockGraphEdgesDefinition.
func (*MockGraphEdgesDefinitionMockRecorder) CreateEdgeDefinition ¶ added in v0.3.0
func (mr *MockGraphEdgesDefinitionMockRecorder) CreateEdgeDefinition(ctx, collection, from, to, opts any) *gomock.Call
CreateEdgeDefinition indicates an expected call of CreateEdgeDefinition.
func (*MockGraphEdgesDefinitionMockRecorder) DeleteEdgeDefinition ¶ added in v0.3.0
func (mr *MockGraphEdgesDefinitionMockRecorder) DeleteEdgeDefinition(ctx, collection, opts any) *gomock.Call
DeleteEdgeDefinition indicates an expected call of DeleteEdgeDefinition.
func (*MockGraphEdgesDefinitionMockRecorder) EdgeDefinition ¶ added in v0.3.0
func (mr *MockGraphEdgesDefinitionMockRecorder) EdgeDefinition(ctx, collection any) *gomock.Call
EdgeDefinition indicates an expected call of EdgeDefinition.
func (*MockGraphEdgesDefinitionMockRecorder) EdgeDefinitionExists ¶ added in v0.3.0
func (mr *MockGraphEdgesDefinitionMockRecorder) EdgeDefinitionExists(ctx, collection any) *gomock.Call
EdgeDefinitionExists indicates an expected call of EdgeDefinitionExists.
func (*MockGraphEdgesDefinitionMockRecorder) GetEdgeDefinitions ¶ added in v0.3.0
func (mr *MockGraphEdgesDefinitionMockRecorder) GetEdgeDefinitions(ctx any) *gomock.Call
GetEdgeDefinitions indicates an expected call of GetEdgeDefinitions.
func (*MockGraphEdgesDefinitionMockRecorder) ReplaceEdgeDefinition ¶ added in v0.3.0
func (mr *MockGraphEdgesDefinitionMockRecorder) ReplaceEdgeDefinition(ctx, collection, from, to, opts any) *gomock.Call
ReplaceEdgeDefinition indicates an expected call of ReplaceEdgeDefinition.
type MockGraphMockRecorder ¶ added in v0.3.0
type MockGraphMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphMockRecorder is the mock recorder for MockGraph.
func (*MockGraphMockRecorder) CreateEdgeDefinition ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) CreateEdgeDefinition(ctx, collection, from, to, opts any) *gomock.Call
CreateEdgeDefinition indicates an expected call of CreateEdgeDefinition.
func (*MockGraphMockRecorder) CreateVertexCollection ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) CreateVertexCollection(ctx, name, opts any) *gomock.Call
CreateVertexCollection indicates an expected call of CreateVertexCollection.
func (*MockGraphMockRecorder) DeleteEdgeDefinition ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) DeleteEdgeDefinition(ctx, collection, opts any) *gomock.Call
DeleteEdgeDefinition indicates an expected call of DeleteEdgeDefinition.
func (*MockGraphMockRecorder) DeleteVertexCollection ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) DeleteVertexCollection(ctx, name, opts any) *gomock.Call
DeleteVertexCollection indicates an expected call of DeleteVertexCollection.
func (*MockGraphMockRecorder) EdgeDefinition ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) EdgeDefinition(ctx, collection any) *gomock.Call
EdgeDefinition indicates an expected call of EdgeDefinition.
func (*MockGraphMockRecorder) EdgeDefinitionExists ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) EdgeDefinitionExists(ctx, collection any) *gomock.Call
EdgeDefinitionExists indicates an expected call of EdgeDefinitionExists.
func (*MockGraphMockRecorder) EdgeDefinitions ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) EdgeDefinitions() *gomock.Call
EdgeDefinitions indicates an expected call of EdgeDefinitions.
func (*MockGraphMockRecorder) GetEdgeDefinitions ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) GetEdgeDefinitions(ctx any) *gomock.Call
GetEdgeDefinitions indicates an expected call of GetEdgeDefinitions.
func (*MockGraphMockRecorder) IsDisjoint ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) IsDisjoint() *gomock.Call
IsDisjoint indicates an expected call of IsDisjoint.
func (*MockGraphMockRecorder) IsSatellite ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) IsSatellite() *gomock.Call
IsSatellite indicates an expected call of IsSatellite.
func (*MockGraphMockRecorder) IsSmart ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) IsSmart() *gomock.Call
IsSmart indicates an expected call of IsSmart.
func (*MockGraphMockRecorder) Name ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockGraphMockRecorder) NumberOfShards ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) NumberOfShards() *gomock.Call
NumberOfShards indicates an expected call of NumberOfShards.
func (*MockGraphMockRecorder) OrphanCollections ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) OrphanCollections() *gomock.Call
OrphanCollections indicates an expected call of OrphanCollections.
func (*MockGraphMockRecorder) Remove ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) Remove(ctx, opts any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockGraphMockRecorder) ReplaceEdgeDefinition ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) ReplaceEdgeDefinition(ctx, collection, from, to, opts any) *gomock.Call
ReplaceEdgeDefinition indicates an expected call of ReplaceEdgeDefinition.
func (*MockGraphMockRecorder) ReplicationFactor ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) ReplicationFactor() *gomock.Call
ReplicationFactor indicates an expected call of ReplicationFactor.
func (*MockGraphMockRecorder) SmartGraphAttribute ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) SmartGraphAttribute() *gomock.Call
SmartGraphAttribute indicates an expected call of SmartGraphAttribute.
func (*MockGraphMockRecorder) VertexCollection ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) VertexCollection(ctx, name any) *gomock.Call
VertexCollection indicates an expected call of VertexCollection.
func (*MockGraphMockRecorder) VertexCollectionExists ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) VertexCollectionExists(ctx, name any) *gomock.Call
VertexCollectionExists indicates an expected call of VertexCollectionExists.
func (*MockGraphMockRecorder) VertexCollections ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) VertexCollections(ctx any) *gomock.Call
VertexCollections indicates an expected call of VertexCollections.
func (*MockGraphMockRecorder) WriteConcern ¶ added in v0.3.0
func (mr *MockGraphMockRecorder) WriteConcern() *gomock.Call
WriteConcern indicates an expected call of WriteConcern.
type MockGraphVertexCollections ¶ added in v0.3.0
type MockGraphVertexCollections struct {
// contains filtered or unexported fields
}
MockGraphVertexCollections is a mock of GraphVertexCollections interface.
func NewMockGraphVertexCollections ¶ added in v0.3.0
func NewMockGraphVertexCollections(ctrl *gomock.Controller) *MockGraphVertexCollections
NewMockGraphVertexCollections creates a new mock instance.
func (*MockGraphVertexCollections) CreateVertexCollection ¶ added in v0.3.0
func (m *MockGraphVertexCollections) CreateVertexCollection(ctx context.Context, name string, opts *arangodb.CreateVertexCollectionOptions) (arangodb.CreateVertexCollectionResponse, error)
CreateVertexCollection mocks base method.
func (*MockGraphVertexCollections) DeleteVertexCollection ¶ added in v0.3.0
func (m *MockGraphVertexCollections) DeleteVertexCollection(ctx context.Context, name string, opts *arangodb.DeleteVertexCollectionOptions) (arangodb.DeleteVertexCollectionResponse, error)
DeleteVertexCollection mocks base method.
func (*MockGraphVertexCollections) EXPECT ¶ added in v0.3.0
func (m *MockGraphVertexCollections) EXPECT() *MockGraphVertexCollectionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGraphVertexCollections) VertexCollection ¶ added in v0.3.0
func (m *MockGraphVertexCollections) VertexCollection(ctx context.Context, name string) (arangodb.VertexCollection, error)
VertexCollection mocks base method.
func (*MockGraphVertexCollections) VertexCollectionExists ¶ added in v0.3.0
func (m *MockGraphVertexCollections) VertexCollectionExists(ctx context.Context, name string) (bool, error)
VertexCollectionExists mocks base method.
func (*MockGraphVertexCollections) VertexCollections ¶ added in v0.3.0
func (m *MockGraphVertexCollections) VertexCollections(ctx context.Context) ([]arangodb.VertexCollection, error)
VertexCollections mocks base method.
type MockGraphVertexCollectionsMockRecorder ¶ added in v0.3.0
type MockGraphVertexCollectionsMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphVertexCollectionsMockRecorder is the mock recorder for MockGraphVertexCollections.
func (*MockGraphVertexCollectionsMockRecorder) CreateVertexCollection ¶ added in v0.3.0
func (mr *MockGraphVertexCollectionsMockRecorder) CreateVertexCollection(ctx, name, opts any) *gomock.Call
CreateVertexCollection indicates an expected call of CreateVertexCollection.
func (*MockGraphVertexCollectionsMockRecorder) DeleteVertexCollection ¶ added in v0.3.0
func (mr *MockGraphVertexCollectionsMockRecorder) DeleteVertexCollection(ctx, name, opts any) *gomock.Call
DeleteVertexCollection indicates an expected call of DeleteVertexCollection.
func (*MockGraphVertexCollectionsMockRecorder) VertexCollection ¶ added in v0.3.0
func (mr *MockGraphVertexCollectionsMockRecorder) VertexCollection(ctx, name any) *gomock.Call
VertexCollection indicates an expected call of VertexCollection.
func (*MockGraphVertexCollectionsMockRecorder) VertexCollectionExists ¶ added in v0.3.0
func (mr *MockGraphVertexCollectionsMockRecorder) VertexCollectionExists(ctx, name any) *gomock.Call
VertexCollectionExists indicates an expected call of VertexCollectionExists.
func (*MockGraphVertexCollectionsMockRecorder) VertexCollections ¶ added in v0.3.0
func (mr *MockGraphVertexCollectionsMockRecorder) VertexCollections(ctx any) *gomock.Call
VertexCollections indicates an expected call of VertexCollections.
type MockGraphsResponseReader ¶ added in v0.3.0
type MockGraphsResponseReader struct {
// contains filtered or unexported fields
}
MockGraphsResponseReader is a mock of GraphsResponseReader interface.
func NewMockGraphsResponseReader ¶ added in v0.3.0
func NewMockGraphsResponseReader(ctrl *gomock.Controller) *MockGraphsResponseReader
NewMockGraphsResponseReader creates a new mock instance.
func (*MockGraphsResponseReader) EXPECT ¶ added in v0.3.0
func (m *MockGraphsResponseReader) EXPECT() *MockGraphsResponseReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGraphsResponseReaderMockRecorder ¶ added in v0.3.0
type MockGraphsResponseReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphsResponseReaderMockRecorder is the mock recorder for MockGraphsResponseReader.
func (*MockGraphsResponseReaderMockRecorder) Read ¶ added in v0.3.0
func (mr *MockGraphsResponseReaderMockRecorder) Read() *gomock.Call
Read indicates an expected call of Read.
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) Debugf ¶
func (m *MockLogger) Debugf(pattern string, args ...any)
Debugf mocks base method.
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Errorf ¶
func (m *MockLogger) Errorf(pattern string, args ...any)
Errorf mocks base method.
func (*MockLogger) Logf ¶
func (m *MockLogger) Logf(pattern string, args ...any)
Logf mocks base method.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Debug ¶
func (mr *MockLoggerMockRecorder) Debug(args ...any) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockLoggerMockRecorder) Debugf ¶
func (mr *MockLoggerMockRecorder) Debugf(pattern any, args ...any) *gomock.Call
Debugf indicates an expected call of Debugf.
type MockMetrics ¶
type MockMetrics struct {
// contains filtered or unexported fields
}
MockMetrics is a mock of Metrics interface.
func NewMockMetrics ¶
func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics
NewMockMetrics creates a new mock instance.
func (*MockMetrics) EXPECT ¶
func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetrics) NewHistogram ¶
func (m *MockMetrics) NewHistogram(name, desc string, buckets ...float64)
NewHistogram mocks base method.
func (*MockMetrics) RecordHistogram ¶
func (m *MockMetrics) RecordHistogram(ctx context.Context, name string, value float64, labels ...string)
RecordHistogram mocks base method.
type MockMetricsMockRecorder ¶
type MockMetricsMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsMockRecorder is the mock recorder for MockMetrics.
func (*MockMetricsMockRecorder) NewHistogram ¶
func (mr *MockMetricsMockRecorder) NewHistogram(name, desc any, buckets ...any) *gomock.Call
NewHistogram indicates an expected call of NewHistogram.
func (*MockMetricsMockRecorder) RecordHistogram ¶
func (mr *MockMetricsMockRecorder) RecordHistogram(ctx, name, value any, labels ...any) *gomock.Call
RecordHistogram indicates an expected call of RecordHistogram.
type MockUser ¶
type MockUser struct {
// contains filtered or unexported fields
}
MockUser implements the complete arangodb.user interface.
func NewMockUser ¶
func NewMockUser(ctrl *gomock.Controller) *MockUser
func (*MockUser) AccessibleDatabases ¶
func (*MockUser) AccessibleDatabasesFull ¶
func (*MockUser) GetCollectionAccess ¶
func (*MockUser) GetDatabaseAccess ¶
func (*MockUser) RemoveCollectionAccess ¶
func (*MockUser) RemoveDatabaseAccess ¶
func (*MockUser) SetCollectionAccess ¶
type QueryLog ¶
type QueryLog struct { Query string `json:"query"` Duration int64 `json:"duration"` Database string `json:"database,omitempty"` Collection string `json:"collection,omitempty"` Filter any `json:"filter,omitempty"` ID any `json:"id,omitempty"` Operation string `json:"operation,omitempty"` }
func (*QueryLog) PrettyPrint ¶
PrettyPrint formats the QueryLog for output.