arangomock

package module
v0.0.0-...-5f6fe16 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 7 Imported by: 0

README

arango-testify-mock

Testify compatible mocks for arangodb go driver

generated using mockery

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTarget

type AccessTarget struct {
	mock.Mock
}

AccessTarget is an autogenerated mock type for the AccessTarget type

func (*AccessTarget) Name

func (_m *AccessTarget) Name() string

Name provides a mock function with given fields:

type ArangoSearchView

type ArangoSearchView struct {
	mock.Mock
}

ArangoSearchView is an autogenerated mock type for the ArangoSearchView type

func (*ArangoSearchView) ArangoSearchView

func (_m *ArangoSearchView) ArangoSearchView() (driver.ArangoSearchView, error)

ArangoSearchView provides a mock function with given fields:

func (*ArangoSearchView) Database

func (_m *ArangoSearchView) Database() driver.Database

Database provides a mock function with given fields:

func (*ArangoSearchView) Name

func (_m *ArangoSearchView) Name() string

Name provides a mock function with given fields:

func (*ArangoSearchView) Properties

Properties provides a mock function with given fields: ctx

func (*ArangoSearchView) Remove

func (_m *ArangoSearchView) Remove(ctx context.Context) error

Remove provides a mock function with given fields: ctx

func (*ArangoSearchView) SetProperties

func (_m *ArangoSearchView) SetProperties(ctx context.Context, options driver.ArangoSearchViewProperties) error

SetProperties provides a mock function with given fields: ctx, options

func (*ArangoSearchView) Type

func (_m *ArangoSearchView) Type() driver.ViewType

Type provides a mock function with given fields:

type Authentication

type Authentication struct {
	mock.Mock
}

Authentication is an autogenerated mock type for the Authentication type

func (*Authentication) Get

func (_m *Authentication) Get(property string) string

Get provides a mock function with given fields: property

func (*Authentication) Type

Type provides a mock function with given fields:

type Batch

type Batch struct {
	mock.Mock
}

Batch is an autogenerated mock type for the Batch type

func (*Batch) BatchID

func (_m *Batch) BatchID() string

BatchID provides a mock function with given fields:

func (*Batch) Delete

func (_m *Batch) Delete(ctx context.Context) error

Delete provides a mock function with given fields: ctx

func (*Batch) Extend

func (_m *Batch) Extend(ctx context.Context, ttl time.Duration) error

Extend provides a mock function with given fields: ctx, ttl

func (*Batch) LastTick

func (_m *Batch) LastTick() driver.Tick

LastTick provides a mock function with given fields:

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) AccessibleDatabases

func (_m *Client) AccessibleDatabases(ctx context.Context) ([]driver.Database, error)

AccessibleDatabases provides a mock function with given fields: ctx

func (*Client) Cluster

func (_m *Client) Cluster(ctx context.Context) (driver.Cluster, error)

Cluster provides a mock function with given fields: ctx

func (*Client) Connection

func (_m *Client) Connection() driver.Connection

Connection provides a mock function with given fields:

func (*Client) CreateDatabase

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

CreateDatabase provides a mock function with given fields: ctx, name, options

func (*Client) CreateUser

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

CreateUser provides a mock function with given fields: ctx, name, options

func (*Client) Database

func (_m *Client) Database(ctx context.Context, name string) (driver.Database, error)

Database provides a mock function with given fields: ctx, name

func (*Client) DatabaseExists

func (_m *Client) DatabaseExists(ctx context.Context, name string) (bool, error)

DatabaseExists provides a mock function with given fields: ctx, name

func (*Client) Databases

func (_m *Client) Databases(ctx context.Context) ([]driver.Database, error)

Databases provides a mock function with given fields: ctx

func (*Client) Replication

func (_m *Client) Replication() driver.Replication

Replication provides a mock function with given fields:

func (*Client) ServerID

func (_m *Client) ServerID(ctx context.Context) (string, error)

ServerID provides a mock function with given fields: ctx

func (*Client) ServerMode

func (_m *Client) ServerMode(ctx context.Context) (driver.ServerMode, error)

ServerMode provides a mock function with given fields: ctx

func (*Client) ServerRole

func (_m *Client) ServerRole(ctx context.Context) (driver.ServerRole, error)

ServerRole provides a mock function with given fields: ctx

func (*Client) SetServerMode

func (_m *Client) SetServerMode(ctx context.Context, mode driver.ServerMode) error

SetServerMode provides a mock function with given fields: ctx, mode

func (*Client) Shutdown

func (_m *Client) Shutdown(ctx context.Context, removeFromCluster bool) error

Shutdown provides a mock function with given fields: ctx, removeFromCluster

func (*Client) SynchronizeEndpoints

func (_m *Client) SynchronizeEndpoints(ctx context.Context) error

SynchronizeEndpoints provides a mock function with given fields: ctx

func (*Client) User

func (_m *Client) User(ctx context.Context, name string) (driver.User, error)

User provides a mock function with given fields: ctx, name

func (*Client) UserExists

func (_m *Client) UserExists(ctx context.Context, name string) (bool, error)

UserExists provides a mock function with given fields: ctx, name

func (*Client) Users

func (_m *Client) Users(ctx context.Context) ([]driver.User, error)

Users provides a mock function with given fields: ctx

func (*Client) Version

func (_m *Client) Version(ctx context.Context) (driver.VersionInfo, error)

Version provides a mock function with given fields: ctx

type ClientCluster

type ClientCluster struct {
	mock.Mock
}

ClientCluster is an autogenerated mock type for the ClientCluster type

func (*ClientCluster) Cluster

func (_m *ClientCluster) Cluster(ctx context.Context) (driver.Cluster, error)

Cluster provides a mock function with given fields: ctx

type ClientDatabases

type ClientDatabases struct {
	mock.Mock
}

ClientDatabases is an autogenerated mock type for the ClientDatabases type

func (*ClientDatabases) AccessibleDatabases

func (_m *ClientDatabases) AccessibleDatabases(ctx context.Context) ([]driver.Database, error)

AccessibleDatabases provides a mock function with given fields: ctx

func (*ClientDatabases) CreateDatabase

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

CreateDatabase provides a mock function with given fields: ctx, name, options

func (*ClientDatabases) Database

func (_m *ClientDatabases) Database(ctx context.Context, name string) (driver.Database, error)

Database provides a mock function with given fields: ctx, name

func (*ClientDatabases) DatabaseExists

func (_m *ClientDatabases) DatabaseExists(ctx context.Context, name string) (bool, error)

DatabaseExists provides a mock function with given fields: ctx, name

func (*ClientDatabases) Databases

func (_m *ClientDatabases) Databases(ctx context.Context) ([]driver.Database, error)

Databases provides a mock function with given fields: ctx

type ClientReplication

type ClientReplication struct {
	mock.Mock
}

ClientReplication is an autogenerated mock type for the ClientReplication type

func (*ClientReplication) Replication

func (_m *ClientReplication) Replication() driver.Replication

Replication provides a mock function with given fields:

type ClientServerAdmin

type ClientServerAdmin struct {
	mock.Mock
}

ClientServerAdmin is an autogenerated mock type for the ClientServerAdmin type

func (*ClientServerAdmin) ServerMode

func (_m *ClientServerAdmin) ServerMode(ctx context.Context) (driver.ServerMode, error)

ServerMode provides a mock function with given fields: ctx

func (*ClientServerAdmin) SetServerMode

func (_m *ClientServerAdmin) SetServerMode(ctx context.Context, mode driver.ServerMode) error

SetServerMode provides a mock function with given fields: ctx, mode

func (*ClientServerAdmin) Shutdown

func (_m *ClientServerAdmin) Shutdown(ctx context.Context, removeFromCluster bool) error

Shutdown provides a mock function with given fields: ctx, removeFromCluster

type ClientServerInfo

type ClientServerInfo struct {
	mock.Mock
}

ClientServerInfo is an autogenerated mock type for the ClientServerInfo type

func (*ClientServerInfo) ServerID

func (_m *ClientServerInfo) ServerID(ctx context.Context) (string, error)

ServerID provides a mock function with given fields: ctx

func (*ClientServerInfo) ServerRole

func (_m *ClientServerInfo) ServerRole(ctx context.Context) (driver.ServerRole, error)

ServerRole provides a mock function with given fields: ctx

func (*ClientServerInfo) Version

Version provides a mock function with given fields: ctx

type ClientUsers

type ClientUsers struct {
	mock.Mock
}

ClientUsers is an autogenerated mock type for the ClientUsers type

func (*ClientUsers) CreateUser

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

CreateUser provides a mock function with given fields: ctx, name, options

func (*ClientUsers) User

func (_m *ClientUsers) User(ctx context.Context, name string) (driver.User, error)

User provides a mock function with given fields: ctx, name

func (*ClientUsers) UserExists

func (_m *ClientUsers) UserExists(ctx context.Context, name string) (bool, error)

UserExists provides a mock function with given fields: ctx, name

func (*ClientUsers) Users

func (_m *ClientUsers) Users(ctx context.Context) ([]driver.User, error)

Users provides a mock function with given fields: ctx

type Cluster

type Cluster struct {
	mock.Mock
}

Cluster is an autogenerated mock type for the Cluster type

func (*Cluster) CleanOutServer

func (_m *Cluster) CleanOutServer(ctx context.Context, serverID string) error

CleanOutServer provides a mock function with given fields: ctx, serverID

func (*Cluster) DatabaseInventory

func (_m *Cluster) DatabaseInventory(ctx context.Context, db driver.Database) (driver.DatabaseInventory, error)

DatabaseInventory provides a mock function with given fields: ctx, db

func (*Cluster) Health

func (_m *Cluster) Health(ctx context.Context) (driver.ClusterHealth, error)

Health provides a mock function with given fields: ctx

func (*Cluster) IsCleanedOut

func (_m *Cluster) IsCleanedOut(ctx context.Context, serverID string) (bool, error)

IsCleanedOut provides a mock function with given fields: ctx, serverID

func (*Cluster) MoveShard

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

MoveShard provides a mock function with given fields: ctx, col, shard, fromServer, toServer

func (*Cluster) RemoveServer

func (_m *Cluster) RemoveServer(ctx context.Context, serverID driver.ServerID) error

RemoveServer provides a mock function with given fields: ctx, serverID

type Collection

type Collection struct {
	mock.Mock
}

Collection is an autogenerated mock type for the Collection type

func (*Collection) Count

func (_m *Collection) Count(ctx context.Context) (int64, error)

Count provides a mock function with given fields: ctx

func (*Collection) CreateDocument

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

CreateDocument provides a mock function with given fields: ctx, document

func (*Collection) CreateDocuments

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

CreateDocuments provides a mock function with given fields: ctx, documents

func (*Collection) Database

func (_m *Collection) Database() driver.Database

Database provides a mock function with given fields:

func (*Collection) DocumentExists

func (_m *Collection) DocumentExists(ctx context.Context, key string) (bool, error)

DocumentExists provides a mock function with given fields: ctx, key

func (*Collection) EnsureFullTextIndex

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

EnsureFullTextIndex provides a mock function with given fields: ctx, fields, options

func (*Collection) EnsureGeoIndex

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

EnsureGeoIndex provides a mock function with given fields: ctx, fields, options

func (*Collection) EnsureHashIndex

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

EnsureHashIndex provides a mock function with given fields: ctx, fields, options

func (*Collection) EnsurePersistentIndex

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

EnsurePersistentIndex provides a mock function with given fields: ctx, fields, options

func (*Collection) EnsureSkipListIndex

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

EnsureSkipListIndex provides a mock function with given fields: ctx, fields, options

func (*Collection) ImportDocuments

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

ImportDocuments provides a mock function with given fields: ctx, documents, options

func (*Collection) Index

func (_m *Collection) Index(ctx context.Context, name string) (driver.Index, error)

Index provides a mock function with given fields: ctx, name

func (*Collection) IndexExists

func (_m *Collection) IndexExists(ctx context.Context, name string) (bool, error)

IndexExists provides a mock function with given fields: ctx, name

func (*Collection) Indexes

func (_m *Collection) Indexes(ctx context.Context) ([]driver.Index, error)

Indexes provides a mock function with given fields: ctx

func (*Collection) Load

func (_m *Collection) Load(ctx context.Context) error

Load provides a mock function with given fields: ctx

func (*Collection) Name

func (_m *Collection) Name() string

Name provides a mock function with given fields:

func (*Collection) Properties

func (_m *Collection) Properties(ctx context.Context) (driver.CollectionProperties, error)

Properties provides a mock function with given fields: ctx

func (*Collection) ReadDocument

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

ReadDocument provides a mock function with given fields: ctx, key, result

func (*Collection) ReadDocuments

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

ReadDocuments provides a mock function with given fields: ctx, keys, results

func (*Collection) Remove

func (_m *Collection) Remove(ctx context.Context) error

Remove provides a mock function with given fields: ctx

func (*Collection) RemoveDocument

func (_m *Collection) RemoveDocument(ctx context.Context, key string) (driver.DocumentMeta, error)

RemoveDocument provides a mock function with given fields: ctx, key

func (*Collection) RemoveDocuments

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

RemoveDocuments provides a mock function with given fields: ctx, keys

func (*Collection) ReplaceDocument

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

ReplaceDocument provides a mock function with given fields: ctx, key, document

func (*Collection) ReplaceDocuments

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

ReplaceDocuments provides a mock function with given fields: ctx, keys, documents

func (*Collection) Revision

func (_m *Collection) Revision(ctx context.Context) (string, error)

Revision provides a mock function with given fields: ctx

func (*Collection) SetProperties

func (_m *Collection) SetProperties(ctx context.Context, options driver.SetCollectionPropertiesOptions) error

SetProperties provides a mock function with given fields: ctx, options

func (*Collection) Statistics

func (_m *Collection) Statistics(ctx context.Context) (driver.CollectionStatistics, error)

Statistics provides a mock function with given fields: ctx

func (*Collection) Status

Status provides a mock function with given fields: ctx

func (*Collection) Truncate

func (_m *Collection) Truncate(ctx context.Context) error

Truncate provides a mock function with given fields: ctx

func (*Collection) Unload

func (_m *Collection) Unload(ctx context.Context) error

Unload provides a mock function with given fields: ctx

func (*Collection) UpdateDocument

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

UpdateDocument provides a mock function with given fields: ctx, key, update

func (*Collection) UpdateDocuments

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

UpdateDocuments provides a mock function with given fields: ctx, keys, updates

type CollectionDocuments

type CollectionDocuments struct {
	mock.Mock
}

CollectionDocuments is an autogenerated mock type for the CollectionDocuments type

func (*CollectionDocuments) CreateDocument

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

CreateDocument provides a mock function with given fields: ctx, document

func (*CollectionDocuments) CreateDocuments

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

CreateDocuments provides a mock function with given fields: ctx, documents

func (*CollectionDocuments) DocumentExists

func (_m *CollectionDocuments) DocumentExists(ctx context.Context, key string) (bool, error)

DocumentExists provides a mock function with given fields: ctx, key

func (*CollectionDocuments) ImportDocuments

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

ImportDocuments provides a mock function with given fields: ctx, documents, options

func (*CollectionDocuments) ReadDocument

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

ReadDocument provides a mock function with given fields: ctx, key, result

func (*CollectionDocuments) ReadDocuments

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

ReadDocuments provides a mock function with given fields: ctx, keys, results

func (*CollectionDocuments) RemoveDocument

func (_m *CollectionDocuments) RemoveDocument(ctx context.Context, key string) (driver.DocumentMeta, error)

RemoveDocument provides a mock function with given fields: ctx, key

func (*CollectionDocuments) RemoveDocuments

RemoveDocuments provides a mock function with given fields: ctx, keys

func (*CollectionDocuments) ReplaceDocument

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

ReplaceDocument provides a mock function with given fields: ctx, key, document

func (*CollectionDocuments) ReplaceDocuments

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

ReplaceDocuments provides a mock function with given fields: ctx, keys, documents

func (*CollectionDocuments) UpdateDocument

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

UpdateDocument provides a mock function with given fields: ctx, key, update

func (*CollectionDocuments) UpdateDocuments

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

UpdateDocuments provides a mock function with given fields: ctx, keys, updates

type CollectionIndexes

type CollectionIndexes struct {
	mock.Mock
}

CollectionIndexes is an autogenerated mock type for the CollectionIndexes type

func (*CollectionIndexes) EnsureFullTextIndex

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

EnsureFullTextIndex provides a mock function with given fields: ctx, fields, options

func (*CollectionIndexes) EnsureGeoIndex

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

EnsureGeoIndex provides a mock function with given fields: ctx, fields, options

func (*CollectionIndexes) EnsureHashIndex

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

EnsureHashIndex provides a mock function with given fields: ctx, fields, options

func (*CollectionIndexes) EnsurePersistentIndex

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

EnsurePersistentIndex provides a mock function with given fields: ctx, fields, options

func (*CollectionIndexes) EnsureSkipListIndex

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

EnsureSkipListIndex provides a mock function with given fields: ctx, fields, options

func (*CollectionIndexes) Index

func (_m *CollectionIndexes) Index(ctx context.Context, name string) (driver.Index, error)

Index provides a mock function with given fields: ctx, name

func (*CollectionIndexes) IndexExists

func (_m *CollectionIndexes) IndexExists(ctx context.Context, name string) (bool, error)

IndexExists provides a mock function with given fields: ctx, name

func (*CollectionIndexes) Indexes

func (_m *CollectionIndexes) Indexes(ctx context.Context) ([]driver.Index, error)

Indexes provides a mock function with given fields: ctx

type Connection

type Connection struct {
	mock.Mock
}

Connection is an autogenerated mock type for the Connection type

func (*Connection) Do

Do provides a mock function with given fields: ctx, req

func (*Connection) Endpoints

func (_m *Connection) Endpoints() []string

Endpoints provides a mock function with given fields:

func (*Connection) NewRequest

func (_m *Connection) NewRequest(method string, path string) (driver.Request, error)

NewRequest provides a mock function with given fields: method, path

func (*Connection) Protocols

func (_m *Connection) Protocols() driver.ProtocolSet

Protocols provides a mock function with given fields:

func (*Connection) SetAuthentication

func (_m *Connection) SetAuthentication(_a0 driver.Authentication) (driver.Connection, error)

SetAuthentication provides a mock function with given fields: _a0

func (*Connection) Unmarshal

func (_m *Connection) Unmarshal(data driver.RawObject, result interface{}) error

Unmarshal provides a mock function with given fields: data, result

func (*Connection) UpdateEndpoints

func (_m *Connection) UpdateEndpoints(endpoints []string) error

UpdateEndpoints provides a mock function with given fields: endpoints

type Cursor

type Cursor struct {
	mock.Mock
}

Cursor is an autogenerated mock type for the Cursor type

func (*Cursor) Close

func (_m *Cursor) Close() error

Close provides a mock function with given fields:

func (*Cursor) Count

func (_m *Cursor) Count() int64

Count provides a mock function with given fields:

func (*Cursor) HasMore

func (_m *Cursor) HasMore() bool

HasMore provides a mock function with given fields:

func (*Cursor) ReadDocument

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

ReadDocument provides a mock function with given fields: ctx, result

func (*Cursor) Statistics

func (_m *Cursor) Statistics() driver.QueryStatistics

Statistics provides a mock function with given fields:

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func (*Database) Collection

func (_m *Database) Collection(ctx context.Context, name string) (driver.Collection, error)

Collection provides a mock function with given fields: ctx, name

func (*Database) CollectionExists

func (_m *Database) CollectionExists(ctx context.Context, name string) (bool, error)

CollectionExists provides a mock function with given fields: ctx, name

func (*Database) Collections

func (_m *Database) Collections(ctx context.Context) ([]driver.Collection, error)

Collections provides a mock function with given fields: ctx

func (*Database) CreateArangoSearchView

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

CreateArangoSearchView provides a mock function with given fields: ctx, name, options

func (*Database) CreateCollection

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

CreateCollection provides a mock function with given fields: ctx, name, options

func (*Database) CreateGraph

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

CreateGraph provides a mock function with given fields: ctx, name, options

func (*Database) EngineInfo

func (_m *Database) EngineInfo(ctx context.Context) (driver.EngineInfo, error)

EngineInfo provides a mock function with given fields: ctx

func (*Database) Graph

func (_m *Database) Graph(ctx context.Context, name string) (driver.Graph, error)

Graph provides a mock function with given fields: ctx, name

func (*Database) GraphExists

func (_m *Database) GraphExists(ctx context.Context, name string) (bool, error)

GraphExists provides a mock function with given fields: ctx, name

func (*Database) Graphs

func (_m *Database) Graphs(ctx context.Context) ([]driver.Graph, error)

Graphs provides a mock function with given fields: ctx

func (*Database) Info

func (_m *Database) Info(ctx context.Context) (driver.DatabaseInfo, error)

Info provides a mock function with given fields: ctx

func (*Database) Name

func (_m *Database) Name() string

Name provides a mock function with given fields:

func (*Database) Query

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

Query provides a mock function with given fields: ctx, query, bindVars

func (*Database) Remove

func (_m *Database) Remove(ctx context.Context) error

Remove provides a mock function with given fields: ctx

func (*Database) Transaction

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

Transaction provides a mock function with given fields: ctx, action, options

func (*Database) ValidateQuery

func (_m *Database) ValidateQuery(ctx context.Context, query string) error

ValidateQuery provides a mock function with given fields: ctx, query

func (*Database) View

func (_m *Database) View(ctx context.Context, name string) (driver.View, error)

View provides a mock function with given fields: ctx, name

func (*Database) ViewExists

func (_m *Database) ViewExists(ctx context.Context, name string) (bool, error)

ViewExists provides a mock function with given fields: ctx, name

func (*Database) Views

func (_m *Database) Views(ctx context.Context) ([]driver.View, error)

Views provides a mock function with given fields: ctx

type DatabaseCollections

type DatabaseCollections struct {
	mock.Mock
}

DatabaseCollections is an autogenerated mock type for the DatabaseCollections type

func (*DatabaseCollections) Collection

func (_m *DatabaseCollections) Collection(ctx context.Context, name string) (driver.Collection, error)

Collection provides a mock function with given fields: ctx, name

func (*DatabaseCollections) CollectionExists

func (_m *DatabaseCollections) CollectionExists(ctx context.Context, name string) (bool, error)

CollectionExists provides a mock function with given fields: ctx, name

func (*DatabaseCollections) Collections

func (_m *DatabaseCollections) Collections(ctx context.Context) ([]driver.Collection, error)

Collections provides a mock function with given fields: ctx

func (*DatabaseCollections) CreateCollection

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

CreateCollection provides a mock function with given fields: ctx, name, options

type DatabaseGraphs

type DatabaseGraphs struct {
	mock.Mock
}

DatabaseGraphs is an autogenerated mock type for the DatabaseGraphs type

func (*DatabaseGraphs) CreateGraph

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

CreateGraph provides a mock function with given fields: ctx, name, options

func (*DatabaseGraphs) Graph

func (_m *DatabaseGraphs) Graph(ctx context.Context, name string) (driver.Graph, error)

Graph provides a mock function with given fields: ctx, name

func (*DatabaseGraphs) GraphExists

func (_m *DatabaseGraphs) GraphExists(ctx context.Context, name string) (bool, error)

GraphExists provides a mock function with given fields: ctx, name

func (*DatabaseGraphs) Graphs

func (_m *DatabaseGraphs) Graphs(ctx context.Context) ([]driver.Graph, error)

Graphs provides a mock function with given fields: ctx

type DatabaseViews

type DatabaseViews struct {
	mock.Mock
}

DatabaseViews is an autogenerated mock type for the DatabaseViews type

func (*DatabaseViews) CreateArangoSearchView

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

CreateArangoSearchView provides a mock function with given fields: ctx, name, options

func (*DatabaseViews) View

func (_m *DatabaseViews) View(ctx context.Context, name string) (driver.View, error)

View provides a mock function with given fields: ctx, name

func (*DatabaseViews) ViewExists

func (_m *DatabaseViews) ViewExists(ctx context.Context, name string) (bool, error)

ViewExists provides a mock function with given fields: ctx, name

func (*DatabaseViews) Views

func (_m *DatabaseViews) Views(ctx context.Context) ([]driver.View, error)

Views provides a mock function with given fields: ctx

type Graph

type Graph struct {
	mock.Mock
}

Graph is an autogenerated mock type for the Graph type

func (*Graph) CreateEdgeCollection

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

CreateEdgeCollection provides a mock function with given fields: ctx, collection, constraints

func (*Graph) CreateVertexCollection

func (_m *Graph) CreateVertexCollection(ctx context.Context, collection string) (driver.Collection, error)

CreateVertexCollection provides a mock function with given fields: ctx, collection

func (*Graph) EdgeCollection

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

EdgeCollection provides a mock function with given fields: ctx, name

func (*Graph) EdgeCollectionExists

func (_m *Graph) EdgeCollectionExists(ctx context.Context, name string) (bool, error)

EdgeCollectionExists provides a mock function with given fields: ctx, name

func (*Graph) EdgeCollections

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

EdgeCollections provides a mock function with given fields: ctx

func (*Graph) Name

func (_m *Graph) Name() string

Name provides a mock function with given fields:

func (*Graph) Remove

func (_m *Graph) Remove(ctx context.Context) error

Remove provides a mock function with given fields: ctx

func (*Graph) SetVertexConstraints

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

SetVertexConstraints provides a mock function with given fields: ctx, collection, constraints

func (*Graph) VertexCollection

func (_m *Graph) VertexCollection(ctx context.Context, name string) (driver.Collection, error)

VertexCollection provides a mock function with given fields: ctx, name

func (*Graph) VertexCollectionExists

func (_m *Graph) VertexCollectionExists(ctx context.Context, name string) (bool, error)

VertexCollectionExists provides a mock function with given fields: ctx, name

func (*Graph) VertexCollections

func (_m *Graph) VertexCollections(ctx context.Context) ([]driver.Collection, error)

VertexCollections provides a mock function with given fields: ctx

type GraphEdgeCollections

type GraphEdgeCollections struct {
	mock.Mock
}

GraphEdgeCollections is an autogenerated mock type for the GraphEdgeCollections type

func (*GraphEdgeCollections) CreateEdgeCollection

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

CreateEdgeCollection provides a mock function with given fields: ctx, collection, constraints

func (*GraphEdgeCollections) EdgeCollection

EdgeCollection provides a mock function with given fields: ctx, name

func (*GraphEdgeCollections) EdgeCollectionExists

func (_m *GraphEdgeCollections) EdgeCollectionExists(ctx context.Context, name string) (bool, error)

EdgeCollectionExists provides a mock function with given fields: ctx, name

func (*GraphEdgeCollections) EdgeCollections

EdgeCollections provides a mock function with given fields: ctx

func (*GraphEdgeCollections) SetVertexConstraints

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

SetVertexConstraints provides a mock function with given fields: ctx, collection, constraints

type GraphVertexCollections

type GraphVertexCollections struct {
	mock.Mock
}

GraphVertexCollections is an autogenerated mock type for the GraphVertexCollections type

func (*GraphVertexCollections) CreateVertexCollection

func (_m *GraphVertexCollections) CreateVertexCollection(ctx context.Context, collection string) (driver.Collection, error)

CreateVertexCollection provides a mock function with given fields: ctx, collection

func (*GraphVertexCollections) VertexCollection

func (_m *GraphVertexCollections) VertexCollection(ctx context.Context, name string) (driver.Collection, error)

VertexCollection provides a mock function with given fields: ctx, name

func (*GraphVertexCollections) VertexCollectionExists

func (_m *GraphVertexCollections) VertexCollectionExists(ctx context.Context, name string) (bool, error)

VertexCollectionExists provides a mock function with given fields: ctx, name

func (*GraphVertexCollections) VertexCollections

func (_m *GraphVertexCollections) VertexCollections(ctx context.Context) ([]driver.Collection, error)

VertexCollections provides a mock function with given fields: ctx

type Index

type Index struct {
	mock.Mock
}

Index is an autogenerated mock type for the Index type

func (*Index) Name

func (_m *Index) Name() string

Name provides a mock function with given fields:

func (*Index) Remove

func (_m *Index) Remove(ctx context.Context) error

Remove provides a mock function with given fields: ctx

func (*Index) Type

func (_m *Index) Type() driver.IndexType

Type provides a mock function with given fields:

type QueryStatistics

type QueryStatistics struct {
	mock.Mock
}

QueryStatistics is an autogenerated mock type for the QueryStatistics type

func (*QueryStatistics) ExecutionTime

func (_m *QueryStatistics) ExecutionTime() time.Duration

ExecutionTime provides a mock function with given fields:

func (*QueryStatistics) Filtered

func (_m *QueryStatistics) Filtered() int64

Filtered provides a mock function with given fields:

func (*QueryStatistics) FullCount

func (_m *QueryStatistics) FullCount() int64

FullCount provides a mock function with given fields:

func (*QueryStatistics) ScannedFull

func (_m *QueryStatistics) ScannedFull() int64

ScannedFull provides a mock function with given fields:

func (*QueryStatistics) ScannedIndex

func (_m *QueryStatistics) ScannedIndex() int64

ScannedIndex provides a mock function with given fields:

func (*QueryStatistics) WritesExecuted

func (_m *QueryStatistics) WritesExecuted() int64

WritesExecuted provides a mock function with given fields:

func (*QueryStatistics) WritesIgnored

func (_m *QueryStatistics) WritesIgnored() int64

WritesIgnored provides a mock function with given fields:

type Replication

type Replication struct {
	mock.Mock
}

Replication is an autogenerated mock type for the Replication type

func (*Replication) CreateBatch

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

CreateBatch provides a mock function with given fields: ctx, db, serverID, ttl

func (*Replication) DatabaseInventory

func (_m *Replication) DatabaseInventory(ctx context.Context, db driver.Database) (driver.DatabaseInventory, error)

DatabaseInventory provides a mock function with given fields: ctx, db

type Request

type Request struct {
	mock.Mock
}

Request is an autogenerated mock type for the Request type

func (*Request) Clone

func (_m *Request) Clone() driver.Request

Clone provides a mock function with given fields:

func (*Request) SetBody

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

SetBody provides a mock function with given fields: body

func (*Request) SetBodyArray

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

SetBodyArray provides a mock function with given fields: bodyArray, mergeArray

func (*Request) SetBodyImportArray

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

SetBodyImportArray provides a mock function with given fields: bodyArray

func (*Request) SetHeader

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

SetHeader provides a mock function with given fields: key, value

func (*Request) SetQuery

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

SetQuery provides a mock function with given fields: key, value

func (*Request) Written

func (_m *Request) Written() bool

Written provides a mock function with given fields:

type Response

type Response struct {
	mock.Mock
}

Response is an autogenerated mock type for the Response type

func (*Response) CheckStatus

func (_m *Response) CheckStatus(validStatusCodes ...int) error

CheckStatus provides a mock function with given fields: validStatusCodes

func (*Response) Endpoint

func (_m *Response) Endpoint() string

Endpoint provides a mock function with given fields:

func (*Response) Header

func (_m *Response) Header(key string) string

Header provides a mock function with given fields: key

func (*Response) ParseArrayBody

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

ParseArrayBody provides a mock function with given fields:

func (*Response) ParseBody

func (_m *Response) ParseBody(field string, result interface{}) error

ParseBody provides a mock function with given fields: field, result

func (*Response) StatusCode

func (_m *Response) StatusCode() int

StatusCode provides a mock function with given fields:

type User

type User struct {
	mock.Mock
}

User is an autogenerated mock type for the User type

func (*User) AccessibleDatabases

func (_m *User) AccessibleDatabases(ctx context.Context) ([]driver.Database, error)

AccessibleDatabases provides a mock function with given fields: ctx

func (*User) Extra

func (_m *User) Extra(result interface{}) error

Extra provides a mock function with given fields: result

func (*User) GetCollectionAccess

func (_m *User) GetCollectionAccess(ctx context.Context, col driver.AccessTarget) (driver.Grant, error)

GetCollectionAccess provides a mock function with given fields: ctx, col

func (*User) GetDatabaseAccess

func (_m *User) GetDatabaseAccess(ctx context.Context, db driver.Database) (driver.Grant, error)

GetDatabaseAccess provides a mock function with given fields: ctx, db

func (*User) GrantReadWriteAccess

func (_m *User) GrantReadWriteAccess(ctx context.Context, db driver.Database) error

GrantReadWriteAccess provides a mock function with given fields: ctx, db

func (*User) IsActive

func (_m *User) IsActive() bool

IsActive provides a mock function with given fields:

func (*User) IsPasswordChangeNeeded

func (_m *User) IsPasswordChangeNeeded() bool

IsPasswordChangeNeeded provides a mock function with given fields:

func (*User) Name

func (_m *User) Name() string

Name provides a mock function with given fields:

func (*User) Remove

func (_m *User) Remove(ctx context.Context) error

Remove provides a mock function with given fields: ctx

func (*User) RemoveCollectionAccess

func (_m *User) RemoveCollectionAccess(ctx context.Context, col driver.AccessTarget) error

RemoveCollectionAccess provides a mock function with given fields: ctx, col

func (*User) RemoveDatabaseAccess

func (_m *User) RemoveDatabaseAccess(ctx context.Context, db driver.Database) error

RemoveDatabaseAccess provides a mock function with given fields: ctx, db

func (*User) Replace

func (_m *User) Replace(ctx context.Context, options driver.UserOptions) error

Replace provides a mock function with given fields: ctx, options

func (*User) RevokeAccess

func (_m *User) RevokeAccess(ctx context.Context, db driver.Database) error

RevokeAccess provides a mock function with given fields: ctx, db

func (*User) SetCollectionAccess

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

SetCollectionAccess provides a mock function with given fields: ctx, col, access

func (*User) SetDatabaseAccess

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

SetDatabaseAccess provides a mock function with given fields: ctx, db, access

func (*User) Update

func (_m *User) Update(ctx context.Context, options driver.UserOptions) error

Update provides a mock function with given fields: ctx, options

type View

type View struct {
	mock.Mock
}

View is an autogenerated mock type for the View type

func (*View) ArangoSearchView

func (_m *View) ArangoSearchView() (driver.ArangoSearchView, error)

ArangoSearchView provides a mock function with given fields:

func (*View) Database

func (_m *View) Database() driver.Database

Database provides a mock function with given fields:

func (*View) Name

func (_m *View) Name() string

Name provides a mock function with given fields:

func (*View) Remove

func (_m *View) Remove(ctx context.Context) error

Remove provides a mock function with given fields: ctx

func (*View) Type

func (_m *View) Type() driver.ViewType

Type provides a mock function with given fields:

Jump to

Keyboard shortcuts

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