mocks

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Client) AccessibleDatabases

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

AccessibleDatabases provides a mock function with given fields: ctx

func (*Client) AsyncJobCancel

func (_m *Client) AsyncJobCancel(ctx context.Context, jobID string) (bool, error)

AsyncJobCancel provides a mock function with given fields: ctx, jobID

func (*Client) AsyncJobDelete

func (_m *Client) AsyncJobDelete(ctx context.Context, deleteType arangodb.AsyncJobDeleteType, opts *arangodb.AsyncJobDeleteOptions) (bool, error)

AsyncJobDelete provides a mock function with given fields: ctx, deleteType, opts

func (*Client) AsyncJobList

func (_m *Client) AsyncJobList(ctx context.Context, jobType arangodb.AsyncJobStatusType, opts *arangodb.AsyncJobListOptions) ([]string, error)

AsyncJobList provides a mock function with given fields: ctx, jobType, opts

func (*Client) AsyncJobStatus

func (_m *Client) AsyncJobStatus(ctx context.Context, jobID string) (arangodb.AsyncJobStatusType, error)

AsyncJobStatus provides a mock function with given fields: ctx, jobID

func (*Client) BackupCreate

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

func (*Client) BackupDelete

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

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

func (*Client) BackupDownload

func (_m *Client) BackupDownload(ctx context.Context, backupId string, remoteRepository string, config interface{}) (arangodb.TransferMonitor, error)

BackupDownload provides a mock function with given fields: ctx, backupId, remoteRepository, config

func (*Client) BackupList

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

func (*Client) BackupRestore

func (_m *Client) BackupRestore(ctx context.Context, id string) (arangodb.BackupRestoreResponse, error)

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

func (*Client) BackupUpload

func (_m *Client) BackupUpload(ctx context.Context, backupId string, remoteRepository string, config interface{}) (arangodb.TransferMonitor, error)

BackupUpload provides a mock function with given fields: ctx, backupId, remoteRepository, config

func (*Client) CheckAvailability

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

CheckAvailability provides a mock function with given fields: ctx, serverEndpoint

func (*Client) CleanOutServer

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

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

func (*Client) Connection

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

Connection provides a mock function with given fields:

func (*Client) CreateDatabase

func (_m *Client) CreateDatabase(ctx context.Context, name string, options *arangodb.CreateDatabaseOptions) (arangodb.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 *arangodb.UserOptions) (arangodb.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) (arangodb.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) DatabaseInventory

func (_m *Client) DatabaseInventory(ctx context.Context, dbName string) (arangodb.DatabaseInventory, error)

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

func (*Client) Databases

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

Databases provides a mock function with given fields: ctx

func (*Client) Delete

func (_m *Client) Delete(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)

Delete provides a mock function with given fields: ctx, output, urlParts

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Get

func (_m *Client) Get(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)

Get provides a mock function with given fields: ctx, output, urlParts

func (*Client) GetDatabase

func (_m *Client) GetDatabase(ctx context.Context, name string, options *arangodb.GetDatabaseOptions) (arangodb.Database, error)

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

func (*Client) GetLicense

func (_m *Client) GetLicense(ctx context.Context) (arangodb.License, error)

GetLicense provides a mock function with given fields: ctx

func (*Client) GetLogLevels

func (_m *Client) GetLogLevels(ctx context.Context, opts *arangodb.LogLevelsGetOptions) (arangodb.LogLevels, error)

GetLogLevels provides a mock function with given fields: ctx, opts

func (*Client) Head

func (_m *Client) Head(ctx context.Context, output interface{}, urlParts ...string) (connection.Response, error)

Head provides a mock function with given fields: ctx, output, urlParts

func (*Client) Health

func (_m *Client) Health(ctx context.Context) (arangodb.ClusterHealth, error)

Health provides a mock function with given fields: ctx

func (*Client) IsCleanedOut

func (_m *Client) IsCleanedOut(ctx context.Context, serverID arangodb.ServerID) (bool, error)

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

func (*Client) MoveShard

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

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

func (*Client) NumberOfServers

func (_m *Client) NumberOfServers(ctx context.Context) (arangodb.NumberOfServersResponse, error)

NumberOfServers provides a mock function with given fields: ctx

func (*Client) Patch

func (_m *Client) Patch(ctx context.Context, output interface{}, input interface{}, urlParts ...string) (connection.Response, error)

Patch provides a mock function with given fields: ctx, output, input, urlParts

func (*Client) Post

func (_m *Client) Post(ctx context.Context, output interface{}, input interface{}, urlParts ...string) (connection.Response, error)

Post provides a mock function with given fields: ctx, output, input, urlParts

func (*Client) Put

func (_m *Client) Put(ctx context.Context, output interface{}, input interface{}, urlParts ...string) (connection.Response, error)

Put provides a mock function with given fields: ctx, output, input, urlParts

func (*Client) RemoveServer

func (_m *Client) RemoveServer(ctx context.Context, serverID arangodb.ServerID) error

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

func (*Client) RemoveUser

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

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

func (*Client) ReplaceUser

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

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

func (*Client) ResignServer

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

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

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) (arangodb.ServerMode, error)

ServerMode provides a mock function with given fields: ctx

func (*Client) ServerRole

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

ServerRole provides a mock function with given fields: ctx

func (*Client) SetLicense

func (_m *Client) SetLicense(ctx context.Context, license string, force bool) error

SetLicense provides a mock function with given fields: ctx, license, force

func (*Client) SetLogLevels

func (_m *Client) SetLogLevels(ctx context.Context, logLevels arangodb.LogLevels, opts *arangodb.LogLevelsSetOptions) error

SetLogLevels provides a mock function with given fields: ctx, logLevels, opts

func (*Client) SetServerMode

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

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

func (*Client) TransferMonitor

func (_m *Client) TransferMonitor(jobId string, transferType arangodb.TransferType) (arangodb.TransferMonitor, error)

TransferMonitor provides a mock function with given fields: jobId, transferType

func (*Client) UpdateUser

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

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

func (*Client) User

func (_m *Client) User(ctx context.Context, name string) (arangodb.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) ([]arangodb.User, error)

Users provides a mock function with given fields: ctx

func (*Client) Version

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

Version provides a mock function with given fields: ctx

func (*Client) VersionWithOptions

func (_m *Client) VersionWithOptions(ctx context.Context, opts *arangodb.GetVersionOptions) (arangodb.VersionInfo, error)

VersionWithOptions provides a mock function with given fields: ctx, opts

type Client_AccessibleDatabases_Call

type Client_AccessibleDatabases_Call struct {
	*mock.Call
}

Client_AccessibleDatabases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccessibleDatabases'

func (*Client_AccessibleDatabases_Call) Return

func (*Client_AccessibleDatabases_Call) Run

func (*Client_AccessibleDatabases_Call) RunAndReturn

type Client_AsyncJobCancel_Call

type Client_AsyncJobCancel_Call struct {
	*mock.Call
}

Client_AsyncJobCancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsyncJobCancel'

func (*Client_AsyncJobCancel_Call) Return

func (*Client_AsyncJobCancel_Call) Run

func (*Client_AsyncJobCancel_Call) RunAndReturn

type Client_AsyncJobDelete_Call

type Client_AsyncJobDelete_Call struct {
	*mock.Call
}

Client_AsyncJobDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsyncJobDelete'

func (*Client_AsyncJobDelete_Call) Return

func (*Client_AsyncJobDelete_Call) Run

type Client_AsyncJobList_Call

type Client_AsyncJobList_Call struct {
	*mock.Call
}

Client_AsyncJobList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsyncJobList'

func (*Client_AsyncJobList_Call) Return

func (*Client_AsyncJobList_Call) Run

type Client_AsyncJobStatus_Call

type Client_AsyncJobStatus_Call struct {
	*mock.Call
}

Client_AsyncJobStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsyncJobStatus'

func (*Client_AsyncJobStatus_Call) Return

func (*Client_AsyncJobStatus_Call) Run

func (*Client_AsyncJobStatus_Call) RunAndReturn

type Client_BackupCreate_Call

type Client_BackupCreate_Call struct {
	*mock.Call
}

Client_BackupCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BackupCreate'

func (*Client_BackupCreate_Call) Return

func (*Client_BackupCreate_Call) Run

type Client_BackupDelete_Call

type Client_BackupDelete_Call struct {
	*mock.Call
}

Client_BackupDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BackupDelete'

func (*Client_BackupDelete_Call) Return

func (*Client_BackupDelete_Call) Run

func (*Client_BackupDelete_Call) RunAndReturn

type Client_BackupDownload_Call

type Client_BackupDownload_Call struct {
	*mock.Call
}

Client_BackupDownload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BackupDownload'

func (*Client_BackupDownload_Call) Return

func (*Client_BackupDownload_Call) Run

func (_c *Client_BackupDownload_Call) Run(run func(ctx context.Context, backupId string, remoteRepository string, config interface{})) *Client_BackupDownload_Call

func (*Client_BackupDownload_Call) RunAndReturn

type Client_BackupList_Call

type Client_BackupList_Call struct {
	*mock.Call
}

Client_BackupList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BackupList'

func (*Client_BackupList_Call) Return

func (*Client_BackupList_Call) Run

type Client_BackupRestore_Call

type Client_BackupRestore_Call struct {
	*mock.Call
}

Client_BackupRestore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BackupRestore'

func (*Client_BackupRestore_Call) Return

func (*Client_BackupRestore_Call) Run

func (*Client_BackupRestore_Call) RunAndReturn

type Client_BackupUpload_Call

type Client_BackupUpload_Call struct {
	*mock.Call
}

Client_BackupUpload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BackupUpload'

func (*Client_BackupUpload_Call) Return

func (*Client_BackupUpload_Call) Run

func (_c *Client_BackupUpload_Call) Run(run func(ctx context.Context, backupId string, remoteRepository string, config interface{})) *Client_BackupUpload_Call

func (*Client_BackupUpload_Call) RunAndReturn

type Client_CheckAvailability_Call

type Client_CheckAvailability_Call struct {
	*mock.Call
}

Client_CheckAvailability_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckAvailability'

func (*Client_CheckAvailability_Call) Return

func (*Client_CheckAvailability_Call) Run

func (_c *Client_CheckAvailability_Call) Run(run func(ctx context.Context, serverEndpoint string)) *Client_CheckAvailability_Call

func (*Client_CheckAvailability_Call) RunAndReturn

type Client_CleanOutServer_Call

type Client_CleanOutServer_Call struct {
	*mock.Call
}

Client_CleanOutServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanOutServer'

func (*Client_CleanOutServer_Call) Return

func (*Client_CleanOutServer_Call) Run

func (*Client_CleanOutServer_Call) RunAndReturn

type Client_Connection_Call

type Client_Connection_Call struct {
	*mock.Call
}

Client_Connection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connection'

func (*Client_Connection_Call) Return

func (*Client_Connection_Call) Run

func (_c *Client_Connection_Call) Run(run func()) *Client_Connection_Call

func (*Client_Connection_Call) RunAndReturn

type Client_CreateDatabase_Call

type Client_CreateDatabase_Call struct {
	*mock.Call
}

Client_CreateDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDatabase'

func (*Client_CreateDatabase_Call) Return

func (*Client_CreateDatabase_Call) Run

type Client_CreateUser_Call

type Client_CreateUser_Call struct {
	*mock.Call
}

Client_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'

func (*Client_CreateUser_Call) Return

func (*Client_CreateUser_Call) Run

func (*Client_CreateUser_Call) RunAndReturn

type Client_DatabaseExists_Call

type Client_DatabaseExists_Call struct {
	*mock.Call
}

Client_DatabaseExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DatabaseExists'

func (*Client_DatabaseExists_Call) Return

func (*Client_DatabaseExists_Call) Run

func (*Client_DatabaseExists_Call) RunAndReturn

type Client_DatabaseInventory_Call

type Client_DatabaseInventory_Call struct {
	*mock.Call
}

Client_DatabaseInventory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DatabaseInventory'

func (*Client_DatabaseInventory_Call) Return

func (*Client_DatabaseInventory_Call) Run

func (*Client_DatabaseInventory_Call) RunAndReturn

type Client_Database_Call

type Client_Database_Call struct {
	*mock.Call
}

Client_Database_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Database'

func (*Client_Database_Call) Return

func (*Client_Database_Call) Run

func (_c *Client_Database_Call) Run(run func(ctx context.Context, name string)) *Client_Database_Call

func (*Client_Database_Call) RunAndReturn

type Client_Databases_Call

type Client_Databases_Call struct {
	*mock.Call
}

Client_Databases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Databases'

func (*Client_Databases_Call) Return

func (*Client_Databases_Call) Run

func (*Client_Databases_Call) RunAndReturn

type Client_Delete_Call

type Client_Delete_Call struct {
	*mock.Call
}

Client_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Client_Delete_Call) Return

func (*Client_Delete_Call) Run

func (_c *Client_Delete_Call) Run(run func(ctx context.Context, output interface{}, urlParts ...string)) *Client_Delete_Call

func (*Client_Delete_Call) RunAndReturn

func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, interface{}, ...string) (connection.Response, error)) *Client_Delete_Call

type Client_Expecter

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

func (*Client_Expecter) AccessibleDatabases

func (_e *Client_Expecter) AccessibleDatabases(ctx interface{}) *Client_AccessibleDatabases_Call

AccessibleDatabases is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) AsyncJobCancel

func (_e *Client_Expecter) AsyncJobCancel(ctx interface{}, jobID interface{}) *Client_AsyncJobCancel_Call

AsyncJobCancel is a helper method to define mock.On call

  • ctx context.Context
  • jobID string

func (*Client_Expecter) AsyncJobDelete

func (_e *Client_Expecter) AsyncJobDelete(ctx interface{}, deleteType interface{}, opts interface{}) *Client_AsyncJobDelete_Call

AsyncJobDelete is a helper method to define mock.On call

  • ctx context.Context
  • deleteType arangodb.AsyncJobDeleteType
  • opts *arangodb.AsyncJobDeleteOptions

func (*Client_Expecter) AsyncJobList

func (_e *Client_Expecter) AsyncJobList(ctx interface{}, jobType interface{}, opts interface{}) *Client_AsyncJobList_Call

AsyncJobList is a helper method to define mock.On call

  • ctx context.Context
  • jobType arangodb.AsyncJobStatusType
  • opts *arangodb.AsyncJobListOptions

func (*Client_Expecter) AsyncJobStatus

func (_e *Client_Expecter) AsyncJobStatus(ctx interface{}, jobID interface{}) *Client_AsyncJobStatus_Call

AsyncJobStatus is a helper method to define mock.On call

  • ctx context.Context
  • jobID string

func (*Client_Expecter) BackupCreate

func (_e *Client_Expecter) BackupCreate(ctx interface{}, opt interface{}) *Client_BackupCreate_Call

BackupCreate is a helper method to define mock.On call

  • ctx context.Context
  • opt *arangodb.BackupCreateOptions

func (*Client_Expecter) BackupDelete

func (_e *Client_Expecter) BackupDelete(ctx interface{}, id interface{}) *Client_BackupDelete_Call

BackupDelete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Client_Expecter) BackupDownload

func (_e *Client_Expecter) BackupDownload(ctx interface{}, backupId interface{}, remoteRepository interface{}, config interface{}) *Client_BackupDownload_Call

BackupDownload is a helper method to define mock.On call

  • ctx context.Context
  • backupId string
  • remoteRepository string
  • config interface{}

func (*Client_Expecter) BackupList

func (_e *Client_Expecter) BackupList(ctx interface{}, opt interface{}) *Client_BackupList_Call

BackupList is a helper method to define mock.On call

  • ctx context.Context
  • opt *arangodb.BackupListOptions

func (*Client_Expecter) BackupRestore

func (_e *Client_Expecter) BackupRestore(ctx interface{}, id interface{}) *Client_BackupRestore_Call

BackupRestore is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Client_Expecter) BackupUpload

func (_e *Client_Expecter) BackupUpload(ctx interface{}, backupId interface{}, remoteRepository interface{}, config interface{}) *Client_BackupUpload_Call

BackupUpload is a helper method to define mock.On call

  • ctx context.Context
  • backupId string
  • remoteRepository string
  • config interface{}

func (*Client_Expecter) CheckAvailability

func (_e *Client_Expecter) CheckAvailability(ctx interface{}, serverEndpoint interface{}) *Client_CheckAvailability_Call

CheckAvailability is a helper method to define mock.On call

  • ctx context.Context
  • serverEndpoint string

func (*Client_Expecter) CleanOutServer

func (_e *Client_Expecter) CleanOutServer(ctx interface{}, serverID interface{}) *Client_CleanOutServer_Call

CleanOutServer is a helper method to define mock.On call

  • ctx context.Context
  • serverID arangodb.ServerID

func (*Client_Expecter) Connection

func (_e *Client_Expecter) Connection() *Client_Connection_Call

Connection is a helper method to define mock.On call

func (*Client_Expecter) CreateDatabase

func (_e *Client_Expecter) CreateDatabase(ctx interface{}, name interface{}, options interface{}) *Client_CreateDatabase_Call

CreateDatabase is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.CreateDatabaseOptions

func (*Client_Expecter) CreateUser

func (_e *Client_Expecter) CreateUser(ctx interface{}, name interface{}, options interface{}) *Client_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.UserOptions

func (*Client_Expecter) Database

func (_e *Client_Expecter) Database(ctx interface{}, name interface{}) *Client_Database_Call

Database is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Client_Expecter) DatabaseExists

func (_e *Client_Expecter) DatabaseExists(ctx interface{}, name interface{}) *Client_DatabaseExists_Call

DatabaseExists is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Client_Expecter) DatabaseInventory

func (_e *Client_Expecter) DatabaseInventory(ctx interface{}, dbName interface{}) *Client_DatabaseInventory_Call

DatabaseInventory is a helper method to define mock.On call

  • ctx context.Context
  • dbName string

func (*Client_Expecter) Databases

func (_e *Client_Expecter) Databases(ctx interface{}) *Client_Databases_Call

Databases is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) Delete

func (_e *Client_Expecter) Delete(ctx interface{}, output interface{}, urlParts ...interface{}) *Client_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • output interface{}
  • urlParts ...string

func (*Client_Expecter) Get

func (_e *Client_Expecter) Get(ctx interface{}, output interface{}, urlParts ...interface{}) *Client_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • output interface{}
  • urlParts ...string

func (*Client_Expecter) GetDatabase

func (_e *Client_Expecter) GetDatabase(ctx interface{}, name interface{}, options interface{}) *Client_GetDatabase_Call

GetDatabase is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.GetDatabaseOptions

func (*Client_Expecter) GetLicense

func (_e *Client_Expecter) GetLicense(ctx interface{}) *Client_GetLicense_Call

GetLicense is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) GetLogLevels

func (_e *Client_Expecter) GetLogLevels(ctx interface{}, opts interface{}) *Client_GetLogLevels_Call

GetLogLevels is a helper method to define mock.On call

  • ctx context.Context
  • opts *arangodb.LogLevelsGetOptions

func (*Client_Expecter) Head

func (_e *Client_Expecter) Head(ctx interface{}, output interface{}, urlParts ...interface{}) *Client_Head_Call

Head is a helper method to define mock.On call

  • ctx context.Context
  • output interface{}
  • urlParts ...string

func (*Client_Expecter) Health

func (_e *Client_Expecter) Health(ctx interface{}) *Client_Health_Call

Health is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) IsCleanedOut

func (_e *Client_Expecter) IsCleanedOut(ctx interface{}, serverID interface{}) *Client_IsCleanedOut_Call

IsCleanedOut is a helper method to define mock.On call

  • ctx context.Context
  • serverID arangodb.ServerID

func (*Client_Expecter) MoveShard

func (_e *Client_Expecter) MoveShard(ctx interface{}, col interface{}, shard interface{}, fromServer interface{}, toServer interface{}) *Client_MoveShard_Call

MoveShard is a helper method to define mock.On call

  • ctx context.Context
  • col arangodb.Collection
  • shard arangodb.ShardID
  • fromServer arangodb.ServerID
  • toServer arangodb.ServerID

func (*Client_Expecter) NumberOfServers

func (_e *Client_Expecter) NumberOfServers(ctx interface{}) *Client_NumberOfServers_Call

NumberOfServers is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) Patch

func (_e *Client_Expecter) Patch(ctx interface{}, output interface{}, input interface{}, urlParts ...interface{}) *Client_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • output interface{}
  • input interface{}
  • urlParts ...string

func (*Client_Expecter) Post

func (_e *Client_Expecter) Post(ctx interface{}, output interface{}, input interface{}, urlParts ...interface{}) *Client_Post_Call

Post is a helper method to define mock.On call

  • ctx context.Context
  • output interface{}
  • input interface{}
  • urlParts ...string

func (*Client_Expecter) Put

func (_e *Client_Expecter) Put(ctx interface{}, output interface{}, input interface{}, urlParts ...interface{}) *Client_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • output interface{}
  • input interface{}
  • urlParts ...string

func (*Client_Expecter) RemoveServer

func (_e *Client_Expecter) RemoveServer(ctx interface{}, serverID interface{}) *Client_RemoveServer_Call

RemoveServer is a helper method to define mock.On call

  • ctx context.Context
  • serverID arangodb.ServerID

func (*Client_Expecter) RemoveUser

func (_e *Client_Expecter) RemoveUser(ctx interface{}, name interface{}) *Client_RemoveUser_Call

RemoveUser is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Client_Expecter) ReplaceUser

func (_e *Client_Expecter) ReplaceUser(ctx interface{}, name interface{}, options interface{}) *Client_ReplaceUser_Call

ReplaceUser is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.UserOptions

func (*Client_Expecter) ResignServer

func (_e *Client_Expecter) ResignServer(ctx interface{}, serverID interface{}) *Client_ResignServer_Call

ResignServer is a helper method to define mock.On call

  • ctx context.Context
  • serverID arangodb.ServerID

func (*Client_Expecter) ServerID

func (_e *Client_Expecter) ServerID(ctx interface{}) *Client_ServerID_Call

ServerID is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) ServerMode

func (_e *Client_Expecter) ServerMode(ctx interface{}) *Client_ServerMode_Call

ServerMode is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) ServerRole

func (_e *Client_Expecter) ServerRole(ctx interface{}) *Client_ServerRole_Call

ServerRole is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) SetLicense

func (_e *Client_Expecter) SetLicense(ctx interface{}, license interface{}, force interface{}) *Client_SetLicense_Call

SetLicense is a helper method to define mock.On call

  • ctx context.Context
  • license string
  • force bool

func (*Client_Expecter) SetLogLevels

func (_e *Client_Expecter) SetLogLevels(ctx interface{}, logLevels interface{}, opts interface{}) *Client_SetLogLevels_Call

SetLogLevels is a helper method to define mock.On call

  • ctx context.Context
  • logLevels arangodb.LogLevels
  • opts *arangodb.LogLevelsSetOptions

func (*Client_Expecter) SetServerMode

func (_e *Client_Expecter) SetServerMode(ctx interface{}, mode interface{}) *Client_SetServerMode_Call

SetServerMode is a helper method to define mock.On call

  • ctx context.Context
  • mode arangodb.ServerMode

func (*Client_Expecter) TransferMonitor

func (_e *Client_Expecter) TransferMonitor(jobId interface{}, transferType interface{}) *Client_TransferMonitor_Call

TransferMonitor is a helper method to define mock.On call

  • jobId string
  • transferType arangodb.TransferType

func (*Client_Expecter) UpdateUser

func (_e *Client_Expecter) UpdateUser(ctx interface{}, name interface{}, options interface{}) *Client_UpdateUser_Call

UpdateUser is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.UserOptions

func (*Client_Expecter) User

func (_e *Client_Expecter) User(ctx interface{}, name interface{}) *Client_User_Call

User is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Client_Expecter) UserExists

func (_e *Client_Expecter) UserExists(ctx interface{}, name interface{}) *Client_UserExists_Call

UserExists is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Client_Expecter) Users

func (_e *Client_Expecter) Users(ctx interface{}) *Client_Users_Call

Users is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) Version

func (_e *Client_Expecter) Version(ctx interface{}) *Client_Version_Call

Version is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) VersionWithOptions

func (_e *Client_Expecter) VersionWithOptions(ctx interface{}, opts interface{}) *Client_VersionWithOptions_Call

VersionWithOptions is a helper method to define mock.On call

  • ctx context.Context
  • opts *arangodb.GetVersionOptions

type Client_GetDatabase_Call

type Client_GetDatabase_Call struct {
	*mock.Call
}

Client_GetDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDatabase'

func (*Client_GetDatabase_Call) Return

func (*Client_GetDatabase_Call) Run

func (*Client_GetDatabase_Call) RunAndReturn

type Client_GetLicense_Call

type Client_GetLicense_Call struct {
	*mock.Call
}

Client_GetLicense_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLicense'

func (*Client_GetLicense_Call) Return

func (*Client_GetLicense_Call) Run

func (*Client_GetLicense_Call) RunAndReturn

type Client_GetLogLevels_Call

type Client_GetLogLevels_Call struct {
	*mock.Call
}

Client_GetLogLevels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogLevels'

func (*Client_GetLogLevels_Call) Return

func (*Client_GetLogLevels_Call) Run

func (*Client_GetLogLevels_Call) RunAndReturn

type Client_Get_Call

type Client_Get_Call struct {
	*mock.Call
}

Client_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Client_Get_Call) Return

func (*Client_Get_Call) Run

func (_c *Client_Get_Call) Run(run func(ctx context.Context, output interface{}, urlParts ...string)) *Client_Get_Call

func (*Client_Get_Call) RunAndReturn

func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, interface{}, ...string) (connection.Response, error)) *Client_Get_Call

type Client_Head_Call

type Client_Head_Call struct {
	*mock.Call
}

Client_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'

func (*Client_Head_Call) Return

func (*Client_Head_Call) Run

func (_c *Client_Head_Call) Run(run func(ctx context.Context, output interface{}, urlParts ...string)) *Client_Head_Call

func (*Client_Head_Call) RunAndReturn

func (_c *Client_Head_Call) RunAndReturn(run func(context.Context, interface{}, ...string) (connection.Response, error)) *Client_Head_Call

type Client_Health_Call

type Client_Health_Call struct {
	*mock.Call
}

Client_Health_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Health'

func (*Client_Health_Call) Return

func (*Client_Health_Call) Run

func (_c *Client_Health_Call) Run(run func(ctx context.Context)) *Client_Health_Call

func (*Client_Health_Call) RunAndReturn

type Client_IsCleanedOut_Call

type Client_IsCleanedOut_Call struct {
	*mock.Call
}

Client_IsCleanedOut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsCleanedOut'

func (*Client_IsCleanedOut_Call) Return

func (*Client_IsCleanedOut_Call) Run

func (*Client_IsCleanedOut_Call) RunAndReturn

type Client_MoveShard_Call

type Client_MoveShard_Call struct {
	*mock.Call
}

Client_MoveShard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MoveShard'

func (*Client_MoveShard_Call) Return

func (*Client_MoveShard_Call) Run

type Client_NumberOfServers_Call

type Client_NumberOfServers_Call struct {
	*mock.Call
}

Client_NumberOfServers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NumberOfServers'

func (*Client_NumberOfServers_Call) Return

func (*Client_NumberOfServers_Call) Run

func (*Client_NumberOfServers_Call) RunAndReturn

type Client_Patch_Call

type Client_Patch_Call struct {
	*mock.Call
}

Client_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*Client_Patch_Call) Return

func (*Client_Patch_Call) Run

func (_c *Client_Patch_Call) Run(run func(ctx context.Context, output interface{}, input interface{}, urlParts ...string)) *Client_Patch_Call

func (*Client_Patch_Call) RunAndReturn

func (_c *Client_Patch_Call) RunAndReturn(run func(context.Context, interface{}, interface{}, ...string) (connection.Response, error)) *Client_Patch_Call

type Client_Post_Call

type Client_Post_Call struct {
	*mock.Call
}

Client_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'

func (*Client_Post_Call) Return

func (*Client_Post_Call) Run

func (_c *Client_Post_Call) Run(run func(ctx context.Context, output interface{}, input interface{}, urlParts ...string)) *Client_Post_Call

func (*Client_Post_Call) RunAndReturn

func (_c *Client_Post_Call) RunAndReturn(run func(context.Context, interface{}, interface{}, ...string) (connection.Response, error)) *Client_Post_Call

type Client_Put_Call

type Client_Put_Call struct {
	*mock.Call
}

Client_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*Client_Put_Call) Return

func (*Client_Put_Call) Run

func (_c *Client_Put_Call) Run(run func(ctx context.Context, output interface{}, input interface{}, urlParts ...string)) *Client_Put_Call

func (*Client_Put_Call) RunAndReturn

func (_c *Client_Put_Call) RunAndReturn(run func(context.Context, interface{}, interface{}, ...string) (connection.Response, error)) *Client_Put_Call

type Client_RemoveServer_Call

type Client_RemoveServer_Call struct {
	*mock.Call
}

Client_RemoveServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveServer'

func (*Client_RemoveServer_Call) Return

func (*Client_RemoveServer_Call) Run

func (*Client_RemoveServer_Call) RunAndReturn

type Client_RemoveUser_Call

type Client_RemoveUser_Call struct {
	*mock.Call
}

Client_RemoveUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUser'

func (*Client_RemoveUser_Call) Return

func (*Client_RemoveUser_Call) Run

func (_c *Client_RemoveUser_Call) Run(run func(ctx context.Context, name string)) *Client_RemoveUser_Call

func (*Client_RemoveUser_Call) RunAndReturn

type Client_ReplaceUser_Call

type Client_ReplaceUser_Call struct {
	*mock.Call
}

Client_ReplaceUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplaceUser'

func (*Client_ReplaceUser_Call) Return

func (*Client_ReplaceUser_Call) Run

func (*Client_ReplaceUser_Call) RunAndReturn

type Client_ResignServer_Call

type Client_ResignServer_Call struct {
	*mock.Call
}

Client_ResignServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResignServer'

func (*Client_ResignServer_Call) Return

func (*Client_ResignServer_Call) Run

func (*Client_ResignServer_Call) RunAndReturn

type Client_ServerID_Call

type Client_ServerID_Call struct {
	*mock.Call
}

Client_ServerID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerID'

func (*Client_ServerID_Call) Return

func (_c *Client_ServerID_Call) Return(_a0 string, _a1 error) *Client_ServerID_Call

func (*Client_ServerID_Call) Run

func (_c *Client_ServerID_Call) Run(run func(ctx context.Context)) *Client_ServerID_Call

func (*Client_ServerID_Call) RunAndReturn

func (_c *Client_ServerID_Call) RunAndReturn(run func(context.Context) (string, error)) *Client_ServerID_Call

type Client_ServerMode_Call

type Client_ServerMode_Call struct {
	*mock.Call
}

Client_ServerMode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerMode'

func (*Client_ServerMode_Call) Return

func (*Client_ServerMode_Call) Run

func (*Client_ServerMode_Call) RunAndReturn

type Client_ServerRole_Call

type Client_ServerRole_Call struct {
	*mock.Call
}

Client_ServerRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerRole'

func (*Client_ServerRole_Call) Return

func (*Client_ServerRole_Call) Run

func (*Client_ServerRole_Call) RunAndReturn

type Client_SetLicense_Call

type Client_SetLicense_Call struct {
	*mock.Call
}

Client_SetLicense_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLicense'

func (*Client_SetLicense_Call) Return

func (*Client_SetLicense_Call) Run

func (_c *Client_SetLicense_Call) Run(run func(ctx context.Context, license string, force bool)) *Client_SetLicense_Call

func (*Client_SetLicense_Call) RunAndReturn

type Client_SetLogLevels_Call

type Client_SetLogLevels_Call struct {
	*mock.Call
}

Client_SetLogLevels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLogLevels'

func (*Client_SetLogLevels_Call) Return

func (*Client_SetLogLevels_Call) Run

func (*Client_SetLogLevels_Call) RunAndReturn

type Client_SetServerMode_Call

type Client_SetServerMode_Call struct {
	*mock.Call
}

Client_SetServerMode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetServerMode'

func (*Client_SetServerMode_Call) Return

func (*Client_SetServerMode_Call) Run

func (*Client_SetServerMode_Call) RunAndReturn

type Client_TransferMonitor_Call

type Client_TransferMonitor_Call struct {
	*mock.Call
}

Client_TransferMonitor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferMonitor'

func (*Client_TransferMonitor_Call) Return

func (*Client_TransferMonitor_Call) Run

func (*Client_TransferMonitor_Call) RunAndReturn

type Client_UpdateUser_Call

type Client_UpdateUser_Call struct {
	*mock.Call
}

Client_UpdateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUser'

func (*Client_UpdateUser_Call) Return

func (*Client_UpdateUser_Call) Run

func (*Client_UpdateUser_Call) RunAndReturn

type Client_UserExists_Call

type Client_UserExists_Call struct {
	*mock.Call
}

Client_UserExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserExists'

func (*Client_UserExists_Call) Return

func (*Client_UserExists_Call) Run

func (_c *Client_UserExists_Call) Run(run func(ctx context.Context, name string)) *Client_UserExists_Call

func (*Client_UserExists_Call) RunAndReturn

type Client_User_Call

type Client_User_Call struct {
	*mock.Call
}

Client_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'

func (*Client_User_Call) Return

func (_c *Client_User_Call) Return(_a0 arangodb.User, _a1 error) *Client_User_Call

func (*Client_User_Call) Run

func (_c *Client_User_Call) Run(run func(ctx context.Context, name string)) *Client_User_Call

func (*Client_User_Call) RunAndReturn

func (_c *Client_User_Call) RunAndReturn(run func(context.Context, string) (arangodb.User, error)) *Client_User_Call

type Client_Users_Call

type Client_Users_Call struct {
	*mock.Call
}

Client_Users_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Users'

func (*Client_Users_Call) Return

func (_c *Client_Users_Call) Return(_a0 []arangodb.User, _a1 error) *Client_Users_Call

func (*Client_Users_Call) Run

func (_c *Client_Users_Call) Run(run func(ctx context.Context)) *Client_Users_Call

func (*Client_Users_Call) RunAndReturn

func (_c *Client_Users_Call) RunAndReturn(run func(context.Context) ([]arangodb.User, error)) *Client_Users_Call

type Client_VersionWithOptions_Call

type Client_VersionWithOptions_Call struct {
	*mock.Call
}

Client_VersionWithOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VersionWithOptions'

func (*Client_VersionWithOptions_Call) Return

func (*Client_VersionWithOptions_Call) Run

func (*Client_VersionWithOptions_Call) RunAndReturn

type Client_Version_Call

type Client_Version_Call struct {
	*mock.Call
}

Client_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'

func (*Client_Version_Call) Return

func (*Client_Version_Call) Run

func (_c *Client_Version_Call) Run(run func(ctx context.Context)) *Client_Version_Call

func (*Client_Version_Call) RunAndReturn

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func NewDatabase

func NewDatabase(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Database) Analyzer

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

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

func (*Database) Analyzers

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) (arangodb.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) ([]arangodb.Collection, error)

Collections provides a mock function with given fields: ctx

func (*Database) CreateArangoSearchAliasView

func (_m *Database) CreateArangoSearchAliasView(ctx context.Context, name string, options *arangodb.ArangoSearchAliasViewProperties) (arangodb.ArangoSearchViewAlias, error)

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

func (*Database) CreateArangoSearchView

func (_m *Database) CreateArangoSearchView(ctx context.Context, name string, options *arangodb.ArangoSearchViewProperties) (arangodb.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, props *arangodb.CreateCollectionProperties) (arangodb.Collection, error)

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

func (*Database) CreateCollectionWithOptions

func (_m *Database) CreateCollectionWithOptions(ctx context.Context, name string, props *arangodb.CreateCollectionProperties, options *arangodb.CreateCollectionOptions) (arangodb.Collection, error)

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

func (*Database) CreateGraph

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

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

func (*Database) EXPECT

func (_m *Database) EXPECT() *Database_Expecter

func (*Database) EnsureAnalyzer

func (_m *Database) EnsureAnalyzer(ctx context.Context, analyzer *arangodb.AnalyzerDefinition) (bool, arangodb.Analyzer, error)

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

func (*Database) ExplainQuery

func (_m *Database) ExplainQuery(ctx context.Context, query string, bindVars map[string]interface{}, opts *arangodb.ExplainQueryOptions) (arangodb.ExplainQueryResult, error)

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

func (*Database) GetCollection

func (_m *Database) GetCollection(ctx context.Context, name string, options *arangodb.GetCollectionOptions) (arangodb.Collection, error)

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

func (*Database) GetEdges

func (_m *Database) GetEdges(ctx context.Context, name string, vertex string, options *arangodb.GetEdgesOptions) ([]arangodb.EdgeDetails, error)

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

func (*Database) Graph

func (_m *Database) Graph(ctx context.Context, name string, options *arangodb.GetGraphOptions) (arangodb.Graph, error)

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

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

Graphs provides a mock function with given fields: ctx

func (*Database) Info

Info provides a mock function with given fields: ctx

func (*Database) ListTransactions

func (_m *Database) ListTransactions(ctx context.Context) ([]arangodb.Transaction, error)

ListTransactions provides a mock function with given fields: ctx

func (*Database) ListTransactionsWithStatuses

func (_m *Database) ListTransactionsWithStatuses(ctx context.Context, statuses ...arangodb.TransactionStatus) ([]arangodb.Transaction, error)

ListTransactionsWithStatuses provides a mock function with given fields: ctx, statuses

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, opts *arangodb.QueryOptions) (arangodb.Cursor, error)

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

func (*Database) QueryBatch

func (_m *Database) QueryBatch(ctx context.Context, query string, opts *arangodb.QueryOptions, result interface{}) (arangodb.CursorBatch, error)

QueryBatch provides a mock function with given fields: ctx, query, opts, result

func (*Database) Remove

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

Remove provides a mock function with given fields: ctx

func (*Database) Transaction

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

func (*Database) TransactionJS

func (_m *Database) TransactionJS(ctx context.Context, options arangodb.TransactionJSOptions) (interface{}, error)

TransactionJS provides a mock function with given fields: ctx, 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) (arangodb.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

Views provides a mock function with given fields: ctx

func (*Database) ViewsAll

func (_m *Database) ViewsAll(ctx context.Context) ([]arangodb.View, error)

ViewsAll provides a mock function with given fields: ctx

func (*Database) WithTransaction

WithTransaction provides a mock function with given fields: ctx, cols, opts, commitOptions, abortOptions, w

type Database_Analyzer_Call

type Database_Analyzer_Call struct {
	*mock.Call
}

Database_Analyzer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Analyzer'

func (*Database_Analyzer_Call) Return

func (*Database_Analyzer_Call) Run

func (_c *Database_Analyzer_Call) Run(run func(ctx context.Context, name string)) *Database_Analyzer_Call

func (*Database_Analyzer_Call) RunAndReturn

type Database_Analyzers_Call

type Database_Analyzers_Call struct {
	*mock.Call
}

Database_Analyzers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Analyzers'

func (*Database_Analyzers_Call) Return

func (*Database_Analyzers_Call) Run

func (*Database_Analyzers_Call) RunAndReturn

type Database_BeginTransaction_Call

type Database_BeginTransaction_Call struct {
	*mock.Call
}

Database_BeginTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginTransaction'

func (*Database_BeginTransaction_Call) Return

func (*Database_BeginTransaction_Call) Run

type Database_CollectionExists_Call

type Database_CollectionExists_Call struct {
	*mock.Call
}

Database_CollectionExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CollectionExists'

func (*Database_CollectionExists_Call) Return

func (*Database_CollectionExists_Call) Run

func (*Database_CollectionExists_Call) RunAndReturn

type Database_Collection_Call

type Database_Collection_Call struct {
	*mock.Call
}

Database_Collection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Collection'

func (*Database_Collection_Call) Return

func (*Database_Collection_Call) Run

func (*Database_Collection_Call) RunAndReturn

type Database_Collections_Call

type Database_Collections_Call struct {
	*mock.Call
}

Database_Collections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Collections'

func (*Database_Collections_Call) Return

func (*Database_Collections_Call) Run

func (*Database_Collections_Call) RunAndReturn

type Database_CreateArangoSearchAliasView_Call

type Database_CreateArangoSearchAliasView_Call struct {
	*mock.Call
}

Database_CreateArangoSearchAliasView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateArangoSearchAliasView'

func (*Database_CreateArangoSearchAliasView_Call) Return

func (*Database_CreateArangoSearchAliasView_Call) Run

type Database_CreateArangoSearchView_Call

type Database_CreateArangoSearchView_Call struct {
	*mock.Call
}

Database_CreateArangoSearchView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateArangoSearchView'

func (*Database_CreateArangoSearchView_Call) Return

func (*Database_CreateArangoSearchView_Call) Run

type Database_CreateCollectionWithOptions_Call

type Database_CreateCollectionWithOptions_Call struct {
	*mock.Call
}

Database_CreateCollectionWithOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCollectionWithOptions'

func (*Database_CreateCollectionWithOptions_Call) Return

func (*Database_CreateCollectionWithOptions_Call) Run

type Database_CreateCollection_Call

type Database_CreateCollection_Call struct {
	*mock.Call
}

Database_CreateCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCollection'

func (*Database_CreateCollection_Call) Return

func (*Database_CreateCollection_Call) Run

type Database_CreateGraph_Call

type Database_CreateGraph_Call struct {
	*mock.Call
}

Database_CreateGraph_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateGraph'

func (*Database_CreateGraph_Call) Return

func (*Database_CreateGraph_Call) Run

type Database_EnsureAnalyzer_Call

type Database_EnsureAnalyzer_Call struct {
	*mock.Call
}

Database_EnsureAnalyzer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureAnalyzer'

func (*Database_EnsureAnalyzer_Call) Return

func (*Database_EnsureAnalyzer_Call) Run

func (*Database_EnsureAnalyzer_Call) RunAndReturn

type Database_Expecter

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

func (*Database_Expecter) Analyzer

func (_e *Database_Expecter) Analyzer(ctx interface{}, name interface{}) *Database_Analyzer_Call

Analyzer is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Database_Expecter) Analyzers

func (_e *Database_Expecter) Analyzers(ctx interface{}) *Database_Analyzers_Call

Analyzers is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) BeginTransaction

func (_e *Database_Expecter) BeginTransaction(ctx interface{}, cols interface{}, opts interface{}) *Database_BeginTransaction_Call

BeginTransaction is a helper method to define mock.On call

  • ctx context.Context
  • cols arangodb.TransactionCollections
  • opts *arangodb.BeginTransactionOptions

func (*Database_Expecter) Collection

func (_e *Database_Expecter) Collection(ctx interface{}, name interface{}) *Database_Collection_Call

Collection is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Database_Expecter) CollectionExists

func (_e *Database_Expecter) CollectionExists(ctx interface{}, name interface{}) *Database_CollectionExists_Call

CollectionExists is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Database_Expecter) Collections

func (_e *Database_Expecter) Collections(ctx interface{}) *Database_Collections_Call

Collections is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) CreateArangoSearchAliasView

func (_e *Database_Expecter) CreateArangoSearchAliasView(ctx interface{}, name interface{}, options interface{}) *Database_CreateArangoSearchAliasView_Call

CreateArangoSearchAliasView is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.ArangoSearchAliasViewProperties

func (*Database_Expecter) CreateArangoSearchView

func (_e *Database_Expecter) CreateArangoSearchView(ctx interface{}, name interface{}, options interface{}) *Database_CreateArangoSearchView_Call

CreateArangoSearchView is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.ArangoSearchViewProperties

func (*Database_Expecter) CreateCollection

func (_e *Database_Expecter) CreateCollection(ctx interface{}, name interface{}, props interface{}) *Database_CreateCollection_Call

CreateCollection is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • props *arangodb.CreateCollectionProperties

func (*Database_Expecter) CreateCollectionWithOptions

func (_e *Database_Expecter) CreateCollectionWithOptions(ctx interface{}, name interface{}, props interface{}, options interface{}) *Database_CreateCollectionWithOptions_Call

CreateCollectionWithOptions is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • props *arangodb.CreateCollectionProperties
  • options *arangodb.CreateCollectionOptions

func (*Database_Expecter) CreateGraph

func (_e *Database_Expecter) CreateGraph(ctx interface{}, name interface{}, graph interface{}, options interface{}) *Database_CreateGraph_Call

CreateGraph is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • graph *arangodb.GraphDefinition
  • options *arangodb.CreateGraphOptions

func (*Database_Expecter) EnsureAnalyzer

func (_e *Database_Expecter) EnsureAnalyzer(ctx interface{}, analyzer interface{}) *Database_EnsureAnalyzer_Call

EnsureAnalyzer is a helper method to define mock.On call

  • ctx context.Context
  • analyzer *arangodb.AnalyzerDefinition

func (*Database_Expecter) ExplainQuery

func (_e *Database_Expecter) ExplainQuery(ctx interface{}, query interface{}, bindVars interface{}, opts interface{}) *Database_ExplainQuery_Call

ExplainQuery is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • bindVars map[string]interface{}
  • opts *arangodb.ExplainQueryOptions

func (*Database_Expecter) GetCollection

func (_e *Database_Expecter) GetCollection(ctx interface{}, name interface{}, options interface{}) *Database_GetCollection_Call

GetCollection is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.GetCollectionOptions

func (*Database_Expecter) GetEdges

func (_e *Database_Expecter) GetEdges(ctx interface{}, name interface{}, vertex interface{}, options interface{}) *Database_GetEdges_Call

GetEdges is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • vertex string
  • options *arangodb.GetEdgesOptions

func (*Database_Expecter) Graph

func (_e *Database_Expecter) Graph(ctx interface{}, name interface{}, options interface{}) *Database_Graph_Call

Graph is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options *arangodb.GetGraphOptions

func (*Database_Expecter) GraphExists

func (_e *Database_Expecter) GraphExists(ctx interface{}, name interface{}) *Database_GraphExists_Call

GraphExists is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Database_Expecter) Graphs

func (_e *Database_Expecter) Graphs(ctx interface{}) *Database_Graphs_Call

Graphs is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) Info

func (_e *Database_Expecter) Info(ctx interface{}) *Database_Info_Call

Info is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) ListTransactions

func (_e *Database_Expecter) ListTransactions(ctx interface{}) *Database_ListTransactions_Call

ListTransactions is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) ListTransactionsWithStatuses

func (_e *Database_Expecter) ListTransactionsWithStatuses(ctx interface{}, statuses ...interface{}) *Database_ListTransactionsWithStatuses_Call

ListTransactionsWithStatuses is a helper method to define mock.On call

  • ctx context.Context
  • statuses ...arangodb.TransactionStatus

func (*Database_Expecter) Name

Name is a helper method to define mock.On call

func (*Database_Expecter) Query

func (_e *Database_Expecter) Query(ctx interface{}, query interface{}, opts interface{}) *Database_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • opts *arangodb.QueryOptions

func (*Database_Expecter) QueryBatch

func (_e *Database_Expecter) QueryBatch(ctx interface{}, query interface{}, opts interface{}, result interface{}) *Database_QueryBatch_Call

QueryBatch is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • opts *arangodb.QueryOptions
  • result interface{}

func (*Database_Expecter) Remove

func (_e *Database_Expecter) Remove(ctx interface{}) *Database_Remove_Call

Remove is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) Transaction

func (_e *Database_Expecter) Transaction(ctx interface{}, id interface{}) *Database_Transaction_Call

Transaction is a helper method to define mock.On call

  • ctx context.Context
  • id arangodb.TransactionID

func (*Database_Expecter) TransactionJS

func (_e *Database_Expecter) TransactionJS(ctx interface{}, options interface{}) *Database_TransactionJS_Call

TransactionJS is a helper method to define mock.On call

  • ctx context.Context
  • options arangodb.TransactionJSOptions

func (*Database_Expecter) ValidateQuery

func (_e *Database_Expecter) ValidateQuery(ctx interface{}, query interface{}) *Database_ValidateQuery_Call

ValidateQuery is a helper method to define mock.On call

  • ctx context.Context
  • query string

func (*Database_Expecter) View

func (_e *Database_Expecter) View(ctx interface{}, name interface{}) *Database_View_Call

View is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Database_Expecter) ViewExists

func (_e *Database_Expecter) ViewExists(ctx interface{}, name interface{}) *Database_ViewExists_Call

ViewExists is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Database_Expecter) Views

func (_e *Database_Expecter) Views(ctx interface{}) *Database_Views_Call

Views is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) ViewsAll

func (_e *Database_Expecter) ViewsAll(ctx interface{}) *Database_ViewsAll_Call

ViewsAll is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) WithTransaction

func (_e *Database_Expecter) WithTransaction(ctx interface{}, cols interface{}, opts interface{}, commitOptions interface{}, abortOptions interface{}, w interface{}) *Database_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context
  • cols arangodb.TransactionCollections
  • opts *arangodb.BeginTransactionOptions
  • commitOptions *arangodb.CommitTransactionOptions
  • abortOptions *arangodb.AbortTransactionOptions
  • w arangodb.TransactionWrap

type Database_ExplainQuery_Call

type Database_ExplainQuery_Call struct {
	*mock.Call
}

Database_ExplainQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExplainQuery'

func (*Database_ExplainQuery_Call) Return

func (*Database_ExplainQuery_Call) Run

func (_c *Database_ExplainQuery_Call) Run(run func(ctx context.Context, query string, bindVars map[string]interface{}, opts *arangodb.ExplainQueryOptions)) *Database_ExplainQuery_Call

func (*Database_ExplainQuery_Call) RunAndReturn

type Database_GetCollection_Call

type Database_GetCollection_Call struct {
	*mock.Call
}

Database_GetCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollection'

func (*Database_GetCollection_Call) Return

func (*Database_GetCollection_Call) Run

type Database_GetEdges_Call

type Database_GetEdges_Call struct {
	*mock.Call
}

Database_GetEdges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEdges'

func (*Database_GetEdges_Call) Return

func (*Database_GetEdges_Call) Run

func (_c *Database_GetEdges_Call) Run(run func(ctx context.Context, name string, vertex string, options *arangodb.GetEdgesOptions)) *Database_GetEdges_Call

func (*Database_GetEdges_Call) RunAndReturn

type Database_GraphExists_Call

type Database_GraphExists_Call struct {
	*mock.Call
}

Database_GraphExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GraphExists'

func (*Database_GraphExists_Call) Return

func (*Database_GraphExists_Call) Run

func (*Database_GraphExists_Call) RunAndReturn

type Database_Graph_Call

type Database_Graph_Call struct {
	*mock.Call
}

Database_Graph_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Graph'

func (*Database_Graph_Call) Return

func (*Database_Graph_Call) Run

func (_c *Database_Graph_Call) Run(run func(ctx context.Context, name string, options *arangodb.GetGraphOptions)) *Database_Graph_Call

func (*Database_Graph_Call) RunAndReturn

type Database_Graphs_Call

type Database_Graphs_Call struct {
	*mock.Call
}

Database_Graphs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Graphs'

func (*Database_Graphs_Call) Return

func (*Database_Graphs_Call) Run

func (_c *Database_Graphs_Call) Run(run func(ctx context.Context)) *Database_Graphs_Call

func (*Database_Graphs_Call) RunAndReturn

type Database_Info_Call

type Database_Info_Call struct {
	*mock.Call
}

Database_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*Database_Info_Call) Return

func (*Database_Info_Call) Run

func (_c *Database_Info_Call) Run(run func(ctx context.Context)) *Database_Info_Call

func (*Database_Info_Call) RunAndReturn

type Database_ListTransactionsWithStatuses_Call

type Database_ListTransactionsWithStatuses_Call struct {
	*mock.Call
}

Database_ListTransactionsWithStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTransactionsWithStatuses'

func (*Database_ListTransactionsWithStatuses_Call) Return

func (*Database_ListTransactionsWithStatuses_Call) Run

func (*Database_ListTransactionsWithStatuses_Call) RunAndReturn

type Database_ListTransactions_Call

type Database_ListTransactions_Call struct {
	*mock.Call
}

Database_ListTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTransactions'

func (*Database_ListTransactions_Call) Return

func (*Database_ListTransactions_Call) Run

func (*Database_ListTransactions_Call) RunAndReturn

type Database_Name_Call

type Database_Name_Call struct {
	*mock.Call
}

Database_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Database_Name_Call) Return

func (_c *Database_Name_Call) Return(_a0 string) *Database_Name_Call

func (*Database_Name_Call) Run

func (_c *Database_Name_Call) Run(run func()) *Database_Name_Call

func (*Database_Name_Call) RunAndReturn

func (_c *Database_Name_Call) RunAndReturn(run func() string) *Database_Name_Call

type Database_QueryBatch_Call

type Database_QueryBatch_Call struct {
	*mock.Call
}

Database_QueryBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryBatch'

func (*Database_QueryBatch_Call) Return

func (*Database_QueryBatch_Call) Run

func (_c *Database_QueryBatch_Call) Run(run func(ctx context.Context, query string, opts *arangodb.QueryOptions, result interface{})) *Database_QueryBatch_Call

func (*Database_QueryBatch_Call) RunAndReturn

type Database_Query_Call

type Database_Query_Call struct {
	*mock.Call
}

Database_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*Database_Query_Call) Return

func (*Database_Query_Call) Run

func (_c *Database_Query_Call) Run(run func(ctx context.Context, query string, opts *arangodb.QueryOptions)) *Database_Query_Call

func (*Database_Query_Call) RunAndReturn

type Database_Remove_Call

type Database_Remove_Call struct {
	*mock.Call
}

Database_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*Database_Remove_Call) Return

func (*Database_Remove_Call) Run

func (_c *Database_Remove_Call) Run(run func(ctx context.Context)) *Database_Remove_Call

func (*Database_Remove_Call) RunAndReturn

func (_c *Database_Remove_Call) RunAndReturn(run func(context.Context) error) *Database_Remove_Call

type Database_TransactionJS_Call

type Database_TransactionJS_Call struct {
	*mock.Call
}

Database_TransactionJS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionJS'

func (*Database_TransactionJS_Call) Return

func (_c *Database_TransactionJS_Call) Return(_a0 interface{}, _a1 error) *Database_TransactionJS_Call

func (*Database_TransactionJS_Call) Run

func (*Database_TransactionJS_Call) RunAndReturn

type Database_Transaction_Call

type Database_Transaction_Call struct {
	*mock.Call
}

Database_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'

func (*Database_Transaction_Call) Return

func (*Database_Transaction_Call) Run

func (*Database_Transaction_Call) RunAndReturn

type Database_ValidateQuery_Call

type Database_ValidateQuery_Call struct {
	*mock.Call
}

Database_ValidateQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateQuery'

func (*Database_ValidateQuery_Call) Return

func (*Database_ValidateQuery_Call) Run

func (*Database_ValidateQuery_Call) RunAndReturn

type Database_ViewExists_Call

type Database_ViewExists_Call struct {
	*mock.Call
}

Database_ViewExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ViewExists'

func (*Database_ViewExists_Call) Return

func (*Database_ViewExists_Call) Run

func (*Database_ViewExists_Call) RunAndReturn

type Database_View_Call

type Database_View_Call struct {
	*mock.Call
}

Database_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'

func (*Database_View_Call) Return

func (*Database_View_Call) Run

func (_c *Database_View_Call) Run(run func(ctx context.Context, name string)) *Database_View_Call

func (*Database_View_Call) RunAndReturn

func (_c *Database_View_Call) RunAndReturn(run func(context.Context, string) (arangodb.View, error)) *Database_View_Call

type Database_ViewsAll_Call

type Database_ViewsAll_Call struct {
	*mock.Call
}

Database_ViewsAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ViewsAll'

func (*Database_ViewsAll_Call) Return

func (*Database_ViewsAll_Call) Run

func (*Database_ViewsAll_Call) RunAndReturn

type Database_Views_Call

type Database_Views_Call struct {
	*mock.Call
}

Database_Views_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Views'

func (*Database_Views_Call) Return

func (*Database_Views_Call) Run

func (_c *Database_Views_Call) Run(run func(ctx context.Context)) *Database_Views_Call

func (*Database_Views_Call) RunAndReturn

type Database_WithTransaction_Call

type Database_WithTransaction_Call struct {
	*mock.Call
}

Database_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'

func (*Database_WithTransaction_Call) Return

Jump to

Keyboard shortcuts

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