mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 5 Imported by: 0

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 NewAccessTarget

func NewAccessTarget(t mockConstructorTestingTNewAccessTarget) *AccessTarget

NewAccessTarget creates a new instance of AccessTarget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccessTarget) Name

func (_m *AccessTarget) Name() string

Name provides a mock function with given fields:

type Agency

type Agency struct {
	mock.Mock
}

Agency is an autogenerated mock type for the Agency type

func NewAgency

func NewAgency(t mockConstructorTestingTNewAgency) *Agency

NewAgency creates a new instance of Agency. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Agency) Connection

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

Connection provides a mock function with given fields:

func (*Agency) ReadKey

func (_m *Agency) ReadKey(ctx context.Context, key []string, value interface{}) error

ReadKey provides a mock function with given fields: ctx, key, value

func (*Agency) RegisterChangeCallback

func (_m *Agency) RegisterChangeCallback(ctx context.Context, key []string, cbURL string) error

RegisterChangeCallback provides a mock function with given fields: ctx, key, cbURL

func (*Agency) RemoveKey

func (_m *Agency) RemoveKey(ctx context.Context, key []string, condition ...agency.WriteCondition) error

RemoveKey provides a mock function with given fields: ctx, key, condition

func (*Agency) RemoveKeyIfEqualTo

func (_m *Agency) RemoveKeyIfEqualTo(ctx context.Context, key []string, oldValue interface{}) error

RemoveKeyIfEqualTo provides a mock function with given fields: ctx, key, oldValue

func (*Agency) UnregisterChangeCallback

func (_m *Agency) UnregisterChangeCallback(ctx context.Context, key []string, cbURL string) error

UnregisterChangeCallback provides a mock function with given fields: ctx, key, cbURL

func (*Agency) WriteKey

func (_m *Agency) WriteKey(ctx context.Context, key []string, value interface{}, ttl time.Duration, condition ...agency.WriteCondition) error

WriteKey provides a mock function with given fields: ctx, key, value, ttl, condition

func (*Agency) WriteKeyIfEmpty

func (_m *Agency) WriteKeyIfEmpty(ctx context.Context, key []string, value interface{}, ttl time.Duration) error

WriteKeyIfEmpty provides a mock function with given fields: ctx, key, value, ttl

func (*Agency) WriteKeyIfEqualTo

func (_m *Agency) WriteKeyIfEqualTo(ctx context.Context, key []string, newValue interface{}, oldValue interface{}, ttl time.Duration) error

WriteKeyIfEqualTo provides a mock function with given fields: ctx, key, newValue, oldValue, ttl

func (*Agency) WriteTransaction

func (_m *Agency) WriteTransaction(ctx context.Context, transaction agency.Transaction) error

WriteTransaction provides a mock function with given fields: ctx, transaction

type ArangoSearchAnalyzer

type ArangoSearchAnalyzer struct {
	mock.Mock
}

ArangoSearchAnalyzer is an autogenerated mock type for the ArangoSearchAnalyzer type

func NewArangoSearchAnalyzer

func NewArangoSearchAnalyzer(t mockConstructorTestingTNewArangoSearchAnalyzer) *ArangoSearchAnalyzer

NewArangoSearchAnalyzer creates a new instance of ArangoSearchAnalyzer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ArangoSearchAnalyzer) Database

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

Database provides a mock function with given fields:

func (*ArangoSearchAnalyzer) Definition

Definition provides a mock function with given fields:

func (*ArangoSearchAnalyzer) Name

func (_m *ArangoSearchAnalyzer) Name() string

Name provides a mock function with given fields:

func (*ArangoSearchAnalyzer) Properties

Properties provides a mock function with given fields:

func (*ArangoSearchAnalyzer) Remove

func (_m *ArangoSearchAnalyzer) Remove(ctx context.Context, force bool) error

Remove provides a mock function with given fields: ctx, force

func (*ArangoSearchAnalyzer) Type

Type provides a mock function with given fields:

func (*ArangoSearchAnalyzer) UniqueName

func (_m *ArangoSearchAnalyzer) UniqueName() string

UniqueName provides a mock function with given fields:

type ArangoSearchView

type ArangoSearchView struct {
	mock.Mock
}

ArangoSearchView is an autogenerated mock type for the ArangoSearchView type

func NewArangoSearchView

func NewArangoSearchView(t mockConstructorTestingTNewArangoSearchView) *ArangoSearchView

NewArangoSearchView creates a new instance of ArangoSearchView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ArangoSearchView) ArangoSearchView

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

ArangoSearchView provides a mock function with given fields:

func (*ArangoSearchView) Database

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

Database provides a mock function with given fields:

func (*ArangoSearchView) Name

func (_m *ArangoSearchView) Name() string

Name provides a mock function with given fields:

func (*ArangoSearchView) Properties

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 NewAuthentication

func NewAuthentication(t mockConstructorTestingTNewAuthentication) *Authentication

NewAuthentication creates a new instance of Authentication. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Authentication) Get

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

Get provides a mock function with given fields: property

func (*Authentication) Type

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 NewBatch

func NewBatch(t mockConstructorTestingTNewBatch) *Batch

NewBatch creates a new instance of Batch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 BodyBuilder

type BodyBuilder struct {
	mock.Mock
}

BodyBuilder is an autogenerated mock type for the BodyBuilder type

func NewBodyBuilder

func NewBodyBuilder(t mockConstructorTestingTNewBodyBuilder) *BodyBuilder

NewBodyBuilder creates a new instance of BodyBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BodyBuilder) Clone

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

Clone provides a mock function with given fields:

func (*BodyBuilder) GetBody

func (_m *BodyBuilder) GetBody() []byte

GetBody provides a mock function with given fields:

func (*BodyBuilder) GetContentType

func (_m *BodyBuilder) GetContentType() string

GetContentType provides a mock function with given fields:

func (*BodyBuilder) SetBody

func (_m *BodyBuilder) SetBody(body ...interface{}) error

SetBody provides a mock function with given fields: body

func (*BodyBuilder) SetBodyArray

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

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

func (*BodyBuilder) SetBodyImportArray

func (_m *BodyBuilder) SetBodyImportArray(bodyArray interface{}) error

SetBodyImportArray provides a mock function with given fields: bodyArray

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) AccessibleDatabases

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

AccessibleDatabases provides a mock function with given fields: ctx

func (*Client) Backup

func (_m *Client) Backup() driver.ClientBackup

Backup provides a mock function with given fields:

func (*Client) 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) Foxx

func (_m *Client) Foxx() driver.FoxxService

Foxx provides a mock function with given fields:

func (*Client) Logs

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

Logs 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) ShutdownInfoV2

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

ShutdownInfoV2 provides a mock function with given fields: ctx

func (*Client) ShutdownV2

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

ShutdownV2 provides a mock function with given fields: ctx, removeFromCluster, graceful

func (*Client) Statistics

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

Statistics provides a mock function with given fields: ctx

func (*Client) SynchronizeEndpoints

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

SynchronizeEndpoints provides a mock function with given fields: ctx

func (*Client) SynchronizeEndpoints2

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

SynchronizeEndpoints2 provides a mock function with given fields: ctx, dbname

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 ClientAdminBackup

type ClientAdminBackup struct {
	mock.Mock
}

ClientAdminBackup is an autogenerated mock type for the ClientAdminBackup type

func NewClientAdminBackup

func NewClientAdminBackup(t mockConstructorTestingTNewClientAdminBackup) *ClientAdminBackup

NewClientAdminBackup creates a new instance of ClientAdminBackup. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientAdminBackup) Backup

func (_m *ClientAdminBackup) Backup() driver.ClientBackup

Backup provides a mock function with given fields:

type ClientBackup

type ClientBackup struct {
	mock.Mock
}

ClientBackup is an autogenerated mock type for the ClientBackup type

func NewClientBackup

func NewClientBackup(t mockConstructorTestingTNewClientBackup) *ClientBackup

NewClientBackup creates a new instance of ClientBackup. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientBackup) Abort

Abort provides a mock function with given fields: ctx, job

func (*ClientBackup) Create

Create provides a mock function with given fields: ctx, opt

func (*ClientBackup) Delete

func (_m *ClientBackup) Delete(ctx context.Context, id driver.BackupID) error

Delete provides a mock function with given fields: ctx, id

func (*ClientBackup) Download

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

Download provides a mock function with given fields: ctx, id, remoteRepository, config

func (*ClientBackup) List

List provides a mock function with given fields: ctx, opt

func (*ClientBackup) Progress

Progress provides a mock function with given fields: ctx, job

func (*ClientBackup) Restore

Restore provides a mock function with given fields: ctx, id, opt

func (*ClientBackup) Upload

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

Upload provides a mock function with given fields: ctx, id, remoteRepository, config

type ClientCluster

type ClientCluster struct {
	mock.Mock
}

ClientCluster is an autogenerated mock type for the ClientCluster type

func NewClientCluster

func NewClientCluster(t mockConstructorTestingTNewClientCluster) *ClientCluster

NewClientCluster creates a new instance of ClientCluster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewClientDatabases

func NewClientDatabases(t mockConstructorTestingTNewClientDatabases) *ClientDatabases

NewClientDatabases creates a new instance of ClientDatabases. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientDatabases) AccessibleDatabases

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 ClientFoxx

type ClientFoxx struct {
	mock.Mock
}

ClientFoxx is an autogenerated mock type for the ClientFoxx type

func NewClientFoxx

func NewClientFoxx(t mockConstructorTestingTNewClientFoxx) *ClientFoxx

NewClientFoxx creates a new instance of ClientFoxx. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientFoxx) Foxx

func (_m *ClientFoxx) Foxx() driver.FoxxService

Foxx provides a mock function with given fields:

type ClientReplication

type ClientReplication struct {
	mock.Mock
}

ClientReplication is an autogenerated mock type for the ClientReplication type

func NewClientReplication

func NewClientReplication(t mockConstructorTestingTNewClientReplication) *ClientReplication

NewClientReplication creates a new instance of ClientReplication. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientReplication) Replication

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

Replication provides a mock function with given fields:

type ClientServerAdmin

type ClientServerAdmin struct {
	mock.Mock
}

ClientServerAdmin is an autogenerated mock type for the ClientServerAdmin type

func NewClientServerAdmin

func NewClientServerAdmin(t mockConstructorTestingTNewClientServerAdmin) *ClientServerAdmin

NewClientServerAdmin creates a new instance of ClientServerAdmin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientServerAdmin) Logs

Logs provides a mock function with given fields: ctx

func (*ClientServerAdmin) ServerMode

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

ServerMode provides a mock function with given fields: ctx

func (*ClientServerAdmin) SetServerMode

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

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

func (*ClientServerAdmin) Shutdown

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

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

func (*ClientServerAdmin) ShutdownInfoV2

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

ShutdownInfoV2 provides a mock function with given fields: ctx

func (*ClientServerAdmin) ShutdownV2

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

ShutdownV2 provides a mock function with given fields: ctx, removeFromCluster, graceful

func (*ClientServerAdmin) Statistics

Statistics provides a mock function with given fields: ctx

type ClientServerInfo

type ClientServerInfo struct {
	mock.Mock
}

ClientServerInfo is an autogenerated mock type for the ClientServerInfo type

func NewClientServerInfo

func NewClientServerInfo(t mockConstructorTestingTNewClientServerInfo) *ClientServerInfo

NewClientServerInfo creates a new instance of ClientServerInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientServerInfo) ServerID

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

ServerID provides a mock function with given fields: ctx

func (*ClientServerInfo) ServerRole

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

ServerRole provides a mock function with given fields: ctx

func (*ClientServerInfo) Version

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 NewClientUsers

func NewClientUsers(t mockConstructorTestingTNewClientUsers) *ClientUsers

NewClientUsers creates a new instance of ClientUsers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientUsers) CreateUser

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

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

func (*ClientUsers) 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 NewCluster

func NewCluster(t mockConstructorTestingTNewCluster) *Cluster

NewCluster creates a new instance of Cluster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Cluster) CleanOutServer

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

func (*Cluster) ResignServer

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

ResignServer 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 NewCollection

func NewCollection(t mockConstructorTestingTNewCollection) *Collection

NewCollection creates a new instance of Collection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Collection) Count

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

Count provides a mock function with given fields: ctx

func (*Collection) CreateDocument

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

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

func (*Collection) CreateDocuments

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

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

func (*Collection) Database

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

Database provides a mock function with given fields:

func (*Collection) DocumentExists

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

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

EnsureTTLIndex provides a mock function with given fields: ctx, field, expireAfter, options

func (*Collection) EnsureZKDIndex

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

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

func (*Collection) ImportDocuments

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

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

func (*Collection) 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) Shards

func (_m *Collection) Shards(ctx context.Context, details bool) (driver.CollectionShards, error)

Shards provides a mock function with given fields: ctx, details

func (*Collection) Statistics

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

Statistics provides a mock function with given fields: ctx

func (*Collection) Status

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 NewCollectionDocuments

func NewCollectionDocuments(t mockConstructorTestingTNewCollectionDocuments) *CollectionDocuments

NewCollectionDocuments creates a new instance of CollectionDocuments. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CollectionDocuments) CreateDocument

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

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

func (*CollectionDocuments) CreateDocuments

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

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

func (*CollectionDocuments) DocumentExists

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 NewCollectionIndexes

func NewCollectionIndexes(t mockConstructorTestingTNewCollectionIndexes) *CollectionIndexes

NewCollectionIndexes creates a new instance of CollectionIndexes. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CollectionIndexes) EnsureFullTextIndex

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

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

func (*CollectionIndexes) EnsureGeoIndex

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

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

func (*CollectionIndexes) EnsureHashIndex

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

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

func (*CollectionIndexes) EnsurePersistentIndex

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

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

func (*CollectionIndexes) EnsureSkipListIndex

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

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

func (*CollectionIndexes) EnsureTTLIndex

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

EnsureTTLIndex provides a mock function with given fields: ctx, field, expireAfter, options

func (*CollectionIndexes) EnsureZKDIndex

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

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

func (*CollectionIndexes) 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 NewConnection

func NewConnection(t mockConstructorTestingTNewConnection) *Connection

NewConnection creates a new instance of Connection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Connection) 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 NewCursor

func NewCursor(t mockConstructorTestingTNewCursor) *Cursor

NewCursor creates a new instance of Cursor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Cursor) 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) Extra

func (_m *Cursor) Extra() driver.QueryExtra

Extra 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 NewDatabase

func NewDatabase(t mockConstructorTestingTNewDatabase) *Database

NewDatabase creates a new instance of Database. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Database) AbortTransaction

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

AbortTransaction provides a mock function with given fields: ctx, tid, opts

func (*Database) Analyzer

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

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

func (*Database) Analyzers

func (_m *Database) Analyzers(ctx context.Context) ([]driver.ArangoSearchAnalyzer, error)

Analyzers provides a mock function with given fields: ctx

func (*Database) BeginTransaction

BeginTransaction provides a mock function with given fields: ctx, cols, opts

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

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

CommitTransaction provides a mock function with given fields: ctx, tid, opts

func (*Database) CreateArangoSearchView

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

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

func (*Database) CreateCollection

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

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

func (*Database) CreateGraph

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

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

func (*Database) CreateGraphV2

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

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

func (*Database) EngineInfo

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

EngineInfo provides a mock function with given fields: ctx

func (*Database) EnsureAnalyzer

EnsureAnalyzer provides a mock function with given fields: ctx, analyzer

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

func (_m *Database) TransactionStatus(ctx context.Context, tid driver.TransactionID) (driver.TransactionStatusRecord, error)

TransactionStatus provides a mock function with given fields: ctx, tid

func (*Database) ValidateQuery

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 DatabaseArangoSearchAnalyzers

type DatabaseArangoSearchAnalyzers struct {
	mock.Mock
}

DatabaseArangoSearchAnalyzers is an autogenerated mock type for the DatabaseArangoSearchAnalyzers type

func NewDatabaseArangoSearchAnalyzers

func NewDatabaseArangoSearchAnalyzers(t mockConstructorTestingTNewDatabaseArangoSearchAnalyzers) *DatabaseArangoSearchAnalyzers

NewDatabaseArangoSearchAnalyzers creates a new instance of DatabaseArangoSearchAnalyzers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DatabaseArangoSearchAnalyzers) Analyzer

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

func (*DatabaseArangoSearchAnalyzers) Analyzers

Analyzers provides a mock function with given fields: ctx

func (*DatabaseArangoSearchAnalyzers) EnsureAnalyzer

EnsureAnalyzer provides a mock function with given fields: ctx, analyzer

type DatabaseCollections

type DatabaseCollections struct {
	mock.Mock
}

DatabaseCollections is an autogenerated mock type for the DatabaseCollections type

func NewDatabaseCollections

func NewDatabaseCollections(t mockConstructorTestingTNewDatabaseCollections) *DatabaseCollections

NewDatabaseCollections creates a new instance of DatabaseCollections. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DatabaseCollections) Collection

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

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

func (*DatabaseCollections) CollectionExists

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 NewDatabaseGraphs

func NewDatabaseGraphs(t mockConstructorTestingTNewDatabaseGraphs) *DatabaseGraphs

NewDatabaseGraphs creates a new instance of DatabaseGraphs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DatabaseGraphs) CreateGraph

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

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

func (*DatabaseGraphs) CreateGraphV2

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

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

func (*DatabaseGraphs) 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 DatabaseStreamingTransactions

type DatabaseStreamingTransactions struct {
	mock.Mock
}

DatabaseStreamingTransactions is an autogenerated mock type for the DatabaseStreamingTransactions type

func NewDatabaseStreamingTransactions

func NewDatabaseStreamingTransactions(t mockConstructorTestingTNewDatabaseStreamingTransactions) *DatabaseStreamingTransactions

NewDatabaseStreamingTransactions creates a new instance of DatabaseStreamingTransactions. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DatabaseStreamingTransactions) AbortTransaction

AbortTransaction provides a mock function with given fields: ctx, tid, opts

func (*DatabaseStreamingTransactions) BeginTransaction

BeginTransaction provides a mock function with given fields: ctx, cols, opts

func (*DatabaseStreamingTransactions) CommitTransaction

CommitTransaction provides a mock function with given fields: ctx, tid, opts

func (*DatabaseStreamingTransactions) TransactionStatus

TransactionStatus provides a mock function with given fields: ctx, tid

type DatabaseViews

type DatabaseViews struct {
	mock.Mock
}

DatabaseViews is an autogenerated mock type for the DatabaseViews type

func NewDatabaseViews

func NewDatabaseViews(t mockConstructorTestingTNewDatabaseViews) *DatabaseViews

NewDatabaseViews creates a new instance of DatabaseViews. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DatabaseViews) CreateArangoSearchView

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

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

func (*DatabaseViews) 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 FoxxService

type FoxxService struct {
	mock.Mock
}

FoxxService is an autogenerated mock type for the FoxxService type

func NewFoxxService

func NewFoxxService(t mockConstructorTestingTNewFoxxService) *FoxxService

NewFoxxService creates a new instance of FoxxService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FoxxService) InstallFoxxService

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

InstallFoxxService provides a mock function with given fields: ctx, zipFile, options

func (*FoxxService) UninstallFoxxService

func (_m *FoxxService) UninstallFoxxService(ctx context.Context, options driver.FoxxDeleteOptions) error

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

type Graph

type Graph struct {
	mock.Mock
}

Graph is an autogenerated mock type for the Graph type

func NewGraph

func NewGraph(t mockConstructorTestingTNewGraph) *Graph

NewGraph creates a new instance of Graph. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Graph) CreateEdgeCollection

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

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

func (*Graph) CreateEdgeCollectionWithOptions

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

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

func (*Graph) CreateVertexCollection

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

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

func (*Graph) CreateVertexCollectionWithOptions

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

CreateVertexCollectionWithOptions provides a mock function with given fields: ctx, collection, options

func (*Graph) EdgeCollection

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

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

func (*Graph) EdgeCollectionExists

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

func (_m *Graph) EdgeDefinitions() []driver.EdgeDefinition

EdgeDefinitions provides a mock function with given fields:

func (*Graph) ID

func (_m *Graph) ID() string

ID provides a mock function with given fields:

func (*Graph) IsDisjoint

func (_m *Graph) IsDisjoint() bool

IsDisjoint provides a mock function with given fields:

func (*Graph) IsSatellite

func (_m *Graph) IsSatellite() bool

IsSatellite provides a mock function with given fields:

func (*Graph) IsSmart

func (_m *Graph) IsSmart() bool

IsSmart provides a mock function with given fields:

func (*Graph) Key

func (_m *Graph) Key() driver.DocumentID

Key provides a mock function with given fields:

func (*Graph) MinReplicationFactor

func (_m *Graph) MinReplicationFactor() int

MinReplicationFactor provides a mock function with given fields:

func (*Graph) Name

func (_m *Graph) Name() string

Name provides a mock function with given fields:

func (*Graph) NumberOfShards

func (_m *Graph) NumberOfShards() int

NumberOfShards provides a mock function with given fields:

func (*Graph) OrphanCollections

func (_m *Graph) OrphanCollections() []string

OrphanCollections 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) ReplicationFactor

func (_m *Graph) ReplicationFactor() int

ReplicationFactor provides a mock function with given fields:

func (*Graph) Rev

func (_m *Graph) Rev() string

Rev provides a mock function with given fields:

func (*Graph) SetVertexConstraints

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

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

func (*Graph) SmartGraphAttribute

func (_m *Graph) SmartGraphAttribute() string

SmartGraphAttribute provides a mock function with given fields:

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

func (*Graph) WriteConcern

func (_m *Graph) WriteConcern() int

WriteConcern provides a mock function with given fields:

type GraphEdgeCollections

type GraphEdgeCollections struct {
	mock.Mock
}

GraphEdgeCollections is an autogenerated mock type for the GraphEdgeCollections type

func NewGraphEdgeCollections

func NewGraphEdgeCollections(t mockConstructorTestingTNewGraphEdgeCollections) *GraphEdgeCollections

NewGraphEdgeCollections creates a new instance of GraphEdgeCollections. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GraphEdgeCollections) CreateEdgeCollection

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

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

func (*GraphEdgeCollections) CreateEdgeCollectionWithOptions

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

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

func (*GraphEdgeCollections) EdgeCollection

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 NewGraphVertexCollections

func NewGraphVertexCollections(t mockConstructorTestingTNewGraphVertexCollections) *GraphVertexCollections

NewGraphVertexCollections creates a new instance of GraphVertexCollections. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GraphVertexCollections) CreateVertexCollection

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

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

func (*GraphVertexCollections) CreateVertexCollectionWithOptions

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

CreateVertexCollectionWithOptions provides a mock function with given fields: ctx, collection, options

func (*GraphVertexCollections) VertexCollection

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

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

func (*GraphVertexCollections) VertexCollectionExists

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

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

func (*GraphVertexCollections) VertexCollections

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

VertexCollections provides a mock function with given fields: ctx

type Index

type Index struct {
	mock.Mock
}

Index is an autogenerated mock type for the Index type

func NewIndex

func NewIndex(t mockConstructorTestingTNewIndex) *Index

NewIndex creates a new instance of Index. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Index) Deduplicate

func (_m *Index) Deduplicate() bool

Deduplicate provides a mock function with given fields:

func (*Index) Estimates

func (_m *Index) Estimates() bool

Estimates provides a mock function with given fields:

func (*Index) ExpireAfter

func (_m *Index) ExpireAfter() int

ExpireAfter provides a mock function with given fields:

func (*Index) Fields

func (_m *Index) Fields() []string

Fields provides a mock function with given fields:

func (*Index) GeoJSON

func (_m *Index) GeoJSON() bool

GeoJSON provides a mock function with given fields:

func (*Index) ID

func (_m *Index) ID() string

ID provides a mock function with given fields:

func (*Index) InBackground

func (_m *Index) InBackground() bool

InBackground provides a mock function with given fields:

func (*Index) MinLength

func (_m *Index) MinLength() int

MinLength provides a mock function with given fields:

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

func (_m *Index) Sparse() bool

Sparse provides a mock function with given fields:

func (*Index) Type

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

Type provides a mock function with given fields:

func (*Index) Unique

func (_m *Index) Unique() bool

Unique provides a mock function with given fields:

func (*Index) UserName

func (_m *Index) UserName() string

UserName provides a mock function with given fields:

type KeyChanger

type KeyChanger struct {
	mock.Mock
}

KeyChanger is an autogenerated mock type for the KeyChanger type

func NewKeyChanger

func NewKeyChanger(t mockConstructorTestingTNewKeyChanger) *KeyChanger

NewKeyChanger creates a new instance of KeyChanger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*KeyChanger) GetKey

func (_m *KeyChanger) GetKey() string

GetKey provides a mock function with given fields:

func (*KeyChanger) GetNew

func (_m *KeyChanger) GetNew() interface{}

GetNew provides a mock function with given fields:

func (*KeyChanger) GetOperation

func (_m *KeyChanger) GetOperation() string

GetOperation provides a mock function with given fields:

func (*KeyChanger) GetTTL

func (_m *KeyChanger) GetTTL() time.Duration

GetTTL provides a mock function with given fields:

func (*KeyChanger) GetURL

func (_m *KeyChanger) GetURL() string

GetURL provides a mock function with given fields:

func (*KeyChanger) GetVal

func (_m *KeyChanger) GetVal() interface{}

GetVal provides a mock function with given fields:

type KeyConditioner

type KeyConditioner struct {
	mock.Mock
}

KeyConditioner is an autogenerated mock type for the KeyConditioner type

func NewKeyConditioner

func NewKeyConditioner(t mockConstructorTestingTNewKeyConditioner) *KeyConditioner

NewKeyConditioner creates a new instance of KeyConditioner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*KeyConditioner) GetName

func (_m *KeyConditioner) GetName() string

GetName provides a mock function with given fields:

func (*KeyConditioner) GetValue

func (_m *KeyConditioner) GetValue() interface{}

GetValue provides a mock function with given fields:

type Lock

type Lock struct {
	mock.Mock
}

Lock is an autogenerated mock type for the Lock type

func NewLock

func NewLock(t mockConstructorTestingTNewLock) *Lock

NewLock creates a new instance of Lock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Lock) IsLocked

func (_m *Lock) IsLocked() bool

IsLocked provides a mock function with given fields:

func (*Lock) Lock

func (_m *Lock) Lock(ctx context.Context) error

Lock provides a mock function with given fields: ctx

func (*Lock) Unlock

func (_m *Lock) Unlock(ctx context.Context) error

Unlock provides a mock function with given fields: ctx

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t mockConstructorTestingTNewLogger) *Logger

NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Logger) Errorf

func (_m *Logger) Errorf(msg string, args ...interface{})

Errorf provides a mock function with given fields: msg, args

type QueryExtra

type QueryExtra struct {
	mock.Mock
}

QueryExtra is an autogenerated mock type for the QueryExtra type

func NewQueryExtra

func NewQueryExtra(t mockConstructorTestingTNewQueryExtra) *QueryExtra

NewQueryExtra creates a new instance of QueryExtra. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*QueryExtra) GetPlanRaw

func (_m *QueryExtra) GetPlanRaw() ([]byte, bool, error)

GetPlanRaw provides a mock function with given fields:

func (*QueryExtra) GetProfileRaw

func (_m *QueryExtra) GetProfileRaw() ([]byte, bool, error)

GetProfileRaw provides a mock function with given fields:

func (*QueryExtra) GetStatistics

func (_m *QueryExtra) GetStatistics() driver.QueryStatistics

GetStatistics provides a mock function with given fields:

type QueryStatistics

type QueryStatistics struct {
	mock.Mock
}

QueryStatistics is an autogenerated mock type for the QueryStatistics type

func NewQueryStatistics

func NewQueryStatistics(t mockConstructorTestingTNewQueryStatistics) *QueryStatistics

NewQueryStatistics creates a new instance of QueryStatistics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*QueryStatistics) ExecutionTime

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

ExecutionTime provides a mock function with given fields:

func (*QueryStatistics) Filtered

func (_m *QueryStatistics) Filtered() int64

Filtered provides a mock function with given fields:

func (*QueryStatistics) FullCount

func (_m *QueryStatistics) FullCount() int64

FullCount provides a mock function with given fields:

func (*QueryStatistics) ScannedFull

func (_m *QueryStatistics) ScannedFull() int64

ScannedFull provides a mock function with given fields:

func (*QueryStatistics) ScannedIndex

func (_m *QueryStatistics) ScannedIndex() int64

ScannedIndex provides a mock function with given fields:

func (*QueryStatistics) WritesExecuted

func (_m *QueryStatistics) WritesExecuted() int64

WritesExecuted provides a mock function with given fields:

func (*QueryStatistics) WritesIgnored

func (_m *QueryStatistics) WritesIgnored() int64

WritesIgnored provides a mock function with given fields:

type Replication

type Replication struct {
	mock.Mock
}

Replication is an autogenerated mock type for the Replication type

func NewReplication

func NewReplication(t mockConstructorTestingTNewReplication) *Replication

NewReplication creates a new instance of Replication. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Replication) CreateBatch

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

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

func (*Replication) DatabaseInventory

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

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

func (*Replication) GetRevisionDocuments

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

GetRevisionDocuments provides a mock function with given fields: ctx, db, batchId, collection, revisions

func (*Replication) GetRevisionTree

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

GetRevisionTree provides a mock function with given fields: ctx, db, batchId, collection

func (*Replication) GetRevisionsByRanges

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

GetRevisionsByRanges provides a mock function with given fields: ctx, db, batchId, collection, minMaxRevision, resume

type Request

type Request struct {
	mock.Mock
}

Request is an autogenerated mock type for the Request type

func NewRequest

func NewRequest(t mockConstructorTestingTNewRequest) *Request

NewRequest creates a new instance of Request. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Request) Clone

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

Clone provides a mock function with given fields:

func (*Request) Method

func (_m *Request) Method() string

Method provides a mock function with given fields:

func (*Request) Path

func (_m *Request) Path() string

Path 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 RequestRepeater

type RequestRepeater struct {
	mock.Mock
}

RequestRepeater is an autogenerated mock type for the RequestRepeater type

func NewRequestRepeater

func NewRequestRepeater(t mockConstructorTestingTNewRequestRepeater) *RequestRepeater

NewRequestRepeater creates a new instance of RequestRepeater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RequestRepeater) Repeat

func (_m *RequestRepeater) Repeat(conn driver.Connection, resp driver.Response, err error) bool

Repeat provides a mock function with given fields: conn, resp, err

type Response

type Response struct {
	mock.Mock
}

Response is an autogenerated mock type for the Response type

func NewResponse

func NewResponse(t mockConstructorTestingTNewResponse) *Response

NewResponse creates a new instance of Response. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Response) CheckStatus

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 ServerConnectionBuilder

type ServerConnectionBuilder struct {
	mock.Mock
}

ServerConnectionBuilder is an autogenerated mock type for the ServerConnectionBuilder type

func NewServerConnectionBuilder

func NewServerConnectionBuilder(t mockConstructorTestingTNewServerConnectionBuilder) *ServerConnectionBuilder

NewServerConnectionBuilder creates a new instance of ServerConnectionBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ServerConnectionBuilder) Execute

func (_m *ServerConnectionBuilder) Execute(endpoint string) (driver.Connection, error)

Execute provides a mock function with given fields: endpoint

type User

type User struct {
	mock.Mock
}

User is an autogenerated mock type for the User type

func NewUser

func NewUser(t mockConstructorTestingTNewUser) *User

NewUser creates a new instance of User. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*User) AccessibleDatabases

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 NewView

func NewView(t mockConstructorTestingTNewView) *View

NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*View) ArangoSearchView

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

ArangoSearchView provides a mock function with given fields:

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