Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectRunNow

func ExpectRunNow(r *MockTaskRunner)

TASK RUNNER HELPERS

func NewGraphChannel

func NewGraphChannel(params *NewChannelParams) msmodels.Channelable

func NewGraphChat

func NewGraphChat(params *NewChatParams) msmodels.Chatable

func NewGraphMessage

func NewGraphMessage(params *NewMessageParams) msmodels.ChatMessageable

func NewGraphTeam

func NewGraphTeam(params *NewTeamParams) msmodels.Teamable

func NewGraphUser

func NewGraphUser(params *NewUserParams) msmodels.Userable

func ReqErr

func ReqErr(code int) *sender.RequestError

ERROR HELPERS

func RequireReqErrCode

func RequireReqErrCode(t *testing.T, err error, wantCode int)

func RequireWrapped

func RequireWrapped(t *testing.T, err error) *sender.OpError

Types

type MockCacher

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

MockCacher is a mock of Cacher interface.

func NewMockCacher

func NewMockCacher(ctrl *gomock.Controller) *MockCacher

NewMockCacher creates a new mock instance.

func (*MockCacher) Clear

func (m *MockCacher) Clear() error

Clear mocks base method.

func (*MockCacher) EXPECT

func (m *MockCacher) EXPECT() *MockCacherMockRecorder

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

func (*MockCacher) Get

func (m *MockCacher) Get(key string) (any, bool, error)

Get mocks base method.

func (*MockCacher) Invalidate

func (m *MockCacher) Invalidate(key string) error

Invalidate mocks base method.

func (*MockCacher) Set

func (m *MockCacher) Set(key string, value any) error

Set mocks base method.

type MockCacherMockRecorder

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

MockCacherMockRecorder is the mock recorder for MockCacher.

func (*MockCacherMockRecorder) Clear

func (mr *MockCacherMockRecorder) Clear() *gomock.Call

Clear indicates an expected call of Clear.

func (*MockCacherMockRecorder) Get

func (mr *MockCacherMockRecorder) Get(key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacherMockRecorder) Invalidate

func (mr *MockCacherMockRecorder) Invalidate(key any) *gomock.Call

Invalidate indicates an expected call of Invalidate.

func (*MockCacherMockRecorder) Set

func (mr *MockCacherMockRecorder) Set(key, value any) *gomock.Call

Set indicates an expected call of Set.

type MockChannelAPI

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

MockChannelAPI is a mock of ChannelAPI interface.

func NewMockChannelAPI

func NewMockChannelAPI(ctrl *gomock.Controller) *MockChannelAPI

NewMockChannelAPI creates a new mock instance.

func (*MockChannelAPI) AddMember

func (m *MockChannelAPI) AddMember(ctx context.Context, teamID, channelID, userRef string, roles []string) (models.ConversationMemberable, *sender.RequestError)

AddMember mocks base method.

func (*MockChannelAPI) CreatePrivateChannelWithMembers

func (m *MockChannelAPI) CreatePrivateChannelWithMembers(ctx context.Context, teamID, displayName string, memberIDs, ownersID []string) (models.Channelable, *sender.RequestError)

CreatePrivateChannelWithMembers mocks base method.

func (*MockChannelAPI) CreateStandardChannel

func (m *MockChannelAPI) CreateStandardChannel(ctx context.Context, teamID string, channel models.Channelable) (models.Channelable, *sender.RequestError)

CreateStandardChannel mocks base method.

func (*MockChannelAPI) DeleteChannel

func (m *MockChannelAPI) DeleteChannel(ctx context.Context, teamID, channelID string) *sender.RequestError

DeleteChannel mocks base method.

func (*MockChannelAPI) EXPECT

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

func (*MockChannelAPI) GetChannel

func (m *MockChannelAPI) GetChannel(ctx context.Context, teamID, channelID string) (models.Channelable, *sender.RequestError)

GetChannel mocks base method.

func (*MockChannelAPI) GetMessage

func (m *MockChannelAPI) GetMessage(ctx context.Context, teamID, channelID, messageID string) (models.ChatMessageable, *sender.RequestError)

GetMessage mocks base method.

func (*MockChannelAPI) GetReply

func (m *MockChannelAPI) GetReply(ctx context.Context, teamID, channelID, messageID, replyID string) (models.ChatMessageable, *sender.RequestError)

GetReply mocks base method.

func (*MockChannelAPI) ListChannels

ListChannels mocks base method.

func (*MockChannelAPI) ListMembers

ListMembers mocks base method.

func (*MockChannelAPI) ListMessages

func (m *MockChannelAPI) ListMessages(ctx context.Context, teamID, channelID string, top *int32, includeSystem bool) (models.ChatMessageCollectionResponseable, *sender.RequestError)

ListMessages mocks base method.

func (*MockChannelAPI) ListMessagesNext

func (m *MockChannelAPI) ListMessagesNext(ctx context.Context, teamID, channelID, nextLink string, includeSystem bool) (models.ChatMessageCollectionResponseable, *sender.RequestError)

ListMessagesNext mocks base method.

func (*MockChannelAPI) ListReplies

func (m *MockChannelAPI) ListReplies(ctx context.Context, teamID, channelID, messageID string, top *int32, includeSystem bool) (models.ChatMessageCollectionResponseable, *sender.RequestError)

ListReplies mocks base method.

func (*MockChannelAPI) ListRepliesNext

func (m *MockChannelAPI) ListRepliesNext(ctx context.Context, teamID, channelID, messageID, nextLink string, includeSystem bool) (models.ChatMessageCollectionResponseable, *sender.RequestError)

ListRepliesNext mocks base method.

func (*MockChannelAPI) RemoveMember

func (m *MockChannelAPI) RemoveMember(ctx context.Context, teamID, channelID, memberID string) *sender.RequestError

RemoveMember mocks base method.

func (*MockChannelAPI) SearchChannelMessages

func (m *MockChannelAPI) SearchChannelMessages(ctx context.Context, teamID, channelID *string, opts *search.SearchMessagesOptions, searchConfig *search.SearchConfig) ([]*api.SearchMessage, *sender.RequestError, *int32)

SearchChannelMessages mocks base method.

func (*MockChannelAPI) SendMessage

func (m *MockChannelAPI) SendMessage(ctx context.Context, teamID, channelID, content, contentType string, mentions []models.ChatMessageMentionable) (models.ChatMessageable, *sender.RequestError)

SendMessage mocks base method.

func (*MockChannelAPI) SendReply

func (m *MockChannelAPI) SendReply(ctx context.Context, teamID, channelID, messageID, content, contentType string, mentions []models.ChatMessageMentionable) (models.ChatMessageable, *sender.RequestError)

SendReply mocks base method.

func (*MockChannelAPI) UpdateMemberRoles

func (m *MockChannelAPI) UpdateMemberRoles(ctx context.Context, teamID, channelID, memberID string, roles []string) (models.ConversationMemberable, *sender.RequestError)

UpdateMemberRoles mocks base method.

type MockChannelAPIMockRecorder

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

MockChannelAPIMockRecorder is the mock recorder for MockChannelAPI.

func (*MockChannelAPIMockRecorder) AddMember

func (mr *MockChannelAPIMockRecorder) AddMember(ctx, teamID, channelID, userRef, roles any) *gomock.Call

AddMember indicates an expected call of AddMember.

func (*MockChannelAPIMockRecorder) CreatePrivateChannelWithMembers

func (mr *MockChannelAPIMockRecorder) CreatePrivateChannelWithMembers(ctx, teamID, displayName, memberIDs, ownersID any) *gomock.Call

CreatePrivateChannelWithMembers indicates an expected call of CreatePrivateChannelWithMembers.

func (*MockChannelAPIMockRecorder) CreateStandardChannel

func (mr *MockChannelAPIMockRecorder) CreateStandardChannel(ctx, teamID, channel any) *gomock.Call

CreateStandardChannel indicates an expected call of CreateStandardChannel.

func (*MockChannelAPIMockRecorder) DeleteChannel

func (mr *MockChannelAPIMockRecorder) DeleteChannel(ctx, teamID, channelID any) *gomock.Call

DeleteChannel indicates an expected call of DeleteChannel.

func (*MockChannelAPIMockRecorder) GetChannel

func (mr *MockChannelAPIMockRecorder) GetChannel(ctx, teamID, channelID any) *gomock.Call

GetChannel indicates an expected call of GetChannel.

func (*MockChannelAPIMockRecorder) GetMessage

func (mr *MockChannelAPIMockRecorder) GetMessage(ctx, teamID, channelID, messageID any) *gomock.Call

GetMessage indicates an expected call of GetMessage.

func (*MockChannelAPIMockRecorder) GetReply

func (mr *MockChannelAPIMockRecorder) GetReply(ctx, teamID, channelID, messageID, replyID any) *gomock.Call

GetReply indicates an expected call of GetReply.

func (*MockChannelAPIMockRecorder) ListChannels

func (mr *MockChannelAPIMockRecorder) ListChannels(ctx, teamID any) *gomock.Call

ListChannels indicates an expected call of ListChannels.

func (*MockChannelAPIMockRecorder) ListMembers

func (mr *MockChannelAPIMockRecorder) ListMembers(ctx, teamID, channelID any) *gomock.Call

ListMembers indicates an expected call of ListMembers.

func (*MockChannelAPIMockRecorder) ListMessages

func (mr *MockChannelAPIMockRecorder) ListMessages(ctx, teamID, channelID, top, includeSystem any) *gomock.Call

ListMessages indicates an expected call of ListMessages.

func (*MockChannelAPIMockRecorder) ListMessagesNext

func (mr *MockChannelAPIMockRecorder) ListMessagesNext(ctx, teamID, channelID, nextLink, includeSystem any) *gomock.Call

ListMessagesNext indicates an expected call of ListMessagesNext.

func (*MockChannelAPIMockRecorder) ListReplies

func (mr *MockChannelAPIMockRecorder) ListReplies(ctx, teamID, channelID, messageID, top, includeSystem any) *gomock.Call

ListReplies indicates an expected call of ListReplies.

func (*MockChannelAPIMockRecorder) ListRepliesNext

func (mr *MockChannelAPIMockRecorder) ListRepliesNext(ctx, teamID, channelID, messageID, nextLink, includeSystem any) *gomock.Call

ListRepliesNext indicates an expected call of ListRepliesNext.

func (*MockChannelAPIMockRecorder) RemoveMember

func (mr *MockChannelAPIMockRecorder) RemoveMember(ctx, teamID, channelID, memberID any) *gomock.Call

RemoveMember indicates an expected call of RemoveMember.

func (*MockChannelAPIMockRecorder) SearchChannelMessages

func (mr *MockChannelAPIMockRecorder) SearchChannelMessages(ctx, teamID, channelID, opts, searchConfig any) *gomock.Call

SearchChannelMessages indicates an expected call of SearchChannelMessages.

func (*MockChannelAPIMockRecorder) SendMessage

func (mr *MockChannelAPIMockRecorder) SendMessage(ctx, teamID, channelID, content, contentType, mentions any) *gomock.Call

SendMessage indicates an expected call of SendMessage.

func (*MockChannelAPIMockRecorder) SendReply

func (mr *MockChannelAPIMockRecorder) SendReply(ctx, teamID, channelID, messageID, content, contentType, mentions any) *gomock.Call

SendReply indicates an expected call of SendReply.

func (*MockChannelAPIMockRecorder) UpdateMemberRoles

func (mr *MockChannelAPIMockRecorder) UpdateMemberRoles(ctx, teamID, channelID, memberID, roles any) *gomock.Call

UpdateMemberRoles indicates an expected call of UpdateMemberRoles.

type MockChannelResolver

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

MockChannelResolver is a mock of ChannelResolver interface.

func NewMockChannelResolver

func NewMockChannelResolver(ctrl *gomock.Controller) *MockChannelResolver

NewMockChannelResolver creates a new mock instance.

func (*MockChannelResolver) EXPECT

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

func (*MockChannelResolver) ResolveChannelMemberRefToID

func (m *MockChannelResolver) ResolveChannelMemberRefToID(ctx context.Context, teamID, channelID, userRef string) (string, error)

ResolveChannelMemberRefToID mocks base method.

func (*MockChannelResolver) ResolveChannelRefToID

func (m *MockChannelResolver) ResolveChannelRefToID(ctx context.Context, teamID, channelRef string) (string, error)

ResolveChannelRefToID mocks base method.

type MockChannelResolverMockRecorder

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

MockChannelResolverMockRecorder is the mock recorder for MockChannelResolver.

func (*MockChannelResolverMockRecorder) ResolveChannelMemberRefToID

func (mr *MockChannelResolverMockRecorder) ResolveChannelMemberRefToID(ctx, teamID, channelID, userRef any) *gomock.Call

ResolveChannelMemberRefToID indicates an expected call of ResolveChannelMemberRefToID.

func (*MockChannelResolverMockRecorder) ResolveChannelRefToID

func (mr *MockChannelResolverMockRecorder) ResolveChannelRefToID(ctx, teamID, channelRef any) *gomock.Call

ResolveChannelRefToID indicates an expected call of ResolveChannelRefToID.

type MockChatAPI

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

MockChatAPI is a mock of ChatAPI interface.

func NewMockChatAPI

func NewMockChatAPI(ctrl *gomock.Controller) *MockChatAPI

NewMockChatAPI creates a new mock instance.

func (*MockChatAPI) AddMemberToGroupChat

func (m *MockChatAPI) AddMemberToGroupChat(ctx context.Context, chatID, userRef string) (models.ConversationMemberable, *sender.RequestError)

AddMemberToGroupChat mocks base method.

func (*MockChatAPI) CreateGroupChat

func (m *MockChatAPI) CreateGroupChat(ctx context.Context, recipientRefs []string, topic string, includeMe bool) (models.Chatable, *sender.RequestError)

CreateGroupChat mocks base method.

func (*MockChatAPI) CreateOneOnOneChat

func (m *MockChatAPI) CreateOneOnOneChat(ctx context.Context, recipientRef string) (models.Chatable, *sender.RequestError)

CreateOneOnOneChat mocks base method.

func (*MockChatAPI) DeleteMessage

func (m *MockChatAPI) DeleteMessage(ctx context.Context, chatID, messageID string) *sender.RequestError

DeleteMessage mocks base method.

func (*MockChatAPI) EXPECT

func (m *MockChatAPI) EXPECT() *MockChatAPIMockRecorder

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

func (*MockChatAPI) GetGroupChat

func (m *MockChatAPI) GetGroupChat(ctx context.Context, chatID string) (models.Chatable, *sender.RequestError)

GetGroupChat mocks base method.

func (*MockChatAPI) GetMessage

func (m *MockChatAPI) GetMessage(ctx context.Context, chatID, messageID string) (models.ChatMessageable, *sender.RequestError)

GetMessage mocks base method.

func (*MockChatAPI) GetOneOnOneChat

func (m *MockChatAPI) GetOneOnOneChat(ctx context.Context, chatID string) (models.Chatable, *sender.RequestError)

GetOneOnOneChat mocks base method.

func (*MockChatAPI) ListAllMessages

func (m *MockChatAPI) ListAllMessages(ctx context.Context, startTime, endTime *time.Time, top *int32) (models.ChatMessageCollectionResponseable, *sender.RequestError)

ListAllMessages mocks base method.

func (*MockChatAPI) ListChats

ListChats mocks base method.

func (*MockChatAPI) ListGroupChatMembers

ListGroupChatMembers mocks base method.

func (*MockChatAPI) ListMessages

func (m *MockChatAPI) ListMessages(ctx context.Context, chatID string, includeSystem bool) (models.ChatMessageCollectionResponseable, *sender.RequestError)

ListMessages mocks base method.

func (*MockChatAPI) ListMessagesNext

func (m *MockChatAPI) ListMessagesNext(ctx context.Context, chatID, nextLink string, includeSystem bool) (models.ChatMessageCollectionResponseable, *sender.RequestError)

ListMessagesNext mocks base method.

func (*MockChatAPI) ListPinnedMessages

ListPinnedMessages mocks base method.

func (*MockChatAPI) PinMessage

func (m *MockChatAPI) PinMessage(ctx context.Context, chatID, messageID string) *sender.RequestError

PinMessage mocks base method.

func (*MockChatAPI) RemoveMemberFromGroupChat

func (m *MockChatAPI) RemoveMemberFromGroupChat(ctx context.Context, chatID, memberID string) *sender.RequestError

RemoveMemberFromGroupChat mocks base method.

func (*MockChatAPI) SearchChatMessages

func (m *MockChatAPI) SearchChatMessages(ctx context.Context, chatID *string, opts *search.SearchMessagesOptions, searchConfig *search.SearchConfig) ([]*api.SearchMessage, *sender.RequestError, *int32)

SearchChatMessages mocks base method.

func (*MockChatAPI) SendMessage

func (m *MockChatAPI) SendMessage(ctx context.Context, chatID, content, contentType string, mentions []models.ChatMessageMentionable) (models.ChatMessageable, *sender.RequestError)

SendMessage mocks base method.

func (*MockChatAPI) UnpinMessage

func (m *MockChatAPI) UnpinMessage(ctx context.Context, chatID, pinnedID string) *sender.RequestError

UnpinMessage mocks base method.

func (*MockChatAPI) UpdateGroupChatTopic

func (m *MockChatAPI) UpdateGroupChatTopic(ctx context.Context, chatID, topic string) (models.Chatable, *sender.RequestError)

UpdateGroupChatTopic mocks base method.

type MockChatAPIMockRecorder

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

MockChatAPIMockRecorder is the mock recorder for MockChatAPI.

func (*MockChatAPIMockRecorder) AddMemberToGroupChat

func (mr *MockChatAPIMockRecorder) AddMemberToGroupChat(ctx, chatID, userRef any) *gomock.Call

AddMemberToGroupChat indicates an expected call of AddMemberToGroupChat.

func (*MockChatAPIMockRecorder) CreateGroupChat

func (mr *MockChatAPIMockRecorder) CreateGroupChat(ctx, recipientRefs, topic, includeMe any) *gomock.Call

CreateGroupChat indicates an expected call of CreateGroupChat.

func (*MockChatAPIMockRecorder) CreateOneOnOneChat

func (mr *MockChatAPIMockRecorder) CreateOneOnOneChat(ctx, recipientRef any) *gomock.Call

CreateOneOnOneChat indicates an expected call of CreateOneOnOneChat.

func (*MockChatAPIMockRecorder) DeleteMessage

func (mr *MockChatAPIMockRecorder) DeleteMessage(ctx, chatID, messageID any) *gomock.Call

DeleteMessage indicates an expected call of DeleteMessage.

func (*MockChatAPIMockRecorder) GetGroupChat

func (mr *MockChatAPIMockRecorder) GetGroupChat(ctx, chatID any) *gomock.Call

GetGroupChat indicates an expected call of GetGroupChat.

func (*MockChatAPIMockRecorder) GetMessage

func (mr *MockChatAPIMockRecorder) GetMessage(ctx, chatID, messageID any) *gomock.Call

GetMessage indicates an expected call of GetMessage.

func (*MockChatAPIMockRecorder) GetOneOnOneChat

func (mr *MockChatAPIMockRecorder) GetOneOnOneChat(ctx, chatID any) *gomock.Call

GetOneOnOneChat indicates an expected call of GetOneOnOneChat.

func (*MockChatAPIMockRecorder) ListAllMessages

func (mr *MockChatAPIMockRecorder) ListAllMessages(ctx, startTime, endTime, top any) *gomock.Call

ListAllMessages indicates an expected call of ListAllMessages.

func (*MockChatAPIMockRecorder) ListChats

func (mr *MockChatAPIMockRecorder) ListChats(ctx, chatType any) *gomock.Call

ListChats indicates an expected call of ListChats.

func (*MockChatAPIMockRecorder) ListGroupChatMembers

func (mr *MockChatAPIMockRecorder) ListGroupChatMembers(ctx, chatID any) *gomock.Call

ListGroupChatMembers indicates an expected call of ListGroupChatMembers.

func (*MockChatAPIMockRecorder) ListMessages

func (mr *MockChatAPIMockRecorder) ListMessages(ctx, chatID, includeSystem any) *gomock.Call

ListMessages indicates an expected call of ListMessages.

func (*MockChatAPIMockRecorder) ListMessagesNext

func (mr *MockChatAPIMockRecorder) ListMessagesNext(ctx, chatID, nextLink, includeSystem any) *gomock.Call

ListMessagesNext indicates an expected call of ListMessagesNext.

func (*MockChatAPIMockRecorder) ListPinnedMessages

func (mr *MockChatAPIMockRecorder) ListPinnedMessages(ctx, chatID any) *gomock.Call

ListPinnedMessages indicates an expected call of ListPinnedMessages.

func (*MockChatAPIMockRecorder) PinMessage

func (mr *MockChatAPIMockRecorder) PinMessage(ctx, chatID, messageID any) *gomock.Call

PinMessage indicates an expected call of PinMessage.

func (*MockChatAPIMockRecorder) RemoveMemberFromGroupChat

func (mr *MockChatAPIMockRecorder) RemoveMemberFromGroupChat(ctx, chatID, memberID any) *gomock.Call

RemoveMemberFromGroupChat indicates an expected call of RemoveMemberFromGroupChat.

func (*MockChatAPIMockRecorder) SearchChatMessages

func (mr *MockChatAPIMockRecorder) SearchChatMessages(ctx, chatID, opts, searchConfig any) *gomock.Call

SearchChatMessages indicates an expected call of SearchChatMessages.

func (*MockChatAPIMockRecorder) SendMessage

func (mr *MockChatAPIMockRecorder) SendMessage(ctx, chatID, content, contentType, mentions any) *gomock.Call

SendMessage indicates an expected call of SendMessage.

func (*MockChatAPIMockRecorder) UnpinMessage

func (mr *MockChatAPIMockRecorder) UnpinMessage(ctx, chatID, pinnedID any) *gomock.Call

UnpinMessage indicates an expected call of UnpinMessage.

func (*MockChatAPIMockRecorder) UpdateGroupChatTopic

func (mr *MockChatAPIMockRecorder) UpdateGroupChatTopic(ctx, chatID, topic any) *gomock.Call

UpdateGroupChatTopic indicates an expected call of UpdateGroupChatTopic.

type MockGroupChatAPI

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

MockGroupChatAPI is a mock of GroupChatAPI interface.

func NewMockGroupChatAPI

func NewMockGroupChatAPI(ctrl *gomock.Controller) *MockGroupChatAPI

NewMockGroupChatAPI creates a new mock instance.

func (*MockGroupChatAPI) AddMemberToGroupChat

func (m *MockGroupChatAPI) AddMemberToGroupChat(ctx context.Context, chatID, userRef string) (models.ConversationMemberable, *sender.RequestError)

AddMemberToGroupChat mocks base method.

func (*MockGroupChatAPI) CreateGroupChat

func (m *MockGroupChatAPI) CreateGroupChat(ctx context.Context, recipientRefs []string, topic string, includeMe bool) (models.Chatable, *sender.RequestError)

CreateGroupChat mocks base method.

func (*MockGroupChatAPI) EXPECT

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

func (*MockGroupChatAPI) GetGroupChat

func (m *MockGroupChatAPI) GetGroupChat(ctx context.Context, chatID string) (models.Chatable, *sender.RequestError)

GetGroupChat mocks base method.

func (*MockGroupChatAPI) ListGroupChatMembers

ListGroupChatMembers mocks base method.

func (*MockGroupChatAPI) RemoveMemberFromGroupChat

func (m *MockGroupChatAPI) RemoveMemberFromGroupChat(ctx context.Context, chatID, memberID string) *sender.RequestError

RemoveMemberFromGroupChat mocks base method.

func (*MockGroupChatAPI) UpdateGroupChatTopic

func (m *MockGroupChatAPI) UpdateGroupChatTopic(ctx context.Context, chatID, topic string) (models.Chatable, *sender.RequestError)

UpdateGroupChatTopic mocks base method.

type MockGroupChatAPIMockRecorder

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

MockGroupChatAPIMockRecorder is the mock recorder for MockGroupChatAPI.

func (*MockGroupChatAPIMockRecorder) AddMemberToGroupChat

func (mr *MockGroupChatAPIMockRecorder) AddMemberToGroupChat(ctx, chatID, userRef any) *gomock.Call

AddMemberToGroupChat indicates an expected call of AddMemberToGroupChat.

func (*MockGroupChatAPIMockRecorder) CreateGroupChat

func (mr *MockGroupChatAPIMockRecorder) CreateGroupChat(ctx, recipientRefs, topic, includeMe any) *gomock.Call

CreateGroupChat indicates an expected call of CreateGroupChat.

func (*MockGroupChatAPIMockRecorder) GetGroupChat

func (mr *MockGroupChatAPIMockRecorder) GetGroupChat(ctx, chatID any) *gomock.Call

GetGroupChat indicates an expected call of GetGroupChat.

func (*MockGroupChatAPIMockRecorder) ListGroupChatMembers

func (mr *MockGroupChatAPIMockRecorder) ListGroupChatMembers(ctx, chatID any) *gomock.Call

ListGroupChatMembers indicates an expected call of ListGroupChatMembers.

func (*MockGroupChatAPIMockRecorder) RemoveMemberFromGroupChat

func (mr *MockGroupChatAPIMockRecorder) RemoveMemberFromGroupChat(ctx, chatID, memberID any) *gomock.Call

RemoveMemberFromGroupChat indicates an expected call of RemoveMemberFromGroupChat.

func (*MockGroupChatAPIMockRecorder) UpdateGroupChatTopic

func (mr *MockGroupChatAPIMockRecorder) UpdateGroupChatTopic(ctx, chatID, topic any) *gomock.Call

UpdateGroupChatTopic indicates an expected call of UpdateGroupChatTopic.

type MockOneOnOneChatAPI

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

MockOneOnOneChatAPI is a mock of OneOnOneChatAPI interface.

func NewMockOneOnOneChatAPI

func NewMockOneOnOneChatAPI(ctrl *gomock.Controller) *MockOneOnOneChatAPI

NewMockOneOnOneChatAPI creates a new mock instance.

func (*MockOneOnOneChatAPI) CreateOneOnOneChat

func (m *MockOneOnOneChatAPI) CreateOneOnOneChat(ctx context.Context, recipientRef string) (models.Chatable, *sender.RequestError)

CreateOneOnOneChat mocks base method.

func (*MockOneOnOneChatAPI) EXPECT

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

func (*MockOneOnOneChatAPI) GetOneOnOneChat

func (m *MockOneOnOneChatAPI) GetOneOnOneChat(ctx context.Context, chatID string) (models.Chatable, *sender.RequestError)

GetOneOnOneChat mocks base method.

type MockOneOnOneChatAPIMockRecorder

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

MockOneOnOneChatAPIMockRecorder is the mock recorder for MockOneOnOneChatAPI.

func (*MockOneOnOneChatAPIMockRecorder) CreateOneOnOneChat

func (mr *MockOneOnOneChatAPIMockRecorder) CreateOneOnOneChat(ctx, recipientRef any) *gomock.Call

CreateOneOnOneChat indicates an expected call of CreateOneOnOneChat.

func (*MockOneOnOneChatAPIMockRecorder) GetOneOnOneChat

func (mr *MockOneOnOneChatAPIMockRecorder) GetOneOnOneChat(ctx, chatID any) *gomock.Call

GetOneOnOneChat indicates an expected call of GetOneOnOneChat.

type MockSearchAPI

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

MockSearchAPI is a mock of SearchAPI interface.

func NewMockSearchAPI

func NewMockSearchAPI(ctrl *gomock.Controller) *MockSearchAPI

NewMockSearchAPI creates a new mock instance.

func (*MockSearchAPI) EXPECT

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

func (*MockSearchAPI) SearchMessages

SearchMessages mocks base method.

type MockSearchAPIMockRecorder

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

MockSearchAPIMockRecorder is the mock recorder for MockSearchAPI.

func (*MockSearchAPIMockRecorder) SearchMessages

func (mr *MockSearchAPIMockRecorder) SearchMessages(ctx, searchRequest any) *gomock.Call

SearchMessages indicates an expected call of SearchMessages.

type MockTaskRunner

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

MockTaskRunner is a mock of TaskRunner interface.

func NewMockTaskRunner

func NewMockTaskRunner(ctrl *gomock.Controller) *MockTaskRunner

NewMockTaskRunner creates a new mock instance.

func (*MockTaskRunner) EXPECT

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

func (*MockTaskRunner) Run

func (m *MockTaskRunner) Run(fn func())

Run mocks base method.

func (*MockTaskRunner) Wait

func (m *MockTaskRunner) Wait()

Wait mocks base method.

type MockTaskRunnerMockRecorder

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

MockTaskRunnerMockRecorder is the mock recorder for MockTaskRunner.

func (*MockTaskRunnerMockRecorder) Run

Run indicates an expected call of Run.

func (*MockTaskRunnerMockRecorder) Wait

Wait indicates an expected call of Wait.

type MockTeamAPI

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

MockTeamAPI is a mock of TeamAPI interface.

func NewMockTeamAPI

func NewMockTeamAPI(ctrl *gomock.Controller) *MockTeamAPI

NewMockTeamAPI creates a new mock instance.

func (*MockTeamAPI) AddMember

func (m *MockTeamAPI) AddMember(ctx context.Context, teamID, userRef string, roles []string) (models.ConversationMemberable, *sender.RequestError)

AddMember mocks base method.

func (*MockTeamAPI) Archive

func (m *MockTeamAPI) Archive(ctx context.Context, teamID string, spoReadOnlyForMembers *bool) *sender.RequestError

Archive mocks base method.

func (*MockTeamAPI) CreateFromTemplate

func (m *MockTeamAPI) CreateFromTemplate(ctx context.Context, displayName, description string, owners, members []string, visibility string, includeMe bool) (string, *sender.RequestError)

CreateFromTemplate mocks base method.

func (*MockTeamAPI) CreateViaGroup

func (m *MockTeamAPI) CreateViaGroup(ctx context.Context, displayName, mailNickname, visibility string) (string, *sender.RequestError)

CreateViaGroup mocks base method.

func (*MockTeamAPI) Delete

func (m *MockTeamAPI) Delete(ctx context.Context, teamID string) *sender.RequestError

Delete mocks base method.

func (*MockTeamAPI) EXPECT

func (m *MockTeamAPI) EXPECT() *MockTeamAPIMockRecorder

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

func (*MockTeamAPI) Get

Get mocks base method.

func (*MockTeamAPI) GetMember

func (m *MockTeamAPI) GetMember(ctx context.Context, teamID, memberID string) (models.ConversationMemberable, *sender.RequestError)

GetMember mocks base method.

func (*MockTeamAPI) ListAllMessages

func (m *MockTeamAPI) ListAllMessages(ctx context.Context, teamID string, startTime, endTime *time.Time, top *int32) (models.ChatMessageCollectionResponseable, *sender.RequestError)

ListAllMessages mocks base method.

func (*MockTeamAPI) ListMembers

ListMembers mocks base method.

func (*MockTeamAPI) ListMyJoined

ListMyJoined mocks base method.

func (*MockTeamAPI) RemoveMember

func (m *MockTeamAPI) RemoveMember(ctx context.Context, teamID, memberID string) *sender.RequestError

RemoveMember mocks base method.

func (*MockTeamAPI) RestoreDeleted

func (m *MockTeamAPI) RestoreDeleted(ctx context.Context, deletedGroupID string) (models.DirectoryObjectable, *sender.RequestError)

RestoreDeleted mocks base method.

func (*MockTeamAPI) Unarchive

func (m *MockTeamAPI) Unarchive(ctx context.Context, teamID string) *sender.RequestError

Unarchive mocks base method.

func (*MockTeamAPI) UpdateMemberRoles

func (m *MockTeamAPI) UpdateMemberRoles(ctx context.Context, teamID, memberID string, roles []string) (models.ConversationMemberable, *sender.RequestError)

UpdateMemberRoles mocks base method.

func (*MockTeamAPI) UpdateTeam

func (m *MockTeamAPI) UpdateTeam(ctx context.Context, teamID string, update *models0.TeamUpdate) (models.Teamable, *sender.RequestError)

UpdateTeam mocks base method.

type MockTeamAPIMockRecorder

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

MockTeamAPIMockRecorder is the mock recorder for MockTeamAPI.

func (*MockTeamAPIMockRecorder) AddMember

func (mr *MockTeamAPIMockRecorder) AddMember(ctx, teamID, userRef, roles any) *gomock.Call

AddMember indicates an expected call of AddMember.

func (*MockTeamAPIMockRecorder) Archive

func (mr *MockTeamAPIMockRecorder) Archive(ctx, teamID, spoReadOnlyForMembers any) *gomock.Call

Archive indicates an expected call of Archive.

func (*MockTeamAPIMockRecorder) CreateFromTemplate

func (mr *MockTeamAPIMockRecorder) CreateFromTemplate(ctx, displayName, description, owners, members, visibility, includeMe any) *gomock.Call

CreateFromTemplate indicates an expected call of CreateFromTemplate.

func (*MockTeamAPIMockRecorder) CreateViaGroup

func (mr *MockTeamAPIMockRecorder) CreateViaGroup(ctx, displayName, mailNickname, visibility any) *gomock.Call

CreateViaGroup indicates an expected call of CreateViaGroup.

func (*MockTeamAPIMockRecorder) Delete

func (mr *MockTeamAPIMockRecorder) Delete(ctx, teamID any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTeamAPIMockRecorder) Get

func (mr *MockTeamAPIMockRecorder) Get(ctx, teamID any) *gomock.Call

Get indicates an expected call of Get.

func (*MockTeamAPIMockRecorder) GetMember

func (mr *MockTeamAPIMockRecorder) GetMember(ctx, teamID, memberID any) *gomock.Call

GetMember indicates an expected call of GetMember.

func (*MockTeamAPIMockRecorder) ListAllMessages

func (mr *MockTeamAPIMockRecorder) ListAllMessages(ctx, teamID, startTime, endTime, top any) *gomock.Call

ListAllMessages indicates an expected call of ListAllMessages.

func (*MockTeamAPIMockRecorder) ListMembers

func (mr *MockTeamAPIMockRecorder) ListMembers(ctx, teamID any) *gomock.Call

ListMembers indicates an expected call of ListMembers.

func (*MockTeamAPIMockRecorder) ListMyJoined

func (mr *MockTeamAPIMockRecorder) ListMyJoined(ctx any) *gomock.Call

ListMyJoined indicates an expected call of ListMyJoined.

func (*MockTeamAPIMockRecorder) RemoveMember

func (mr *MockTeamAPIMockRecorder) RemoveMember(ctx, teamID, memberID any) *gomock.Call

RemoveMember indicates an expected call of RemoveMember.

func (*MockTeamAPIMockRecorder) RestoreDeleted

func (mr *MockTeamAPIMockRecorder) RestoreDeleted(ctx, deletedGroupID any) *gomock.Call

RestoreDeleted indicates an expected call of RestoreDeleted.

func (*MockTeamAPIMockRecorder) Unarchive

func (mr *MockTeamAPIMockRecorder) Unarchive(ctx, teamID any) *gomock.Call

Unarchive indicates an expected call of Unarchive.

func (*MockTeamAPIMockRecorder) UpdateMemberRoles

func (mr *MockTeamAPIMockRecorder) UpdateMemberRoles(ctx, teamID, memberID, roles any) *gomock.Call

UpdateMemberRoles indicates an expected call of UpdateMemberRoles.

func (*MockTeamAPIMockRecorder) UpdateTeam

func (mr *MockTeamAPIMockRecorder) UpdateTeam(ctx, teamID, update any) *gomock.Call

UpdateTeam indicates an expected call of UpdateTeam.

type MockTeamResolver

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

MockTeamResolver is a mock of TeamResolver interface.

func NewMockTeamResolver

func NewMockTeamResolver(ctrl *gomock.Controller) *MockTeamResolver

NewMockTeamResolver creates a new mock instance.

func (*MockTeamResolver) EXPECT

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

func (*MockTeamResolver) ResolveTeamMemberRefToID

func (m *MockTeamResolver) ResolveTeamMemberRefToID(ctx context.Context, teamID, userRef string) (string, error)

ResolveTeamMemberRefToID mocks base method.

func (*MockTeamResolver) ResolveTeamRefToID

func (m *MockTeamResolver) ResolveTeamRefToID(ctx context.Context, teamRef string) (string, error)

ResolveTeamRefToID mocks base method.

type MockTeamResolverMockRecorder

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

MockTeamResolverMockRecorder is the mock recorder for MockTeamResolver.

func (*MockTeamResolverMockRecorder) ResolveTeamMemberRefToID

func (mr *MockTeamResolverMockRecorder) ResolveTeamMemberRefToID(ctx, teamID, userRef any) *gomock.Call

ResolveTeamMemberRefToID indicates an expected call of ResolveTeamMemberRefToID.

func (*MockTeamResolverMockRecorder) ResolveTeamRefToID

func (mr *MockTeamResolverMockRecorder) ResolveTeamRefToID(ctx, teamRef any) *gomock.Call

ResolveTeamRefToID indicates an expected call of ResolveTeamRefToID.

type MockUserAPI

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

MockUserAPI is a mock of UserAPI interface.

func NewMockUserAPI

func NewMockUserAPI(ctrl *gomock.Controller) *MockUserAPI

NewMockUserAPI creates a new mock instance.

func (*MockUserAPI) EXPECT

func (m *MockUserAPI) EXPECT() *MockUserAPIMockRecorder

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

func (*MockUserAPI) GetUserByEmailOrUPN

func (m *MockUserAPI) GetUserByEmailOrUPN(ctx context.Context, emailOrUPN string) (models.Userable, *sender.RequestError)

GetUserByEmailOrUPN mocks base method.

type MockUserAPIMockRecorder

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

MockUserAPIMockRecorder is the mock recorder for MockUserAPI.

func (*MockUserAPIMockRecorder) GetUserByEmailOrUPN

func (mr *MockUserAPIMockRecorder) GetUserByEmailOrUPN(ctx, emailOrUPN any) *gomock.Call

GetUserByEmailOrUPN indicates an expected call of GetUserByEmailOrUPN.

type MockchannelOps

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

MockchannelOps is a mock of channelOps interface.

func NewMockchannelOps

func NewMockchannelOps(ctrl *gomock.Controller) *MockchannelOps

NewMockchannelOps creates a new mock instance.

func (*MockchannelOps) AddMember

func (m *MockchannelOps) AddMember(ctx context.Context, teamID, channelID, userID string, isOwner bool) (*models.Member, error)

AddMember mocks base method.

func (*MockchannelOps) CreatePrivateChannel

func (m *MockchannelOps) CreatePrivateChannel(ctx context.Context, teamID, name string, memberIDs, ownerIDs []string) (*models.Channel, error)

CreatePrivateChannel mocks base method.

func (*MockchannelOps) CreateStandardChannel

func (m *MockchannelOps) CreateStandardChannel(ctx context.Context, teamID, name string) (*models.Channel, error)

CreateStandardChannel mocks base method.

func (*MockchannelOps) DeleteChannel

func (m *MockchannelOps) DeleteChannel(ctx context.Context, teamID, channelID, channelRef string) error

DeleteChannel mocks base method.

func (*MockchannelOps) EXPECT

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

func (*MockchannelOps) GetChannelByID

func (m *MockchannelOps) GetChannelByID(ctx context.Context, teamID, channelID string) (*models.Channel, error)

GetChannelByID mocks base method.

func (*MockchannelOps) GetMentions

func (m *MockchannelOps) GetMentions(ctx context.Context, teamID, teamRef, channelRef, channelID string, rawMentions []string) ([]models.Mention, error)

GetMentions mocks base method.

func (*MockchannelOps) GetMessage

func (m *MockchannelOps) GetMessage(ctx context.Context, teamID, channelID, messageID string) (*models.Message, error)

GetMessage mocks base method.

func (*MockchannelOps) GetReply

func (m *MockchannelOps) GetReply(ctx context.Context, teamID, channelID, messageID, replyID string) (*models.Message, error)

GetReply mocks base method.

func (*MockchannelOps) ListChannelsByTeamID

func (m *MockchannelOps) ListChannelsByTeamID(ctx context.Context, teamID string) ([]*models.Channel, error)

ListChannelsByTeamID mocks base method.

func (*MockchannelOps) ListMembers

func (m *MockchannelOps) ListMembers(ctx context.Context, teamID, channelID string) ([]*models.Member, error)

ListMembers mocks base method.

func (*MockchannelOps) ListMessages

func (m *MockchannelOps) ListMessages(ctx context.Context, teamID, channelID string, opts *models.ListMessagesOptions, includeSystem bool) (*models.MessageCollection, error)

ListMessages mocks base method.

func (*MockchannelOps) ListMessagesNext

func (m *MockchannelOps) ListMessagesNext(ctx context.Context, teamID, channelID, nextLink string, includeSystem bool) (*models.MessageCollection, error)

ListMessagesNext mocks base method.

func (*MockchannelOps) ListReplies

func (m *MockchannelOps) ListReplies(ctx context.Context, teamID, channelID, messageID string, opts *models.ListMessagesOptions, includeSystem bool) (*models.MessageCollection, error)

ListReplies mocks base method.

func (*MockchannelOps) ListRepliesNext

func (m *MockchannelOps) ListRepliesNext(ctx context.Context, teamID, channelID, messageID, nextLink string, includeSystem bool) (*models.MessageCollection, error)

ListRepliesNext mocks base method.

func (*MockchannelOps) RemoveMember

func (m *MockchannelOps) RemoveMember(ctx context.Context, teamID, channelID, memberID, userRef string) error

RemoveMember mocks base method.

func (*MockchannelOps) SearchChannelMessages

func (m *MockchannelOps) SearchChannelMessages(ctx context.Context, teamID, channelID *string, opts *search.SearchMessagesOptions, searchConfig *search.SearchConfig) (*search.SearchResults, error)

SearchChannelMessages mocks base method.

func (*MockchannelOps) SendMessage

func (m *MockchannelOps) SendMessage(ctx context.Context, teamID, channelID string, body models.MessageBody) (*models.Message, error)

SendMessage mocks base method.

func (*MockchannelOps) SendReply

func (m *MockchannelOps) SendReply(ctx context.Context, teamID, channelID, messageID string, body models.MessageBody) (*models.Message, error)

SendReply mocks base method.

func (*MockchannelOps) UpdateMemberRoles

func (m *MockchannelOps) UpdateMemberRoles(ctx context.Context, teamID, channelID, memberID string, isOwner bool) (*models.Member, error)

UpdateMemberRoles mocks base method.

type MockchannelOpsMockRecorder

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

MockchannelOpsMockRecorder is the mock recorder for MockchannelOps.

func (*MockchannelOpsMockRecorder) AddMember

func (mr *MockchannelOpsMockRecorder) AddMember(ctx, teamID, channelID, userID, isOwner any) *gomock.Call

AddMember indicates an expected call of AddMember.

func (*MockchannelOpsMockRecorder) CreatePrivateChannel

func (mr *MockchannelOpsMockRecorder) CreatePrivateChannel(ctx, teamID, name, memberIDs, ownerIDs any) *gomock.Call

CreatePrivateChannel indicates an expected call of CreatePrivateChannel.

func (*MockchannelOpsMockRecorder) CreateStandardChannel

func (mr *MockchannelOpsMockRecorder) CreateStandardChannel(ctx, teamID, name any) *gomock.Call

CreateStandardChannel indicates an expected call of CreateStandardChannel.

func (*MockchannelOpsMockRecorder) DeleteChannel

func (mr *MockchannelOpsMockRecorder) DeleteChannel(ctx, teamID, channelID, channelRef any) *gomock.Call

DeleteChannel indicates an expected call of DeleteChannel.

func (*MockchannelOpsMockRecorder) GetChannelByID

func (mr *MockchannelOpsMockRecorder) GetChannelByID(ctx, teamID, channelID any) *gomock.Call

GetChannelByID indicates an expected call of GetChannelByID.

func (*MockchannelOpsMockRecorder) GetMentions

func (mr *MockchannelOpsMockRecorder) GetMentions(ctx, teamID, teamRef, channelRef, channelID, rawMentions any) *gomock.Call

GetMentions indicates an expected call of GetMentions.

func (*MockchannelOpsMockRecorder) GetMessage

func (mr *MockchannelOpsMockRecorder) GetMessage(ctx, teamID, channelID, messageID any) *gomock.Call

GetMessage indicates an expected call of GetMessage.

func (*MockchannelOpsMockRecorder) GetReply

func (mr *MockchannelOpsMockRecorder) GetReply(ctx, teamID, channelID, messageID, replyID any) *gomock.Call

GetReply indicates an expected call of GetReply.

func (*MockchannelOpsMockRecorder) ListChannelsByTeamID

func (mr *MockchannelOpsMockRecorder) ListChannelsByTeamID(ctx, teamID any) *gomock.Call

ListChannelsByTeamID indicates an expected call of ListChannelsByTeamID.

func (*MockchannelOpsMockRecorder) ListMembers

func (mr *MockchannelOpsMockRecorder) ListMembers(ctx, teamID, channelID any) *gomock.Call

ListMembers indicates an expected call of ListMembers.

func (*MockchannelOpsMockRecorder) ListMessages

func (mr *MockchannelOpsMockRecorder) ListMessages(ctx, teamID, channelID, opts, includeSystem any) *gomock.Call

ListMessages indicates an expected call of ListMessages.

func (*MockchannelOpsMockRecorder) ListMessagesNext

func (mr *MockchannelOpsMockRecorder) ListMessagesNext(ctx, teamID, channelID, nextLink, includeSystem any) *gomock.Call

ListMessagesNext indicates an expected call of ListMessagesNext.

func (*MockchannelOpsMockRecorder) ListReplies

func (mr *MockchannelOpsMockRecorder) ListReplies(ctx, teamID, channelID, messageID, opts, includeSystem any) *gomock.Call

ListReplies indicates an expected call of ListReplies.

func (*MockchannelOpsMockRecorder) ListRepliesNext

func (mr *MockchannelOpsMockRecorder) ListRepliesNext(ctx, teamID, channelID, messageID, nextLink, includeSystem any) *gomock.Call

ListRepliesNext indicates an expected call of ListRepliesNext.

func (*MockchannelOpsMockRecorder) RemoveMember

func (mr *MockchannelOpsMockRecorder) RemoveMember(ctx, teamID, channelID, memberID, userRef any) *gomock.Call

RemoveMember indicates an expected call of RemoveMember.

func (*MockchannelOpsMockRecorder) SearchChannelMessages

func (mr *MockchannelOpsMockRecorder) SearchChannelMessages(ctx, teamID, channelID, opts, searchConfig any) *gomock.Call

SearchChannelMessages indicates an expected call of SearchChannelMessages.

func (*MockchannelOpsMockRecorder) SendMessage

func (mr *MockchannelOpsMockRecorder) SendMessage(ctx, teamID, channelID, body any) *gomock.Call

SendMessage indicates an expected call of SendMessage.

func (*MockchannelOpsMockRecorder) SendReply

func (mr *MockchannelOpsMockRecorder) SendReply(ctx, teamID, channelID, messageID, body any) *gomock.Call

SendReply indicates an expected call of SendReply.

func (*MockchannelOpsMockRecorder) UpdateMemberRoles

func (mr *MockchannelOpsMockRecorder) UpdateMemberRoles(ctx, teamID, channelID, memberID, isOwner any) *gomock.Call

UpdateMemberRoles indicates an expected call of UpdateMemberRoles.

type MockteamsOps

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

MockteamsOps is a mock of teamsOps interface.

func NewMockteamsOps

func NewMockteamsOps(ctrl *gomock.Controller) *MockteamsOps

NewMockteamsOps creates a new mock instance.

func (*MockteamsOps) AddMember

func (m *MockteamsOps) AddMember(ctx context.Context, teamID, userRef string, isOwner bool) (*models.Member, error)

AddMember mocks base method.

func (*MockteamsOps) Archive

func (m *MockteamsOps) Archive(ctx context.Context, teamID, teamRef string, spoReadOnlyForMembers *bool) error

Archive mocks base method.

func (*MockteamsOps) CreateFromTemplate

func (m *MockteamsOps) CreateFromTemplate(ctx context.Context, displayName, description string, ownerIDs, membersIDs []string, visibility string, includeMe bool) (string, error)

CreateFromTemplate mocks base method.

func (*MockteamsOps) CreateViaGroup

func (m *MockteamsOps) CreateViaGroup(ctx context.Context, displayName, mailNickname, visibility string) (*models.Team, error)

CreateViaGroup mocks base method.

func (*MockteamsOps) DeleteTeam

func (m *MockteamsOps) DeleteTeam(ctx context.Context, teamID, teamRef string) error

DeleteTeam mocks base method.

func (*MockteamsOps) EXPECT

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

func (*MockteamsOps) GetMemberByID

func (m *MockteamsOps) GetMemberByID(ctx context.Context, teamID, memberID string) (*models.Member, error)

GetMemberByID mocks base method.

func (*MockteamsOps) GetTeamByID

func (m *MockteamsOps) GetTeamByID(ctx context.Context, teamID string) (*models.Team, error)

GetTeamByID mocks base method.

func (*MockteamsOps) ListMembers

func (m *MockteamsOps) ListMembers(ctx context.Context, teamID string) ([]*models.Member, error)

ListMembers mocks base method.

func (*MockteamsOps) ListMyJoinedTeams

func (m *MockteamsOps) ListMyJoinedTeams(ctx context.Context) ([]*models.Team, error)

ListMyJoinedTeams mocks base method.

func (*MockteamsOps) RemoveMember

func (m *MockteamsOps) RemoveMember(ctx context.Context, teamID, memberID, userRef string) error

RemoveMember mocks base method.

func (*MockteamsOps) RestoreDeletedTeam

func (m *MockteamsOps) RestoreDeletedTeam(ctx context.Context, deletedGroupID string) (string, error)

RestoreDeletedTeam mocks base method.

func (*MockteamsOps) Unarchive

func (m *MockteamsOps) Unarchive(ctx context.Context, teamID string) error

Unarchive mocks base method.

func (*MockteamsOps) UpdateMemberRoles

func (m *MockteamsOps) UpdateMemberRoles(ctx context.Context, teamID, memberID string, isOwner bool) (*models.Member, error)

UpdateMemberRoles mocks base method.

func (*MockteamsOps) UpdateTeam

func (m *MockteamsOps) UpdateTeam(ctx context.Context, teamID string, update *models.TeamUpdate, teamRef string) (*models.Team, error)

UpdateTeam mocks base method.

type MockteamsOpsMockRecorder

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

MockteamsOpsMockRecorder is the mock recorder for MockteamsOps.

func (*MockteamsOpsMockRecorder) AddMember

func (mr *MockteamsOpsMockRecorder) AddMember(ctx, teamID, userRef, isOwner any) *gomock.Call

AddMember indicates an expected call of AddMember.

func (*MockteamsOpsMockRecorder) Archive

func (mr *MockteamsOpsMockRecorder) Archive(ctx, teamID, teamRef, spoReadOnlyForMembers any) *gomock.Call

Archive indicates an expected call of Archive.

func (*MockteamsOpsMockRecorder) CreateFromTemplate

func (mr *MockteamsOpsMockRecorder) CreateFromTemplate(ctx, displayName, description, ownerIDs, membersIDs, visibility, includeMe any) *gomock.Call

CreateFromTemplate indicates an expected call of CreateFromTemplate.

func (*MockteamsOpsMockRecorder) CreateViaGroup

func (mr *MockteamsOpsMockRecorder) CreateViaGroup(ctx, displayName, mailNickname, visibility any) *gomock.Call

CreateViaGroup indicates an expected call of CreateViaGroup.

func (*MockteamsOpsMockRecorder) DeleteTeam

func (mr *MockteamsOpsMockRecorder) DeleteTeam(ctx, teamID, teamRef any) *gomock.Call

DeleteTeam indicates an expected call of DeleteTeam.

func (*MockteamsOpsMockRecorder) GetMemberByID

func (mr *MockteamsOpsMockRecorder) GetMemberByID(ctx, teamID, memberID any) *gomock.Call

GetMemberByID indicates an expected call of GetMemberByID.

func (*MockteamsOpsMockRecorder) GetTeamByID

func (mr *MockteamsOpsMockRecorder) GetTeamByID(ctx, teamID any) *gomock.Call

GetTeamByID indicates an expected call of GetTeamByID.

func (*MockteamsOpsMockRecorder) ListMembers

func (mr *MockteamsOpsMockRecorder) ListMembers(ctx, teamID any) *gomock.Call

ListMembers indicates an expected call of ListMembers.

func (*MockteamsOpsMockRecorder) ListMyJoinedTeams

func (mr *MockteamsOpsMockRecorder) ListMyJoinedTeams(ctx any) *gomock.Call

ListMyJoinedTeams indicates an expected call of ListMyJoinedTeams.

func (*MockteamsOpsMockRecorder) RemoveMember

func (mr *MockteamsOpsMockRecorder) RemoveMember(ctx, teamID, memberID, userRef any) *gomock.Call

RemoveMember indicates an expected call of RemoveMember.

func (*MockteamsOpsMockRecorder) RestoreDeletedTeam

func (mr *MockteamsOpsMockRecorder) RestoreDeletedTeam(ctx, deletedGroupID any) *gomock.Call

RestoreDeletedTeam indicates an expected call of RestoreDeletedTeam.

func (*MockteamsOpsMockRecorder) Unarchive

func (mr *MockteamsOpsMockRecorder) Unarchive(ctx, teamID any) *gomock.Call

Unarchive indicates an expected call of Unarchive.

func (*MockteamsOpsMockRecorder) UpdateMemberRoles

func (mr *MockteamsOpsMockRecorder) UpdateMemberRoles(ctx, teamID, memberID, isOwner any) *gomock.Call

UpdateMemberRoles indicates an expected call of UpdateMemberRoles.

func (*MockteamsOpsMockRecorder) UpdateTeam

func (mr *MockteamsOpsMockRecorder) UpdateTeam(ctx, teamID, update, teamRef any) *gomock.Call

UpdateTeam indicates an expected call of UpdateTeam.

type NewChannelParams

type NewChannelParams struct {
	ID   *string
	Name *string
}

type NewChatParams

type NewChatParams struct {
	ID       *string
	Type     *msmodels.ChatType
	Members  []msmodels.ConversationMemberable
	IsHidden *bool
	Topic    *string
}

type NewMemberParams

type NewMemberParams struct {
	ID          *string
	UserID      *string
	DisplayName *string
	Roles       []string
	Email       *string
}

type NewMessageParams

type NewMessageParams struct {
	ID              *string
	Content         *string
	ContentType     *msmodels.BodyType
	CreatedDateTime *time.Time
	FromUserID      *string
	FromDisplayName *string
	ReplyCount      *int
}

type NewPinnedMessageParams

type NewPinnedMessageParams struct {
	ID           *string
	NewMsgParams *NewMessageParams
}

type NewTeamParams

type NewTeamParams struct {
	ID          *string
	DisplayName *string
	Description *string
	IsArchived  *bool
	Visibility  *msmodels.TeamVisibilityType
}

type NewUserParams

type NewUserParams struct {
	ID          *string
	DisplayName *string
}

USER

Jump to

Keyboard shortcuts

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