mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend

func NewBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *Backend

NewBackend creates a new instance of Backend. 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 (*Backend) AddMembersToGroup

func (_m *Backend) AddMembersToGroup(ctx context.Context, groupID string, memberID []string) error

AddMembersToGroup provides a mock function with given fields: ctx, groupID, memberID

func (*Backend) CreateGroup

func (_m *Backend) CreateGroup(ctx context.Context, group libregraph.Group) (*libregraph.Group, error)

CreateGroup provides a mock function with given fields: ctx, group

func (*Backend) CreateUser

func (_m *Backend) CreateUser(ctx context.Context, user libregraph.User) (*libregraph.User, error)

CreateUser provides a mock function with given fields: ctx, user

func (*Backend) DeleteGroup

func (_m *Backend) DeleteGroup(ctx context.Context, id string) error

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

func (*Backend) DeleteUser

func (_m *Backend) DeleteUser(ctx context.Context, nameOrID string) error

DeleteUser provides a mock function with given fields: ctx, nameOrID

func (*Backend) EXPECT

func (_m *Backend) EXPECT() *Backend_Expecter

func (*Backend) FilterUsers

func (_m *Backend) FilterUsers(ctx context.Context, oreq *godata.GoDataRequest, filter *godata.ParseNode) ([]*libregraph.User, error)

FilterUsers provides a mock function with given fields: ctx, oreq, filter

func (*Backend) GetGroup

func (_m *Backend) GetGroup(ctx context.Context, nameOrID string, queryParam url.Values) (*libregraph.Group, error)

GetGroup provides a mock function with given fields: ctx, nameOrID, queryParam

func (*Backend) GetGroupMembers

func (_m *Backend) GetGroupMembers(ctx context.Context, id string, oreq *godata.GoDataRequest) ([]*libregraph.User, error)

GetGroupMembers provides a mock function with given fields: ctx, id, oreq

func (*Backend) GetGroups

func (_m *Backend) GetGroups(ctx context.Context, oreq *godata.GoDataRequest) ([]*libregraph.Group, error)

GetGroups provides a mock function with given fields: ctx, oreq

func (*Backend) GetUser

func (_m *Backend) GetUser(ctx context.Context, nameOrID string, oreq *godata.GoDataRequest) (*libregraph.User, error)

GetUser provides a mock function with given fields: ctx, nameOrID, oreq

func (*Backend) GetUsers

func (_m *Backend) GetUsers(ctx context.Context, oreq *godata.GoDataRequest) ([]*libregraph.User, error)

GetUsers provides a mock function with given fields: ctx, oreq

func (*Backend) RemoveMemberFromGroup

func (_m *Backend) RemoveMemberFromGroup(ctx context.Context, groupID string, memberID string) error

RemoveMemberFromGroup provides a mock function with given fields: ctx, groupID, memberID

func (*Backend) UpdateGroupName

func (_m *Backend) UpdateGroupName(ctx context.Context, groupID string, groupName string) error

UpdateGroupName provides a mock function with given fields: ctx, groupID, groupName

func (*Backend) UpdateLastSignInDate

func (_m *Backend) UpdateLastSignInDate(ctx context.Context, userID string, timestamp time.Time) error

UpdateLastSignInDate provides a mock function with given fields: ctx, userID, timestamp

func (*Backend) UpdateUser

func (_m *Backend) UpdateUser(ctx context.Context, nameOrID string, user libregraph.UserUpdate) (*libregraph.User, error)

UpdateUser provides a mock function with given fields: ctx, nameOrID, user

type Backend_AddMembersToGroup_Call

type Backend_AddMembersToGroup_Call struct {
	*mock.Call
}

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

func (*Backend_AddMembersToGroup_Call) Return

func (*Backend_AddMembersToGroup_Call) Run

func (_c *Backend_AddMembersToGroup_Call) Run(run func(ctx context.Context, groupID string, memberID []string)) *Backend_AddMembersToGroup_Call

func (*Backend_AddMembersToGroup_Call) RunAndReturn

type Backend_CreateGroup_Call

type Backend_CreateGroup_Call struct {
	*mock.Call
}

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

func (*Backend_CreateGroup_Call) Return

func (*Backend_CreateGroup_Call) Run

func (*Backend_CreateGroup_Call) RunAndReturn

type Backend_CreateUser_Call

type Backend_CreateUser_Call struct {
	*mock.Call
}

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

func (*Backend_CreateUser_Call) Return

func (*Backend_CreateUser_Call) Run

func (*Backend_CreateUser_Call) RunAndReturn

type Backend_DeleteGroup_Call

type Backend_DeleteGroup_Call struct {
	*mock.Call
}

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

func (*Backend_DeleteGroup_Call) Return

func (*Backend_DeleteGroup_Call) Run

func (*Backend_DeleteGroup_Call) RunAndReturn

type Backend_DeleteUser_Call

type Backend_DeleteUser_Call struct {
	*mock.Call
}

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

func (*Backend_DeleteUser_Call) Return

func (*Backend_DeleteUser_Call) Run

func (_c *Backend_DeleteUser_Call) Run(run func(ctx context.Context, nameOrID string)) *Backend_DeleteUser_Call

func (*Backend_DeleteUser_Call) RunAndReturn

type Backend_Expecter

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

func (*Backend_Expecter) AddMembersToGroup

func (_e *Backend_Expecter) AddMembersToGroup(ctx interface{}, groupID interface{}, memberID interface{}) *Backend_AddMembersToGroup_Call

AddMembersToGroup is a helper method to define mock.On call

  • ctx context.Context
  • groupID string
  • memberID []string

func (*Backend_Expecter) CreateGroup

func (_e *Backend_Expecter) CreateGroup(ctx interface{}, group interface{}) *Backend_CreateGroup_Call

CreateGroup is a helper method to define mock.On call

  • ctx context.Context
  • group libregraph.Group

func (*Backend_Expecter) CreateUser

func (_e *Backend_Expecter) CreateUser(ctx interface{}, user interface{}) *Backend_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • user libregraph.User

func (*Backend_Expecter) DeleteGroup

func (_e *Backend_Expecter) DeleteGroup(ctx interface{}, id interface{}) *Backend_DeleteGroup_Call

DeleteGroup is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Backend_Expecter) DeleteUser

func (_e *Backend_Expecter) DeleteUser(ctx interface{}, nameOrID interface{}) *Backend_DeleteUser_Call

DeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string

func (*Backend_Expecter) FilterUsers

func (_e *Backend_Expecter) FilterUsers(ctx interface{}, oreq interface{}, filter interface{}) *Backend_FilterUsers_Call

FilterUsers is a helper method to define mock.On call

  • ctx context.Context
  • oreq *godata.GoDataRequest
  • filter *godata.ParseNode

func (*Backend_Expecter) GetGroup

func (_e *Backend_Expecter) GetGroup(ctx interface{}, nameOrID interface{}, queryParam interface{}) *Backend_GetGroup_Call

GetGroup is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string
  • queryParam url.Values

func (*Backend_Expecter) GetGroupMembers

func (_e *Backend_Expecter) GetGroupMembers(ctx interface{}, id interface{}, oreq interface{}) *Backend_GetGroupMembers_Call

GetGroupMembers is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • oreq *godata.GoDataRequest

func (*Backend_Expecter) GetGroups

func (_e *Backend_Expecter) GetGroups(ctx interface{}, oreq interface{}) *Backend_GetGroups_Call

GetGroups is a helper method to define mock.On call

  • ctx context.Context
  • oreq *godata.GoDataRequest

func (*Backend_Expecter) GetUser

func (_e *Backend_Expecter) GetUser(ctx interface{}, nameOrID interface{}, oreq interface{}) *Backend_GetUser_Call

GetUser is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string
  • oreq *godata.GoDataRequest

func (*Backend_Expecter) GetUsers

func (_e *Backend_Expecter) GetUsers(ctx interface{}, oreq interface{}) *Backend_GetUsers_Call

GetUsers is a helper method to define mock.On call

  • ctx context.Context
  • oreq *godata.GoDataRequest

func (*Backend_Expecter) RemoveMemberFromGroup

func (_e *Backend_Expecter) RemoveMemberFromGroup(ctx interface{}, groupID interface{}, memberID interface{}) *Backend_RemoveMemberFromGroup_Call

RemoveMemberFromGroup is a helper method to define mock.On call

  • ctx context.Context
  • groupID string
  • memberID string

func (*Backend_Expecter) UpdateGroupName

func (_e *Backend_Expecter) UpdateGroupName(ctx interface{}, groupID interface{}, groupName interface{}) *Backend_UpdateGroupName_Call

UpdateGroupName is a helper method to define mock.On call

  • ctx context.Context
  • groupID string
  • groupName string

func (*Backend_Expecter) UpdateLastSignInDate

func (_e *Backend_Expecter) UpdateLastSignInDate(ctx interface{}, userID interface{}, timestamp interface{}) *Backend_UpdateLastSignInDate_Call

UpdateLastSignInDate is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • timestamp time.Time

func (*Backend_Expecter) UpdateUser

func (_e *Backend_Expecter) UpdateUser(ctx interface{}, nameOrID interface{}, user interface{}) *Backend_UpdateUser_Call

UpdateUser is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string
  • user libregraph.UserUpdate

type Backend_FilterUsers_Call

type Backend_FilterUsers_Call struct {
	*mock.Call
}

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

func (*Backend_FilterUsers_Call) Return

func (*Backend_FilterUsers_Call) Run

func (*Backend_FilterUsers_Call) RunAndReturn

type Backend_GetGroupMembers_Call

type Backend_GetGroupMembers_Call struct {
	*mock.Call
}

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

func (*Backend_GetGroupMembers_Call) Return

func (*Backend_GetGroupMembers_Call) Run

func (*Backend_GetGroupMembers_Call) RunAndReturn

type Backend_GetGroup_Call

type Backend_GetGroup_Call struct {
	*mock.Call
}

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

func (*Backend_GetGroup_Call) Return

func (*Backend_GetGroup_Call) Run

func (_c *Backend_GetGroup_Call) Run(run func(ctx context.Context, nameOrID string, queryParam url.Values)) *Backend_GetGroup_Call

func (*Backend_GetGroup_Call) RunAndReturn

type Backend_GetGroups_Call

type Backend_GetGroups_Call struct {
	*mock.Call
}

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

func (*Backend_GetGroups_Call) Return

func (*Backend_GetGroups_Call) Run

func (*Backend_GetGroups_Call) RunAndReturn

type Backend_GetUser_Call

type Backend_GetUser_Call struct {
	*mock.Call
}

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

func (*Backend_GetUser_Call) Return

func (*Backend_GetUser_Call) Run

func (_c *Backend_GetUser_Call) Run(run func(ctx context.Context, nameOrID string, oreq *godata.GoDataRequest)) *Backend_GetUser_Call

func (*Backend_GetUser_Call) RunAndReturn

type Backend_GetUsers_Call

type Backend_GetUsers_Call struct {
	*mock.Call
}

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

func (*Backend_GetUsers_Call) Return

func (*Backend_GetUsers_Call) Run

func (*Backend_GetUsers_Call) RunAndReturn

type Backend_RemoveMemberFromGroup_Call

type Backend_RemoveMemberFromGroup_Call struct {
	*mock.Call
}

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

func (*Backend_RemoveMemberFromGroup_Call) Return

func (*Backend_RemoveMemberFromGroup_Call) Run

func (*Backend_RemoveMemberFromGroup_Call) RunAndReturn

type Backend_UpdateGroupName_Call

type Backend_UpdateGroupName_Call struct {
	*mock.Call
}

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

func (*Backend_UpdateGroupName_Call) Return

func (*Backend_UpdateGroupName_Call) Run

func (_c *Backend_UpdateGroupName_Call) Run(run func(ctx context.Context, groupID string, groupName string)) *Backend_UpdateGroupName_Call

func (*Backend_UpdateGroupName_Call) RunAndReturn

type Backend_UpdateLastSignInDate_Call

type Backend_UpdateLastSignInDate_Call struct {
	*mock.Call
}

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

func (*Backend_UpdateLastSignInDate_Call) Return

func (*Backend_UpdateLastSignInDate_Call) Run

func (*Backend_UpdateLastSignInDate_Call) RunAndReturn

type Backend_UpdateUser_Call

type Backend_UpdateUser_Call struct {
	*mock.Call
}

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

func (*Backend_UpdateUser_Call) Return

func (*Backend_UpdateUser_Call) Run

func (*Backend_UpdateUser_Call) RunAndReturn

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

func (_m *Client) Add(_a0 *ldap.AddRequest) error

Add provides a mock function with given fields: _a0

func (*Client) Bind

func (_m *Client) Bind(username string, password string) error

Bind provides a mock function with given fields: username, password

func (*Client) Close

func (_m *Client) Close() error

Close provides a mock function with given fields:

func (*Client) Compare

func (_m *Client) Compare(dn string, attribute string, value string) (bool, error)

Compare provides a mock function with given fields: dn, attribute, value

func (*Client) Del

func (_m *Client) Del(_a0 *ldap.DelRequest) error

Del provides a mock function with given fields: _a0

func (*Client) DirSync

func (_m *Client) DirSync(searchRequest *ldap.SearchRequest, flags int64, maxAttrCount int64, cookie []byte) (*ldap.SearchResult, error)

DirSync provides a mock function with given fields: searchRequest, flags, maxAttrCount, cookie

func (*Client) DirSyncAsync

func (_m *Client) DirSyncAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, flags int64, maxAttrCount int64, cookie []byte) ldap.Response

DirSyncAsync provides a mock function with given fields: ctx, searchRequest, bufferSize, flags, maxAttrCount, cookie

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Extended

func (_m *Client) Extended(_a0 *ldap.ExtendedRequest) (*ldap.ExtendedResponse, error)

Extended provides a mock function with given fields: _a0

func (*Client) ExternalBind

func (_m *Client) ExternalBind() error

ExternalBind provides a mock function with given fields:

func (*Client) GetLastError

func (_m *Client) GetLastError() error

GetLastError provides a mock function with given fields:

func (*Client) IsClosing

func (_m *Client) IsClosing() bool

IsClosing provides a mock function with given fields:

func (*Client) Modify

func (_m *Client) Modify(_a0 *ldap.ModifyRequest) error

Modify provides a mock function with given fields: _a0

func (*Client) ModifyDN

func (_m *Client) ModifyDN(_a0 *ldap.ModifyDNRequest) error

ModifyDN provides a mock function with given fields: _a0

func (*Client) ModifyWithResult

func (_m *Client) ModifyWithResult(_a0 *ldap.ModifyRequest) (*ldap.ModifyResult, error)

ModifyWithResult provides a mock function with given fields: _a0

func (*Client) NTLMUnauthenticatedBind

func (_m *Client) NTLMUnauthenticatedBind(domain string, username string) error

NTLMUnauthenticatedBind provides a mock function with given fields: domain, username

func (*Client) PasswordModify

func (_m *Client) PasswordModify(_a0 *ldap.PasswordModifyRequest) (*ldap.PasswordModifyResult, error)

PasswordModify provides a mock function with given fields: _a0

func (*Client) Search

func (_m *Client) Search(_a0 *ldap.SearchRequest) (*ldap.SearchResult, error)

Search provides a mock function with given fields: _a0

func (*Client) SearchAsync

func (_m *Client) SearchAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int) ldap.Response

SearchAsync provides a mock function with given fields: ctx, searchRequest, bufferSize

func (*Client) SearchWithPaging

func (_m *Client) SearchWithPaging(searchRequest *ldap.SearchRequest, pagingSize uint32) (*ldap.SearchResult, error)

SearchWithPaging provides a mock function with given fields: searchRequest, pagingSize

func (*Client) SetTimeout

func (_m *Client) SetTimeout(_a0 time.Duration)

SetTimeout provides a mock function with given fields: _a0

func (*Client) SimpleBind

func (_m *Client) SimpleBind(_a0 *ldap.SimpleBindRequest) (*ldap.SimpleBindResult, error)

SimpleBind provides a mock function with given fields: _a0

func (*Client) Start

func (_m *Client) Start()

Start provides a mock function with given fields:

func (*Client) StartTLS

func (_m *Client) StartTLS(_a0 *tls.Config) error

StartTLS provides a mock function with given fields: _a0

func (*Client) Syncrepl

func (_m *Client) Syncrepl(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, mode ldap.ControlSyncRequestMode, cookie []byte, reloadHint bool) ldap.Response

Syncrepl provides a mock function with given fields: ctx, searchRequest, bufferSize, mode, cookie, reloadHint

func (*Client) TLSConnectionState

func (_m *Client) TLSConnectionState() (tls.ConnectionState, bool)

TLSConnectionState provides a mock function with given fields:

func (*Client) UnauthenticatedBind

func (_m *Client) UnauthenticatedBind(username string) error

UnauthenticatedBind provides a mock function with given fields: username

func (*Client) Unbind

func (_m *Client) Unbind() error

Unbind provides a mock function with given fields:

type Client_Add_Call

type Client_Add_Call struct {
	*mock.Call
}

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

func (*Client_Add_Call) Return

func (_c *Client_Add_Call) Return(_a0 error) *Client_Add_Call

func (*Client_Add_Call) Run

func (_c *Client_Add_Call) Run(run func(_a0 *ldap.AddRequest)) *Client_Add_Call

func (*Client_Add_Call) RunAndReturn

func (_c *Client_Add_Call) RunAndReturn(run func(*ldap.AddRequest) error) *Client_Add_Call

type Client_Bind_Call

type Client_Bind_Call struct {
	*mock.Call
}

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

func (*Client_Bind_Call) Return

func (_c *Client_Bind_Call) Return(_a0 error) *Client_Bind_Call

func (*Client_Bind_Call) Run

func (_c *Client_Bind_Call) Run(run func(username string, password string)) *Client_Bind_Call

func (*Client_Bind_Call) RunAndReturn

func (_c *Client_Bind_Call) RunAndReturn(run func(string, string) error) *Client_Bind_Call

type Client_Close_Call

type Client_Close_Call struct {
	*mock.Call
}

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

func (*Client_Close_Call) Return

func (_c *Client_Close_Call) Return(_a0 error) *Client_Close_Call

func (*Client_Close_Call) Run

func (_c *Client_Close_Call) Run(run func()) *Client_Close_Call

func (*Client_Close_Call) RunAndReturn

func (_c *Client_Close_Call) RunAndReturn(run func() error) *Client_Close_Call

type Client_Compare_Call

type Client_Compare_Call struct {
	*mock.Call
}

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

func (*Client_Compare_Call) Return

func (_c *Client_Compare_Call) Return(_a0 bool, _a1 error) *Client_Compare_Call

func (*Client_Compare_Call) Run

func (_c *Client_Compare_Call) Run(run func(dn string, attribute string, value string)) *Client_Compare_Call

func (*Client_Compare_Call) RunAndReturn

func (_c *Client_Compare_Call) RunAndReturn(run func(string, string, string) (bool, error)) *Client_Compare_Call

type Client_Del_Call

type Client_Del_Call struct {
	*mock.Call
}

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

func (*Client_Del_Call) Return

func (_c *Client_Del_Call) Return(_a0 error) *Client_Del_Call

func (*Client_Del_Call) Run

func (_c *Client_Del_Call) Run(run func(_a0 *ldap.DelRequest)) *Client_Del_Call

func (*Client_Del_Call) RunAndReturn

func (_c *Client_Del_Call) RunAndReturn(run func(*ldap.DelRequest) error) *Client_Del_Call

type Client_DirSyncAsync_Call

type Client_DirSyncAsync_Call struct {
	*mock.Call
}

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

func (*Client_DirSyncAsync_Call) Return

func (*Client_DirSyncAsync_Call) Run

func (_c *Client_DirSyncAsync_Call) Run(run func(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, flags int64, maxAttrCount int64, cookie []byte)) *Client_DirSyncAsync_Call

func (*Client_DirSyncAsync_Call) RunAndReturn

type Client_DirSync_Call

type Client_DirSync_Call struct {
	*mock.Call
}

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

func (*Client_DirSync_Call) Return

func (*Client_DirSync_Call) Run

func (_c *Client_DirSync_Call) Run(run func(searchRequest *ldap.SearchRequest, flags int64, maxAttrCount int64, cookie []byte)) *Client_DirSync_Call

func (*Client_DirSync_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) Add

func (_e *Client_Expecter) Add(_a0 interface{}) *Client_Add_Call

Add is a helper method to define mock.On call

  • _a0 *ldap.AddRequest

func (*Client_Expecter) Bind

func (_e *Client_Expecter) Bind(username interface{}, password interface{}) *Client_Bind_Call

Bind is a helper method to define mock.On call

  • username string
  • password string

func (*Client_Expecter) Close

func (_e *Client_Expecter) Close() *Client_Close_Call

Close is a helper method to define mock.On call

func (*Client_Expecter) Compare

func (_e *Client_Expecter) Compare(dn interface{}, attribute interface{}, value interface{}) *Client_Compare_Call

Compare is a helper method to define mock.On call

  • dn string
  • attribute string
  • value string

func (*Client_Expecter) Del

func (_e *Client_Expecter) Del(_a0 interface{}) *Client_Del_Call

Del is a helper method to define mock.On call

  • _a0 *ldap.DelRequest

func (*Client_Expecter) DirSync

func (_e *Client_Expecter) DirSync(searchRequest interface{}, flags interface{}, maxAttrCount interface{}, cookie interface{}) *Client_DirSync_Call

DirSync is a helper method to define mock.On call

  • searchRequest *ldap.SearchRequest
  • flags int64
  • maxAttrCount int64
  • cookie []byte

func (*Client_Expecter) DirSyncAsync

func (_e *Client_Expecter) DirSyncAsync(ctx interface{}, searchRequest interface{}, bufferSize interface{}, flags interface{}, maxAttrCount interface{}, cookie interface{}) *Client_DirSyncAsync_Call

DirSyncAsync is a helper method to define mock.On call

  • ctx context.Context
  • searchRequest *ldap.SearchRequest
  • bufferSize int
  • flags int64
  • maxAttrCount int64
  • cookie []byte

func (*Client_Expecter) Extended

func (_e *Client_Expecter) Extended(_a0 interface{}) *Client_Extended_Call

Extended is a helper method to define mock.On call

  • _a0 *ldap.ExtendedRequest

func (*Client_Expecter) ExternalBind

func (_e *Client_Expecter) ExternalBind() *Client_ExternalBind_Call

ExternalBind is a helper method to define mock.On call

func (*Client_Expecter) GetLastError

func (_e *Client_Expecter) GetLastError() *Client_GetLastError_Call

GetLastError is a helper method to define mock.On call

func (*Client_Expecter) IsClosing

func (_e *Client_Expecter) IsClosing() *Client_IsClosing_Call

IsClosing is a helper method to define mock.On call

func (*Client_Expecter) Modify

func (_e *Client_Expecter) Modify(_a0 interface{}) *Client_Modify_Call

Modify is a helper method to define mock.On call

  • _a0 *ldap.ModifyRequest

func (*Client_Expecter) ModifyDN

func (_e *Client_Expecter) ModifyDN(_a0 interface{}) *Client_ModifyDN_Call

ModifyDN is a helper method to define mock.On call

  • _a0 *ldap.ModifyDNRequest

func (*Client_Expecter) ModifyWithResult

func (_e *Client_Expecter) ModifyWithResult(_a0 interface{}) *Client_ModifyWithResult_Call

ModifyWithResult is a helper method to define mock.On call

  • _a0 *ldap.ModifyRequest

func (*Client_Expecter) NTLMUnauthenticatedBind

func (_e *Client_Expecter) NTLMUnauthenticatedBind(domain interface{}, username interface{}) *Client_NTLMUnauthenticatedBind_Call

NTLMUnauthenticatedBind is a helper method to define mock.On call

  • domain string
  • username string

func (*Client_Expecter) PasswordModify

func (_e *Client_Expecter) PasswordModify(_a0 interface{}) *Client_PasswordModify_Call

PasswordModify is a helper method to define mock.On call

  • _a0 *ldap.PasswordModifyRequest

func (*Client_Expecter) Search

func (_e *Client_Expecter) Search(_a0 interface{}) *Client_Search_Call

Search is a helper method to define mock.On call

  • _a0 *ldap.SearchRequest

func (*Client_Expecter) SearchAsync

func (_e *Client_Expecter) SearchAsync(ctx interface{}, searchRequest interface{}, bufferSize interface{}) *Client_SearchAsync_Call

SearchAsync is a helper method to define mock.On call

  • ctx context.Context
  • searchRequest *ldap.SearchRequest
  • bufferSize int

func (*Client_Expecter) SearchWithPaging

func (_e *Client_Expecter) SearchWithPaging(searchRequest interface{}, pagingSize interface{}) *Client_SearchWithPaging_Call

SearchWithPaging is a helper method to define mock.On call

  • searchRequest *ldap.SearchRequest
  • pagingSize uint32

func (*Client_Expecter) SetTimeout

func (_e *Client_Expecter) SetTimeout(_a0 interface{}) *Client_SetTimeout_Call

SetTimeout is a helper method to define mock.On call

  • _a0 time.Duration

func (*Client_Expecter) SimpleBind

func (_e *Client_Expecter) SimpleBind(_a0 interface{}) *Client_SimpleBind_Call

SimpleBind is a helper method to define mock.On call

  • _a0 *ldap.SimpleBindRequest

func (*Client_Expecter) Start

func (_e *Client_Expecter) Start() *Client_Start_Call

Start is a helper method to define mock.On call

func (*Client_Expecter) StartTLS

func (_e *Client_Expecter) StartTLS(_a0 interface{}) *Client_StartTLS_Call

StartTLS is a helper method to define mock.On call

  • _a0 *tls.Config

func (*Client_Expecter) Syncrepl

func (_e *Client_Expecter) Syncrepl(ctx interface{}, searchRequest interface{}, bufferSize interface{}, mode interface{}, cookie interface{}, reloadHint interface{}) *Client_Syncrepl_Call

Syncrepl is a helper method to define mock.On call

  • ctx context.Context
  • searchRequest *ldap.SearchRequest
  • bufferSize int
  • mode ldap.ControlSyncRequestMode
  • cookie []byte
  • reloadHint bool

func (*Client_Expecter) TLSConnectionState

func (_e *Client_Expecter) TLSConnectionState() *Client_TLSConnectionState_Call

TLSConnectionState is a helper method to define mock.On call

func (*Client_Expecter) UnauthenticatedBind

func (_e *Client_Expecter) UnauthenticatedBind(username interface{}) *Client_UnauthenticatedBind_Call

UnauthenticatedBind is a helper method to define mock.On call

  • username string

func (*Client_Expecter) Unbind

func (_e *Client_Expecter) Unbind() *Client_Unbind_Call

Unbind is a helper method to define mock.On call

type Client_Extended_Call

type Client_Extended_Call struct {
	*mock.Call
}

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

func (*Client_Extended_Call) Return

func (*Client_Extended_Call) Run

func (*Client_Extended_Call) RunAndReturn

type Client_ExternalBind_Call

type Client_ExternalBind_Call struct {
	*mock.Call
}

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

func (*Client_ExternalBind_Call) Return

func (*Client_ExternalBind_Call) Run

func (*Client_ExternalBind_Call) RunAndReturn

func (_c *Client_ExternalBind_Call) RunAndReturn(run func() error) *Client_ExternalBind_Call

type Client_GetLastError_Call

type Client_GetLastError_Call struct {
	*mock.Call
}

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

func (*Client_GetLastError_Call) Return

func (*Client_GetLastError_Call) Run

func (*Client_GetLastError_Call) RunAndReturn

func (_c *Client_GetLastError_Call) RunAndReturn(run func() error) *Client_GetLastError_Call

type Client_IsClosing_Call

type Client_IsClosing_Call struct {
	*mock.Call
}

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

func (*Client_IsClosing_Call) Return

func (*Client_IsClosing_Call) Run

func (_c *Client_IsClosing_Call) Run(run func()) *Client_IsClosing_Call

func (*Client_IsClosing_Call) RunAndReturn

func (_c *Client_IsClosing_Call) RunAndReturn(run func() bool) *Client_IsClosing_Call

type Client_ModifyDN_Call

type Client_ModifyDN_Call struct {
	*mock.Call
}

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

func (*Client_ModifyDN_Call) Return

func (*Client_ModifyDN_Call) Run

func (*Client_ModifyDN_Call) RunAndReturn

func (_c *Client_ModifyDN_Call) RunAndReturn(run func(*ldap.ModifyDNRequest) error) *Client_ModifyDN_Call

type Client_ModifyWithResult_Call

type Client_ModifyWithResult_Call struct {
	*mock.Call
}

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

func (*Client_ModifyWithResult_Call) Return

func (*Client_ModifyWithResult_Call) Run

func (*Client_ModifyWithResult_Call) RunAndReturn

type Client_Modify_Call

type Client_Modify_Call struct {
	*mock.Call
}

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

func (*Client_Modify_Call) Return

func (_c *Client_Modify_Call) Return(_a0 error) *Client_Modify_Call

func (*Client_Modify_Call) Run

func (_c *Client_Modify_Call) Run(run func(_a0 *ldap.ModifyRequest)) *Client_Modify_Call

func (*Client_Modify_Call) RunAndReturn

func (_c *Client_Modify_Call) RunAndReturn(run func(*ldap.ModifyRequest) error) *Client_Modify_Call

type Client_NTLMUnauthenticatedBind_Call

type Client_NTLMUnauthenticatedBind_Call struct {
	*mock.Call
}

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

func (*Client_NTLMUnauthenticatedBind_Call) Return

func (*Client_NTLMUnauthenticatedBind_Call) Run

func (*Client_NTLMUnauthenticatedBind_Call) RunAndReturn

type Client_PasswordModify_Call

type Client_PasswordModify_Call struct {
	*mock.Call
}

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

func (*Client_PasswordModify_Call) Return

func (*Client_PasswordModify_Call) Run

func (*Client_PasswordModify_Call) RunAndReturn

type Client_SearchAsync_Call

type Client_SearchAsync_Call struct {
	*mock.Call
}

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

func (*Client_SearchAsync_Call) Return

func (*Client_SearchAsync_Call) Run

func (_c *Client_SearchAsync_Call) Run(run func(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int)) *Client_SearchAsync_Call

func (*Client_SearchAsync_Call) RunAndReturn

type Client_SearchWithPaging_Call

type Client_SearchWithPaging_Call struct {
	*mock.Call
}

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

func (*Client_SearchWithPaging_Call) Return

func (*Client_SearchWithPaging_Call) Run

func (_c *Client_SearchWithPaging_Call) Run(run func(searchRequest *ldap.SearchRequest, pagingSize uint32)) *Client_SearchWithPaging_Call

func (*Client_SearchWithPaging_Call) RunAndReturn

type Client_Search_Call

type Client_Search_Call struct {
	*mock.Call
}

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

func (*Client_Search_Call) Return

func (*Client_Search_Call) Run

func (_c *Client_Search_Call) Run(run func(_a0 *ldap.SearchRequest)) *Client_Search_Call

func (*Client_Search_Call) RunAndReturn

type Client_SetTimeout_Call

type Client_SetTimeout_Call struct {
	*mock.Call
}

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

func (*Client_SetTimeout_Call) Return

func (*Client_SetTimeout_Call) Run

func (*Client_SetTimeout_Call) RunAndReturn

func (_c *Client_SetTimeout_Call) RunAndReturn(run func(time.Duration)) *Client_SetTimeout_Call

type Client_SimpleBind_Call

type Client_SimpleBind_Call struct {
	*mock.Call
}

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

func (*Client_SimpleBind_Call) Return

func (*Client_SimpleBind_Call) Run

func (*Client_SimpleBind_Call) RunAndReturn

type Client_StartTLS_Call

type Client_StartTLS_Call struct {
	*mock.Call
}

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

func (*Client_StartTLS_Call) Return

func (*Client_StartTLS_Call) Run

func (_c *Client_StartTLS_Call) Run(run func(_a0 *tls.Config)) *Client_StartTLS_Call

func (*Client_StartTLS_Call) RunAndReturn

func (_c *Client_StartTLS_Call) RunAndReturn(run func(*tls.Config) error) *Client_StartTLS_Call

type Client_Start_Call

type Client_Start_Call struct {
	*mock.Call
}

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

func (*Client_Start_Call) Return

func (_c *Client_Start_Call) Return() *Client_Start_Call

func (*Client_Start_Call) Run

func (_c *Client_Start_Call) Run(run func()) *Client_Start_Call

func (*Client_Start_Call) RunAndReturn

func (_c *Client_Start_Call) RunAndReturn(run func()) *Client_Start_Call

type Client_Syncrepl_Call

type Client_Syncrepl_Call struct {
	*mock.Call
}

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

func (*Client_Syncrepl_Call) Return

func (*Client_Syncrepl_Call) Run

func (_c *Client_Syncrepl_Call) Run(run func(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, mode ldap.ControlSyncRequestMode, cookie []byte, reloadHint bool)) *Client_Syncrepl_Call

type Client_TLSConnectionState_Call

type Client_TLSConnectionState_Call struct {
	*mock.Call
}

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

func (*Client_TLSConnectionState_Call) Return

func (*Client_TLSConnectionState_Call) Run

func (*Client_TLSConnectionState_Call) RunAndReturn

type Client_UnauthenticatedBind_Call

type Client_UnauthenticatedBind_Call struct {
	*mock.Call
}

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

func (*Client_UnauthenticatedBind_Call) Return

func (*Client_UnauthenticatedBind_Call) Run

func (*Client_UnauthenticatedBind_Call) RunAndReturn

type Client_Unbind_Call

type Client_Unbind_Call struct {
	*mock.Call
}

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

func (*Client_Unbind_Call) Return

func (_c *Client_Unbind_Call) Return(_a0 error) *Client_Unbind_Call

func (*Client_Unbind_Call) Run

func (_c *Client_Unbind_Call) Run(run func()) *Client_Unbind_Call

func (*Client_Unbind_Call) RunAndReturn

func (_c *Client_Unbind_Call) RunAndReturn(run func() error) *Client_Unbind_Call

type EducationBackend

type EducationBackend struct {
	mock.Mock
}

EducationBackend is an autogenerated mock type for the EducationBackend type

func NewEducationBackend

func NewEducationBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *EducationBackend

NewEducationBackend creates a new instance of EducationBackend. 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 (*EducationBackend) AddClassesToEducationSchool

func (_m *EducationBackend) AddClassesToEducationSchool(ctx context.Context, schoolNumberOrID string, memberIDs []string) error

AddClassesToEducationSchool provides a mock function with given fields: ctx, schoolNumberOrID, memberIDs

func (*EducationBackend) AddTeacherToEducationClass

func (_m *EducationBackend) AddTeacherToEducationClass(ctx context.Context, classID string, teacherID string) error

AddTeacherToEducationClass provides a mock function with given fields: ctx, classID, teacherID

func (*EducationBackend) AddUsersToEducationSchool

func (_m *EducationBackend) AddUsersToEducationSchool(ctx context.Context, schoolID string, memberID []string) error

AddUsersToEducationSchool provides a mock function with given fields: ctx, schoolID, memberID

func (*EducationBackend) CreateEducationClass

func (_m *EducationBackend) CreateEducationClass(ctx context.Context, class libregraph.EducationClass) (*libregraph.EducationClass, error)

CreateEducationClass provides a mock function with given fields: ctx, class

func (*EducationBackend) CreateEducationSchool

func (_m *EducationBackend) CreateEducationSchool(ctx context.Context, group libregraph.EducationSchool) (*libregraph.EducationSchool, error)

CreateEducationSchool provides a mock function with given fields: ctx, group

func (*EducationBackend) CreateEducationUser

func (_m *EducationBackend) CreateEducationUser(ctx context.Context, user libregraph.EducationUser) (*libregraph.EducationUser, error)

CreateEducationUser provides a mock function with given fields: ctx, user

func (*EducationBackend) DeleteEducationClass

func (_m *EducationBackend) DeleteEducationClass(ctx context.Context, nameOrID string) error

DeleteEducationClass provides a mock function with given fields: ctx, nameOrID

func (*EducationBackend) DeleteEducationSchool

func (_m *EducationBackend) DeleteEducationSchool(ctx context.Context, id string) error

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

func (*EducationBackend) DeleteEducationUser

func (_m *EducationBackend) DeleteEducationUser(ctx context.Context, nameOrID string) error

DeleteEducationUser provides a mock function with given fields: ctx, nameOrID

func (*EducationBackend) EXPECT

func (*EducationBackend) GetEducationClass

func (_m *EducationBackend) GetEducationClass(ctx context.Context, namedOrID string) (*libregraph.EducationClass, error)

GetEducationClass provides a mock function with given fields: ctx, namedOrID

func (*EducationBackend) GetEducationClassMembers

func (_m *EducationBackend) GetEducationClassMembers(ctx context.Context, nameOrID string) ([]*libregraph.EducationUser, error)

GetEducationClassMembers provides a mock function with given fields: ctx, nameOrID

func (*EducationBackend) GetEducationClassTeachers

func (_m *EducationBackend) GetEducationClassTeachers(ctx context.Context, classID string) ([]*libregraph.EducationUser, error)

GetEducationClassTeachers provides a mock function with given fields: ctx, classID

func (*EducationBackend) GetEducationClasses

func (_m *EducationBackend) GetEducationClasses(ctx context.Context) ([]*libregraph.EducationClass, error)

GetEducationClasses provides a mock function with given fields: ctx

func (*EducationBackend) GetEducationSchool

func (_m *EducationBackend) GetEducationSchool(ctx context.Context, nameOrID string) (*libregraph.EducationSchool, error)

GetEducationSchool provides a mock function with given fields: ctx, nameOrID

func (*EducationBackend) GetEducationSchoolClasses

func (_m *EducationBackend) GetEducationSchoolClasses(ctx context.Context, schoolNumberOrID string) ([]*libregraph.EducationClass, error)

GetEducationSchoolClasses provides a mock function with given fields: ctx, schoolNumberOrID

func (*EducationBackend) GetEducationSchoolUsers

func (_m *EducationBackend) GetEducationSchoolUsers(ctx context.Context, id string) ([]*libregraph.EducationUser, error)

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

func (*EducationBackend) GetEducationSchools

func (_m *EducationBackend) GetEducationSchools(ctx context.Context) ([]*libregraph.EducationSchool, error)

GetEducationSchools provides a mock function with given fields: ctx

func (*EducationBackend) GetEducationUser

func (_m *EducationBackend) GetEducationUser(ctx context.Context, nameOrID string) (*libregraph.EducationUser, error)

GetEducationUser provides a mock function with given fields: ctx, nameOrID

func (*EducationBackend) GetEducationUsers

func (_m *EducationBackend) GetEducationUsers(ctx context.Context) ([]*libregraph.EducationUser, error)

GetEducationUsers provides a mock function with given fields: ctx

func (*EducationBackend) RemoveClassFromEducationSchool

func (_m *EducationBackend) RemoveClassFromEducationSchool(ctx context.Context, schoolNumberOrID string, memberID string) error

RemoveClassFromEducationSchool provides a mock function with given fields: ctx, schoolNumberOrID, memberID

func (*EducationBackend) RemoveTeacherFromEducationClass

func (_m *EducationBackend) RemoveTeacherFromEducationClass(ctx context.Context, classID string, teacherID string) error

RemoveTeacherFromEducationClass provides a mock function with given fields: ctx, classID, teacherID

func (*EducationBackend) RemoveUserFromEducationSchool

func (_m *EducationBackend) RemoveUserFromEducationSchool(ctx context.Context, schoolID string, memberID string) error

RemoveUserFromEducationSchool provides a mock function with given fields: ctx, schoolID, memberID

func (*EducationBackend) UpdateEducationClass

func (_m *EducationBackend) UpdateEducationClass(ctx context.Context, id string, class libregraph.EducationClass) (*libregraph.EducationClass, error)

UpdateEducationClass provides a mock function with given fields: ctx, id, class

func (*EducationBackend) UpdateEducationSchool

func (_m *EducationBackend) UpdateEducationSchool(ctx context.Context, numberOrID string, school libregraph.EducationSchool) (*libregraph.EducationSchool, error)

UpdateEducationSchool provides a mock function with given fields: ctx, numberOrID, school

func (*EducationBackend) UpdateEducationUser

func (_m *EducationBackend) UpdateEducationUser(ctx context.Context, nameOrID string, user libregraph.EducationUser) (*libregraph.EducationUser, error)

UpdateEducationUser provides a mock function with given fields: ctx, nameOrID, user

type EducationBackend_AddClassesToEducationSchool_Call

type EducationBackend_AddClassesToEducationSchool_Call struct {
	*mock.Call
}

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

func (*EducationBackend_AddClassesToEducationSchool_Call) Return

func (*EducationBackend_AddClassesToEducationSchool_Call) Run

func (*EducationBackend_AddClassesToEducationSchool_Call) RunAndReturn

type EducationBackend_AddTeacherToEducationClass_Call

type EducationBackend_AddTeacherToEducationClass_Call struct {
	*mock.Call
}

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

func (*EducationBackend_AddTeacherToEducationClass_Call) Return

func (*EducationBackend_AddTeacherToEducationClass_Call) Run

func (*EducationBackend_AddTeacherToEducationClass_Call) RunAndReturn

type EducationBackend_AddUsersToEducationSchool_Call

type EducationBackend_AddUsersToEducationSchool_Call struct {
	*mock.Call
}

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

func (*EducationBackend_AddUsersToEducationSchool_Call) Return

func (*EducationBackend_AddUsersToEducationSchool_Call) Run

func (*EducationBackend_AddUsersToEducationSchool_Call) RunAndReturn

type EducationBackend_CreateEducationClass_Call

type EducationBackend_CreateEducationClass_Call struct {
	*mock.Call
}

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

func (*EducationBackend_CreateEducationClass_Call) Return

func (*EducationBackend_CreateEducationClass_Call) Run

type EducationBackend_CreateEducationSchool_Call

type EducationBackend_CreateEducationSchool_Call struct {
	*mock.Call
}

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

func (*EducationBackend_CreateEducationSchool_Call) Return

func (*EducationBackend_CreateEducationSchool_Call) Run

type EducationBackend_CreateEducationUser_Call

type EducationBackend_CreateEducationUser_Call struct {
	*mock.Call
}

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

func (*EducationBackend_CreateEducationUser_Call) Return

func (*EducationBackend_CreateEducationUser_Call) Run

type EducationBackend_DeleteEducationClass_Call

type EducationBackend_DeleteEducationClass_Call struct {
	*mock.Call
}

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

func (*EducationBackend_DeleteEducationClass_Call) Return

func (*EducationBackend_DeleteEducationClass_Call) Run

func (*EducationBackend_DeleteEducationClass_Call) RunAndReturn

type EducationBackend_DeleteEducationSchool_Call

type EducationBackend_DeleteEducationSchool_Call struct {
	*mock.Call
}

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

func (*EducationBackend_DeleteEducationSchool_Call) Return

func (*EducationBackend_DeleteEducationSchool_Call) Run

func (*EducationBackend_DeleteEducationSchool_Call) RunAndReturn

type EducationBackend_DeleteEducationUser_Call

type EducationBackend_DeleteEducationUser_Call struct {
	*mock.Call
}

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

func (*EducationBackend_DeleteEducationUser_Call) Return

func (*EducationBackend_DeleteEducationUser_Call) Run

func (*EducationBackend_DeleteEducationUser_Call) RunAndReturn

type EducationBackend_Expecter

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

func (*EducationBackend_Expecter) AddClassesToEducationSchool

func (_e *EducationBackend_Expecter) AddClassesToEducationSchool(ctx interface{}, schoolNumberOrID interface{}, memberIDs interface{}) *EducationBackend_AddClassesToEducationSchool_Call

AddClassesToEducationSchool is a helper method to define mock.On call

  • ctx context.Context
  • schoolNumberOrID string
  • memberIDs []string

func (*EducationBackend_Expecter) AddTeacherToEducationClass

func (_e *EducationBackend_Expecter) AddTeacherToEducationClass(ctx interface{}, classID interface{}, teacherID interface{}) *EducationBackend_AddTeacherToEducationClass_Call

AddTeacherToEducationClass is a helper method to define mock.On call

  • ctx context.Context
  • classID string
  • teacherID string

func (*EducationBackend_Expecter) AddUsersToEducationSchool

func (_e *EducationBackend_Expecter) AddUsersToEducationSchool(ctx interface{}, schoolID interface{}, memberID interface{}) *EducationBackend_AddUsersToEducationSchool_Call

AddUsersToEducationSchool is a helper method to define mock.On call

  • ctx context.Context
  • schoolID string
  • memberID []string

func (*EducationBackend_Expecter) CreateEducationClass

func (_e *EducationBackend_Expecter) CreateEducationClass(ctx interface{}, class interface{}) *EducationBackend_CreateEducationClass_Call

CreateEducationClass is a helper method to define mock.On call

  • ctx context.Context
  • class libregraph.EducationClass

func (*EducationBackend_Expecter) CreateEducationSchool

func (_e *EducationBackend_Expecter) CreateEducationSchool(ctx interface{}, group interface{}) *EducationBackend_CreateEducationSchool_Call

CreateEducationSchool is a helper method to define mock.On call

  • ctx context.Context
  • group libregraph.EducationSchool

func (*EducationBackend_Expecter) CreateEducationUser

func (_e *EducationBackend_Expecter) CreateEducationUser(ctx interface{}, user interface{}) *EducationBackend_CreateEducationUser_Call

CreateEducationUser is a helper method to define mock.On call

  • ctx context.Context
  • user libregraph.EducationUser

func (*EducationBackend_Expecter) DeleteEducationClass

func (_e *EducationBackend_Expecter) DeleteEducationClass(ctx interface{}, nameOrID interface{}) *EducationBackend_DeleteEducationClass_Call

DeleteEducationClass is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string

func (*EducationBackend_Expecter) DeleteEducationSchool

func (_e *EducationBackend_Expecter) DeleteEducationSchool(ctx interface{}, id interface{}) *EducationBackend_DeleteEducationSchool_Call

DeleteEducationSchool is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*EducationBackend_Expecter) DeleteEducationUser

func (_e *EducationBackend_Expecter) DeleteEducationUser(ctx interface{}, nameOrID interface{}) *EducationBackend_DeleteEducationUser_Call

DeleteEducationUser is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string

func (*EducationBackend_Expecter) GetEducationClass

func (_e *EducationBackend_Expecter) GetEducationClass(ctx interface{}, namedOrID interface{}) *EducationBackend_GetEducationClass_Call

GetEducationClass is a helper method to define mock.On call

  • ctx context.Context
  • namedOrID string

func (*EducationBackend_Expecter) GetEducationClassMembers

func (_e *EducationBackend_Expecter) GetEducationClassMembers(ctx interface{}, nameOrID interface{}) *EducationBackend_GetEducationClassMembers_Call

GetEducationClassMembers is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string

func (*EducationBackend_Expecter) GetEducationClassTeachers

func (_e *EducationBackend_Expecter) GetEducationClassTeachers(ctx interface{}, classID interface{}) *EducationBackend_GetEducationClassTeachers_Call

GetEducationClassTeachers is a helper method to define mock.On call

  • ctx context.Context
  • classID string

func (*EducationBackend_Expecter) GetEducationClasses

func (_e *EducationBackend_Expecter) GetEducationClasses(ctx interface{}) *EducationBackend_GetEducationClasses_Call

GetEducationClasses is a helper method to define mock.On call

  • ctx context.Context

func (*EducationBackend_Expecter) GetEducationSchool

func (_e *EducationBackend_Expecter) GetEducationSchool(ctx interface{}, nameOrID interface{}) *EducationBackend_GetEducationSchool_Call

GetEducationSchool is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string

func (*EducationBackend_Expecter) GetEducationSchoolClasses

func (_e *EducationBackend_Expecter) GetEducationSchoolClasses(ctx interface{}, schoolNumberOrID interface{}) *EducationBackend_GetEducationSchoolClasses_Call

GetEducationSchoolClasses is a helper method to define mock.On call

  • ctx context.Context
  • schoolNumberOrID string

func (*EducationBackend_Expecter) GetEducationSchoolUsers

func (_e *EducationBackend_Expecter) GetEducationSchoolUsers(ctx interface{}, id interface{}) *EducationBackend_GetEducationSchoolUsers_Call

GetEducationSchoolUsers is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*EducationBackend_Expecter) GetEducationSchools

func (_e *EducationBackend_Expecter) GetEducationSchools(ctx interface{}) *EducationBackend_GetEducationSchools_Call

GetEducationSchools is a helper method to define mock.On call

  • ctx context.Context

func (*EducationBackend_Expecter) GetEducationUser

func (_e *EducationBackend_Expecter) GetEducationUser(ctx interface{}, nameOrID interface{}) *EducationBackend_GetEducationUser_Call

GetEducationUser is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string

func (*EducationBackend_Expecter) GetEducationUsers

func (_e *EducationBackend_Expecter) GetEducationUsers(ctx interface{}) *EducationBackend_GetEducationUsers_Call

GetEducationUsers is a helper method to define mock.On call

  • ctx context.Context

func (*EducationBackend_Expecter) RemoveClassFromEducationSchool

func (_e *EducationBackend_Expecter) RemoveClassFromEducationSchool(ctx interface{}, schoolNumberOrID interface{}, memberID interface{}) *EducationBackend_RemoveClassFromEducationSchool_Call

RemoveClassFromEducationSchool is a helper method to define mock.On call

  • ctx context.Context
  • schoolNumberOrID string
  • memberID string

func (*EducationBackend_Expecter) RemoveTeacherFromEducationClass

func (_e *EducationBackend_Expecter) RemoveTeacherFromEducationClass(ctx interface{}, classID interface{}, teacherID interface{}) *EducationBackend_RemoveTeacherFromEducationClass_Call

RemoveTeacherFromEducationClass is a helper method to define mock.On call

  • ctx context.Context
  • classID string
  • teacherID string

func (*EducationBackend_Expecter) RemoveUserFromEducationSchool

func (_e *EducationBackend_Expecter) RemoveUserFromEducationSchool(ctx interface{}, schoolID interface{}, memberID interface{}) *EducationBackend_RemoveUserFromEducationSchool_Call

RemoveUserFromEducationSchool is a helper method to define mock.On call

  • ctx context.Context
  • schoolID string
  • memberID string

func (*EducationBackend_Expecter) UpdateEducationClass

func (_e *EducationBackend_Expecter) UpdateEducationClass(ctx interface{}, id interface{}, class interface{}) *EducationBackend_UpdateEducationClass_Call

UpdateEducationClass is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • class libregraph.EducationClass

func (*EducationBackend_Expecter) UpdateEducationSchool

func (_e *EducationBackend_Expecter) UpdateEducationSchool(ctx interface{}, numberOrID interface{}, school interface{}) *EducationBackend_UpdateEducationSchool_Call

UpdateEducationSchool is a helper method to define mock.On call

  • ctx context.Context
  • numberOrID string
  • school libregraph.EducationSchool

func (*EducationBackend_Expecter) UpdateEducationUser

func (_e *EducationBackend_Expecter) UpdateEducationUser(ctx interface{}, nameOrID interface{}, user interface{}) *EducationBackend_UpdateEducationUser_Call

UpdateEducationUser is a helper method to define mock.On call

  • ctx context.Context
  • nameOrID string
  • user libregraph.EducationUser

type EducationBackend_GetEducationClassMembers_Call

type EducationBackend_GetEducationClassMembers_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationClassMembers_Call) Return

func (*EducationBackend_GetEducationClassMembers_Call) Run

func (*EducationBackend_GetEducationClassMembers_Call) RunAndReturn

type EducationBackend_GetEducationClassTeachers_Call

type EducationBackend_GetEducationClassTeachers_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationClassTeachers_Call) Return

func (*EducationBackend_GetEducationClassTeachers_Call) Run

func (*EducationBackend_GetEducationClassTeachers_Call) RunAndReturn

type EducationBackend_GetEducationClass_Call

type EducationBackend_GetEducationClass_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationClass_Call) Return

func (*EducationBackend_GetEducationClass_Call) Run

func (*EducationBackend_GetEducationClass_Call) RunAndReturn

type EducationBackend_GetEducationClasses_Call

type EducationBackend_GetEducationClasses_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationClasses_Call) Return

func (*EducationBackend_GetEducationClasses_Call) Run

func (*EducationBackend_GetEducationClasses_Call) RunAndReturn

type EducationBackend_GetEducationSchoolClasses_Call

type EducationBackend_GetEducationSchoolClasses_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationSchoolClasses_Call) Return

func (*EducationBackend_GetEducationSchoolClasses_Call) Run

func (*EducationBackend_GetEducationSchoolClasses_Call) RunAndReturn

type EducationBackend_GetEducationSchoolUsers_Call

type EducationBackend_GetEducationSchoolUsers_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationSchoolUsers_Call) Return

func (*EducationBackend_GetEducationSchoolUsers_Call) Run

func (*EducationBackend_GetEducationSchoolUsers_Call) RunAndReturn

type EducationBackend_GetEducationSchool_Call

type EducationBackend_GetEducationSchool_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationSchool_Call) Return

func (*EducationBackend_GetEducationSchool_Call) Run

func (*EducationBackend_GetEducationSchool_Call) RunAndReturn

type EducationBackend_GetEducationSchools_Call

type EducationBackend_GetEducationSchools_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationSchools_Call) Return

func (*EducationBackend_GetEducationSchools_Call) Run

func (*EducationBackend_GetEducationSchools_Call) RunAndReturn

type EducationBackend_GetEducationUser_Call

type EducationBackend_GetEducationUser_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationUser_Call) Return

func (*EducationBackend_GetEducationUser_Call) Run

func (*EducationBackend_GetEducationUser_Call) RunAndReturn

type EducationBackend_GetEducationUsers_Call

type EducationBackend_GetEducationUsers_Call struct {
	*mock.Call
}

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

func (*EducationBackend_GetEducationUsers_Call) Return

func (*EducationBackend_GetEducationUsers_Call) Run

func (*EducationBackend_GetEducationUsers_Call) RunAndReturn

type EducationBackend_RemoveClassFromEducationSchool_Call

type EducationBackend_RemoveClassFromEducationSchool_Call struct {
	*mock.Call
}

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

func (*EducationBackend_RemoveClassFromEducationSchool_Call) Return

func (*EducationBackend_RemoveClassFromEducationSchool_Call) Run

func (*EducationBackend_RemoveClassFromEducationSchool_Call) RunAndReturn

type EducationBackend_RemoveTeacherFromEducationClass_Call

type EducationBackend_RemoveTeacherFromEducationClass_Call struct {
	*mock.Call
}

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

func (*EducationBackend_RemoveTeacherFromEducationClass_Call) Return

func (*EducationBackend_RemoveTeacherFromEducationClass_Call) Run

func (*EducationBackend_RemoveTeacherFromEducationClass_Call) RunAndReturn

type EducationBackend_RemoveUserFromEducationSchool_Call

type EducationBackend_RemoveUserFromEducationSchool_Call struct {
	*mock.Call
}

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

func (*EducationBackend_RemoveUserFromEducationSchool_Call) Return

func (*EducationBackend_RemoveUserFromEducationSchool_Call) Run

func (*EducationBackend_RemoveUserFromEducationSchool_Call) RunAndReturn

type EducationBackend_UpdateEducationClass_Call

type EducationBackend_UpdateEducationClass_Call struct {
	*mock.Call
}

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

func (*EducationBackend_UpdateEducationClass_Call) Return

func (*EducationBackend_UpdateEducationClass_Call) Run

type EducationBackend_UpdateEducationSchool_Call

type EducationBackend_UpdateEducationSchool_Call struct {
	*mock.Call
}

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

func (*EducationBackend_UpdateEducationSchool_Call) Return

func (*EducationBackend_UpdateEducationSchool_Call) Run

type EducationBackend_UpdateEducationUser_Call

type EducationBackend_UpdateEducationUser_Call struct {
	*mock.Call
}

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

func (*EducationBackend_UpdateEducationUser_Call) Return

func (*EducationBackend_UpdateEducationUser_Call) Run

Jump to

Keyboard shortcuts

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