arangodb

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var (
	ErrDatabaseExists   = errors.New("database already exists")
	ErrCollectionExists = errors.New("collection already exists")
	ErrGraphExists      = errors.New("graph already exists")
)

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

type Client struct {
	*DB
	*Document
	*Graph
	// contains filtered or unexported fields
}

Client represents an ArangoDB client.

func New

func New(c Config) *Client

New creates a new ArangoDB client with the provided configuration.

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

func (c *Client) HealthCheck(ctx context.Context) (any, error)

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) UseLogger

func (c *Client) UseLogger(logger any)

UseLogger sets the logger for the ArangoDB client.

func (*Client) UseMetrics

func (c *Client) UseMetrics(metrics any)

UseMetrics sets the metrics for the ArangoDB client.

func (*Client) UseTracer

func (c *Client) UseTracer(tracer any)

UseTracer sets the tracer for the ArangoDB client.

type Config

type Config struct {
	Host     string
	User     string
	Password string
	Port     int
}

Config holds the configuration for ArangoDB connection.

type DB added in v0.2.0

type DB struct {
	// contains filtered or unexported fields
}

func (*DB) CreateCollection added in v0.2.0

func (d *DB) CreateCollection(ctx context.Context, database, collection string, isEdge bool) error

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

func (d *DB) CreateDB(ctx context.Context, database string) error

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

func (d *DB) DropCollection(ctx context.Context, database, collectionName string) error

DropCollection deletes an existing collection from a database.

func (*DB) DropDB added in v0.2.0

func (d *DB) DropDB(ctx context.Context, database string) error

DropDB deletes a database from ArangoDB.

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.

func (*Document) GetDocument

func (d *Document) GetDocument(ctx context.Context, dbName, collectionName, documentID string, result any) error

GetDocument retrieves a document by its ID from the specified collection.

func (*Document) UpdateDocument

func (d *Document) UpdateDocument(ctx context.Context, dbName, collectionName, documentID string, document any) error

UpdateDocument updates an existing document in 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

func (g *Graph) CreateGraph(ctx context.Context, database, graph string, edgeDefinitions any) error

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

func (g *Graph) DropGraph(ctx context.Context, database, graphName string) error

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 GraphsResponseReader interface {
	// Read returns next Graph. If no Graph left, shared.NoMoreDocumentsError returned
	Read() (arangodb.Graph, error)
}

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 Logger

type Logger interface {
	Debug(args ...any)
	Debugf(pattern string, args ...any)
	Logf(pattern string, args ...any)
	Errorf(pattern string, args ...any)
}

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 (m *MockArango) AccessibleDatabases(ctx context.Context) ([]arangodb.Database, error)

func (*MockArango) AddUser

func (m *MockArango) AddUser(ctx context.Context, username string, options any) error

CreateUser mocks base method.

func (*MockArango) AsyncJobCancel

func (m *MockArango) AsyncJobCancel(ctx context.Context, jobID string) (bool, error)

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 (*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 (*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 (m *MockArango) CleanOutServer(ctx context.Context, serverID arangodb.ServerID) (string, error)

func (*MockArango) Connect

func (m *MockArango) Connect()

Connect mocks base method.

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) Database

func (m *MockArango) Database(ctx context.Context, name string) (arangodb.Database, error)

Database mocks base method.

func (*MockArango) DatabaseExists

func (m *MockArango) DatabaseExists(ctx context.Context, name string) (bool, error)

func (*MockArango) DatabaseInventory

func (m *MockArango) DatabaseInventory(ctx context.Context, dbName string) (arangodb.DatabaseInventory, error)

func (*MockArango) Databases

func (m *MockArango) Databases(ctx context.Context) ([]arangodb.Database, error)

Databases mocks base method.

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 (m *MockArango) GetLicense(ctx context.Context) (arangodb.License, error)

func (*MockArango) GetLogLevels

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 (*MockArango) HealthCheck

func (m *MockArango) HealthCheck(ctx context.Context) (any, error)

HealthCheck mocks base method.

func (*MockArango) IsCleanedOut

func (m *MockArango) IsCleanedOut(ctx context.Context, serverID arangodb.ServerID) (bool, error)

func (*MockArango) ListCollections

func (m *MockArango) ListCollections(ctx context.Context, database string) ([]string, error)

ListCollections mocks base method.

func (*MockArango) ListDBs

func (m *MockArango) ListDBs(ctx context.Context) ([]string, error)

ListDBs mocks base method.

func (*MockArango) ListGraphs

func (m *MockArango) ListGraphs(ctx context.Context, database string) ([]string, error)

ListGraphs mocks base method.

func (*MockArango) MoveShard

func (m *MockArango) MoveShard(ctx context.Context, col arangodb.Collection, shard arangodb.ShardID, fromServer, toServer arangodb.ServerID) (string, error)

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 (m *MockArango) RemoveServer(ctx context.Context, serverID arangodb.ServerID) error

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 (m *MockArango) ResignServer(ctx context.Context, serverID arangodb.ServerID) (string, error)

func (*MockArango) ServerID

func (m *MockArango) ServerID(ctx context.Context) (string, error)

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 (m *MockArango) SetLicense(ctx context.Context, license string, force bool) error

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) User

func (m *MockArango) User(ctx context.Context, username string) (arangodb.User, error)

User mocks base method.

func (*MockArango) UserExists

func (m *MockArango) UserExists(ctx context.Context, name string) (bool, error)

func (*MockArango) Users

func (m *MockArango) Users(ctx context.Context) ([]arangodb.User, error)

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

CreateDocumentWithOptions mocks base method.

func (*MockCollection) CreateDocuments

CreateDocuments mocks base method.

func (*MockCollection) CreateDocumentsWithOptions

CreateDocumentsWithOptions mocks base method.

func (*MockCollection) Database

func (m *MockCollection) Database() arangodb.Database

Database mocks base method.

func (*MockCollection) DeleteDocument

DeleteDocument mocks base method.

func (*MockCollection) DeleteDocumentWithOptions

DeleteDocumentWithOptions mocks base method.

func (*MockCollection) DeleteDocuments

DeleteDocuments mocks base method.

func (*MockCollection) DeleteDocumentsWithOptions

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

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

DocumentExists mocks base method.

func (*MockCollection) EXPECT

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

Index mocks base method.

func (*MockCollection) IndexExists

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

IndexExists mocks base method.

func (*MockCollection) Indexes

Indexes mocks base method.

func (*MockCollection) Name

func (m *MockCollection) Name() string

Name mocks base method.

func (*MockCollection) Properties

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

ReadDocuments mocks base method.

func (*MockCollection) ReadDocumentsWithOptions

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

ReplaceDocumentWithOptions mocks base method.

func (*MockCollection) ReplaceDocuments

ReplaceDocuments mocks base method.

func (*MockCollection) ReplaceDocumentsWithOptions

ReplaceDocumentsWithOptions mocks base method.

func (*MockCollection) SetProperties

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

UpdateDocumentWithOptions mocks base method.

func (*MockCollection) UpdateDocuments

UpdateDocuments mocks base method.

func (*MockCollection) UpdateDocumentsWithOptions

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

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) Analyzer

func (m *MockDatabase) Analyzer(ctx context.Context, name string) (arangodb.Analyzer, error)

Analyzer mocks base method.

func (*MockDatabase) Analyzers

Analyzers mocks base method.

func (*MockDatabase) BeginTransaction

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

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

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

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

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

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

GraphExists mocks base method.

func (*MockDatabase) Graphs

Graphs mocks base method.

func (*MockDatabase) Info

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) Name

func (m *MockDatabase) Name() string

Name 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

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) View

func (m *MockDatabase) View(ctx context.Context, name string) (arangodb.View, error)

View mocks base method.

func (*MockDatabase) ViewExists

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

ViewExists mocks base method.

func (*MockDatabase) Views

Views mocks base method.

func (*MockDatabase) ViewsAll

func (m *MockDatabase) ViewsAll(ctx context.Context) ([]arangodb.View, error)

ViewsAll mocks base method.

func (*MockDatabase) WithTransaction

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

CreateGraph mocks base method.

func (*MockDatabaseGraph) EXPECT added in v0.3.0

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

Graph mocks base method.

func (*MockDatabaseGraph) GraphExists added in v0.3.0

func (m *MockDatabaseGraph) GraphExists(ctx context.Context, name string) (bool, error)

GraphExists mocks base method.

func (*MockDatabaseGraph) Graphs added in v0.3.0

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.

func (*MockDatabaseGraphMockRecorder) Graphs added in v0.3.0

func (mr *MockDatabaseGraphMockRecorder) Graphs(ctx any) *gomock.Call

Graphs indicates an expected call of Graphs.

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

CreateVertexCollection mocks base method.

func (*MockGraph) DeleteEdgeDefinition added in v0.3.0

DeleteEdgeDefinition mocks base method.

func (*MockGraph) DeleteVertexCollection added in v0.3.0

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

func (m *MockGraph) EdgeDefinition(ctx context.Context, collection string) (arangodb.Edge, error)

EdgeDefinition mocks base method.

func (*MockGraph) EdgeDefinitionExists added in v0.3.0

func (m *MockGraph) EdgeDefinitionExists(ctx context.Context, collection string) (bool, error)

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

func (m *MockGraph) GetEdgeDefinitions(ctx context.Context) ([]arangodb.Edge, error)

GetEdgeDefinitions mocks base method.

func (*MockGraph) IsDisjoint added in v0.3.0

func (m *MockGraph) IsDisjoint() bool

IsDisjoint mocks base method.

func (*MockGraph) IsSatellite added in v0.3.0

func (m *MockGraph) IsSatellite() bool

IsSatellite mocks base method.

func (*MockGraph) IsSmart added in v0.3.0

func (m *MockGraph) IsSmart() bool

IsSmart mocks base method.

func (*MockGraph) Name added in v0.3.0

func (m *MockGraph) Name() string

Name mocks base method.

func (*MockGraph) NumberOfShards added in v0.3.0

func (m *MockGraph) NumberOfShards() *int

NumberOfShards mocks base method.

func (*MockGraph) OrphanCollections added in v0.3.0

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

OrphanCollections mocks base method.

func (*MockGraph) Remove added in v0.3.0

func (m *MockGraph) Remove(ctx context.Context, opts *arangodb.RemoveGraphOptions) error

Remove 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

func (m *MockGraph) ReplicationFactor() int

ReplicationFactor mocks base method.

func (*MockGraph) SmartGraphAttribute added in v0.3.0

func (m *MockGraph) SmartGraphAttribute() string

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

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

VertexCollectionExists mocks base method.

func (*MockGraph) VertexCollections added in v0.3.0

func (m *MockGraph) VertexCollections(ctx context.Context) ([]arangodb.VertexCollection, error)

VertexCollections mocks base method.

func (*MockGraph) WriteConcern added in v0.3.0

func (m *MockGraph) WriteConcern() *int

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

CreateEdgeDefinition mocks base method.

func (*MockGraphEdgesDefinition) DeleteEdgeDefinition added in v0.3.0

DeleteEdgeDefinition mocks base method.

func (*MockGraphEdgesDefinition) EXPECT added in v0.3.0

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

func (m *MockGraphEdgesDefinition) GetEdgeDefinitions(ctx context.Context) ([]arangodb.Edge, error)

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

CreateVertexCollection mocks base method.

func (*MockGraphVertexCollections) DeleteVertexCollection added in v0.3.0

DeleteVertexCollection mocks base method.

func (*MockGraphVertexCollections) EXPECT added in v0.3.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGraphVertexCollections) VertexCollection added in v0.3.0

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGraphsResponseReader) Read added in v0.3.0

Read mocks base method.

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

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) Debug

func (m *MockLogger) Debug(args ...any)

Debug mocks base method.

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.

func (*MockLoggerMockRecorder) Errorf

func (mr *MockLoggerMockRecorder) Errorf(pattern any, args ...any) *gomock.Call

Errorf indicates an expected call of Errorf.

func (*MockLoggerMockRecorder) Logf

func (mr *MockLoggerMockRecorder) Logf(pattern any, args ...any) *gomock.Call

Logf indicates an expected call of Logf.

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) AccessibleDatabases(context.Context) (map[string]arangodb.Grant, error)

func (*MockUser) AccessibleDatabasesFull

func (*MockUser) AccessibleDatabasesFull(context.Context) (map[string]arangodb.DatabasePermissions, error)

func (*MockUser) Extra

func (*MockUser) Extra(any) error

func (*MockUser) GetCollectionAccess

func (*MockUser) GetCollectionAccess(context.Context, string, string) (arangodb.Grant, error)

func (*MockUser) GetDatabaseAccess

func (*MockUser) GetDatabaseAccess(context.Context, string) (arangodb.Grant, error)

func (*MockUser) IsActive

func (m *MockUser) IsActive() bool

func (*MockUser) Name

func (m *MockUser) Name() string

func (*MockUser) RemoveCollectionAccess

func (*MockUser) RemoveCollectionAccess(context.Context, string, string) error

func (*MockUser) RemoveDatabaseAccess

func (*MockUser) RemoveDatabaseAccess(context.Context, string) error

func (*MockUser) SetCollectionAccess

func (*MockUser) SetCollectionAccess(context.Context, string, string, arangodb.Grant) error

func (*MockUser) SetDatabaseAccess

func (*MockUser) SetDatabaseAccess(context.Context, string, arangodb.Grant) error

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

func (ql *QueryLog) PrettyPrint(writer io.Writer)

PrettyPrint formats the QueryLog for output.

type UserOptions

type UserOptions struct {
	Password string `json:"passwd,omitempty"`
	Active   *bool  `json:"active,omitempty"`
	Extra    any    `json:"extra,omitempty"`
}

Jump to

Keyboard shortcuts

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