Documentation
¶
Index ¶
- type AlertUsecasesMock
- type ChatNotifierMock
- func (mock *ChatNotifierMock) NotifyMessage(ctx context.Context, ticketID types.TicketID, message string) error
- func (mock *ChatNotifierMock) NotifyMessageCalls() []struct{ ... }
- func (mock *ChatNotifierMock) NotifyTrace(ctx context.Context, ticketID types.TicketID, message string) error
- func (mock *ChatNotifierMock) NotifyTraceCalls() []struct{ ... }
- type EmbeddingClientMock
- type LLMClientMock
- func (mock *LLMClientMock) GenerateEmbedding(ctx context.Context, dimension int, input []string) ([][]float64, error)
- func (mock *LLMClientMock) GenerateEmbeddingCalls() []struct{ ... }
- func (mock *LLMClientMock) NewSession(ctx context.Context, options ...gollem.SessionOption) (gollem.Session, error)
- func (mock *LLMClientMock) NewSessionCalls() []struct{ ... }
- type LLMSessionMock
- func (mock *LLMSessionMock) AppendHistory(history *gollem.History) error
- func (mock *LLMSessionMock) AppendHistoryCalls() []struct{ ... }
- func (mock *LLMSessionMock) CountToken(ctx context.Context, input ...gollem.Input) (int, error)
- func (mock *LLMSessionMock) CountTokenCalls() []struct{ ... }
- func (mock *LLMSessionMock) GenerateContent(ctx context.Context, input ...gollem.Input) (*gollem.Response, error)
- func (mock *LLMSessionMock) GenerateContentCalls() []struct{ ... }
- func (mock *LLMSessionMock) GenerateStream(ctx context.Context, input ...gollem.Input) (<-chan *gollem.Response, error)
- func (mock *LLMSessionMock) GenerateStreamCalls() []struct{ ... }
- func (mock *LLMSessionMock) History() (*gollem.History, error)
- func (mock *LLMSessionMock) HistoryCalls() []struct{}
- type NotifierMock
- func (mock *NotifierMock) NotifyEnrichPolicyResult(ctx context.Context, ev *event.EnrichPolicyResultEvent)
- func (mock *NotifierMock) NotifyEnrichPolicyResultCalls() []struct{ ... }
- func (mock *NotifierMock) NotifyEnrichTaskPrompt(ctx context.Context, ev *event.EnrichTaskPromptEvent)
- func (mock *NotifierMock) NotifyEnrichTaskPromptCalls() []struct{ ... }
- func (mock *NotifierMock) NotifyEnrichTaskResponse(ctx context.Context, ev *event.EnrichTaskResponseEvent)
- func (mock *NotifierMock) NotifyEnrichTaskResponseCalls() []struct{ ... }
- func (mock *NotifierMock) NotifyError(ctx context.Context, ev *event.ErrorEvent)
- func (mock *NotifierMock) NotifyErrorCalls() []struct{ ... }
- func (mock *NotifierMock) NotifyIngestPolicyResult(ctx context.Context, ev *event.IngestPolicyResultEvent)
- func (mock *NotifierMock) NotifyIngestPolicyResultCalls() []struct{ ... }
- func (mock *NotifierMock) NotifyTriagePolicyResult(ctx context.Context, ev *event.TriagePolicyResultEvent)
- func (mock *NotifierMock) NotifyTriagePolicyResultCalls() []struct{ ... }
- type PolicyClientMock
- type PromptServiceMock
- func (mock *PromptServiceMock) GeneratePrompt(ctx context.Context, templateName string, alertMoqParam *alert.Alert) (string, error)
- func (mock *PromptServiceMock) GeneratePromptCalls() []struct{ ... }
- func (mock *PromptServiceMock) GeneratePromptWithParams(ctx context.Context, templateName string, alertMoqParam *alert.Alert, ...) (string, error)
- func (mock *PromptServiceMock) GeneratePromptWithParamsCalls() []struct{ ... }
- func (mock *PromptServiceMock) ReadPromptFile(ctx context.Context, templateName string) (string, error)
- func (mock *PromptServiceMock) ReadPromptFileCalls() []struct{ ... }
- type RepositoryMock
- func (mock *RepositoryMock) ArchiveKnowledge(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug) error
- func (mock *RepositoryMock) ArchiveKnowledgeCalls() []struct{ ... }
- func (mock *RepositoryMock) BatchGetAlerts(ctx context.Context, alertIDs []types.AlertID) (alert.Alerts, error)
- func (mock *RepositoryMock) BatchGetAlertsCalls() []struct{ ... }
- func (mock *RepositoryMock) BatchGetTickets(ctx context.Context, ticketIDs []types.TicketID) ([]*ticket.Ticket, error)
- func (mock *RepositoryMock) BatchGetTicketsCalls() []struct{ ... }
- func (mock *RepositoryMock) BatchPutAlerts(ctx context.Context, alerts alert.Alerts) error
- func (mock *RepositoryMock) BatchPutAlertsCalls() []struct{ ... }
- func (mock *RepositoryMock) BatchSaveAgentMemories(ctx context.Context, memories []*memory.AgentMemory) error
- func (mock *RepositoryMock) BatchSaveAgentMemoriesCalls() []struct{ ... }
- func (mock *RepositoryMock) BatchUpdateTicketsStatus(ctx context.Context, ticketIDs []types.TicketID, status types.TicketStatus) error
- func (mock *RepositoryMock) BatchUpdateTicketsStatusCalls() []struct{ ... }
- func (mock *RepositoryMock) BindAlertsToTicket(ctx context.Context, alertIDs []types.AlertID, ticketID types.TicketID) error
- func (mock *RepositoryMock) BindAlertsToTicketCalls() []struct{ ... }
- func (mock *RepositoryMock) CalculateKnowledgeSize(ctx context.Context, topic types.KnowledgeTopic) (int, error)
- func (mock *RepositoryMock) CalculateKnowledgeSizeCalls() []struct{ ... }
- func (mock *RepositoryMock) CountActivities(ctx context.Context) (int, error)
- func (mock *RepositoryMock) CountActivitiesCalls() []struct{ ... }
- func (mock *RepositoryMock) CountAlertsWithoutTicket(ctx context.Context) (int, error)
- func (mock *RepositoryMock) CountAlertsWithoutTicketCalls() []struct{ ... }
- func (mock *RepositoryMock) CountDeclinedAlerts(ctx context.Context) (int, error)
- func (mock *RepositoryMock) CountDeclinedAlertsCalls() []struct{ ... }
- func (mock *RepositoryMock) CountTicketComments(ctx context.Context, ticketID types.TicketID) (int, error)
- func (mock *RepositoryMock) CountTicketCommentsCalls() []struct{ ... }
- func (mock *RepositoryMock) CountTicketsByStatus(ctx context.Context, statuses []types.TicketStatus, keyword string, ...) (int, error)
- func (mock *RepositoryMock) CountTicketsByStatusCalls() []struct{ ... }
- func (mock *RepositoryMock) CreateNotice(ctx context.Context, noticeMoqParam *notice.Notice) error
- func (mock *RepositoryMock) CreateNoticeCalls() []struct{ ... }
- func (mock *RepositoryMock) CreateTagWithID(ctx context.Context, tagMoqParam *tag.Tag) error
- func (mock *RepositoryMock) CreateTagWithIDCalls() []struct{ ... }
- func (mock *RepositoryMock) DeleteAgentMemoriesBatch(ctx context.Context, agentID string, memoryIDs []types.AgentMemoryID) (int, error)
- func (mock *RepositoryMock) DeleteAgentMemoriesBatchCalls() []struct{ ... }
- func (mock *RepositoryMock) DeleteSession(ctx context.Context, sessionID types.SessionID) error
- func (mock *RepositoryMock) DeleteSessionCalls() []struct{ ... }
- func (mock *RepositoryMock) DeleteTagByID(ctx context.Context, tagID string) error
- func (mock *RepositoryMock) DeleteTagByIDCalls() []struct{ ... }
- func (mock *RepositoryMock) DeleteToken(ctx context.Context, tokenID auth.TokenID) error
- func (mock *RepositoryMock) DeleteTokenCalls() []struct{ ... }
- func (mock *RepositoryMock) FindNearestAlerts(ctx context.Context, embedding []float32, limit int) (alert.Alerts, error)
- func (mock *RepositoryMock) FindNearestAlertsCalls() []struct{ ... }
- func (mock *RepositoryMock) FindNearestTickets(ctx context.Context, embedding []float32, limit int) ([]*ticket.Ticket, error)
- func (mock *RepositoryMock) FindNearestTicketsCalls() []struct{ ... }
- func (mock *RepositoryMock) FindNearestTicketsWithSpan(ctx context.Context, embedding []float32, begin time.Time, end time.Time, ...) ([]*ticket.Ticket, error)
- func (mock *RepositoryMock) FindNearestTicketsWithSpanCalls() []struct{ ... }
- func (mock *RepositoryMock) GetActivities(ctx context.Context, offset int, limit int) ([]*activity.Activity, error)
- func (mock *RepositoryMock) GetActivitiesCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAgentMemory(ctx context.Context, agentID string, id types.AgentMemoryID) (*memory.AgentMemory, error)
- func (mock *RepositoryMock) GetAgentMemoryCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlert(ctx context.Context, alertID types.AlertID) (*alert.Alert, error)
- func (mock *RepositoryMock) GetAlertCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlertList(ctx context.Context, listID types.AlertListID) (*alert.List, error)
- func (mock *RepositoryMock) GetAlertListByThread(ctx context.Context, thread slack.Thread) (*alert.List, error)
- func (mock *RepositoryMock) GetAlertListByThreadCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlertListCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlertListsInThread(ctx context.Context, thread slack.Thread) ([]*alert.List, error)
- func (mock *RepositoryMock) GetAlertListsInThreadCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlertWithoutEmbedding(ctx context.Context) (alert.Alerts, error)
- func (mock *RepositoryMock) GetAlertWithoutEmbeddingCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlertWithoutTicket(ctx context.Context, offset int, limit int) (alert.Alerts, error)
- func (mock *RepositoryMock) GetAlertWithoutTicketCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlertsBySpan(ctx context.Context, begin time.Time, end time.Time) (alert.Alerts, error)
- func (mock *RepositoryMock) GetAlertsBySpanCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlertsByThread(ctx context.Context, thread slack.Thread) (alert.Alerts, error)
- func (mock *RepositoryMock) GetAlertsByThreadCalls() []struct{ ... }
- func (mock *RepositoryMock) GetAlertsWithInvalidEmbedding(ctx context.Context) (alert.Alerts, error)
- func (mock *RepositoryMock) GetAlertsWithInvalidEmbeddingCalls() []struct{ ... }
- func (mock *RepositoryMock) GetDeclinedAlerts(ctx context.Context, offset int, limit int) (alert.Alerts, error)
- func (mock *RepositoryMock) GetDeclinedAlertsCalls() []struct{ ... }
- func (mock *RepositoryMock) GetKnowledge(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug) (*knowledge.Knowledge, error)
- func (mock *RepositoryMock) GetKnowledgeByCommit(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug, ...) (*knowledge.Knowledge, error)
- func (mock *RepositoryMock) GetKnowledgeByCommitCalls() []struct{ ... }
- func (mock *RepositoryMock) GetKnowledgeCalls() []struct{ ... }
- func (mock *RepositoryMock) GetKnowledges(ctx context.Context, topic types.KnowledgeTopic) ([]*knowledge.Knowledge, error)
- func (mock *RepositoryMock) GetKnowledgesCalls() []struct{ ... }
- func (mock *RepositoryMock) GetLatestAlertByThread(ctx context.Context, thread slack.Thread) (*alert.Alert, error)
- func (mock *RepositoryMock) GetLatestAlertByThreadCalls() []struct{ ... }
- func (mock *RepositoryMock) GetLatestAlertListInThread(ctx context.Context, thread slack.Thread) (*alert.List, error)
- func (mock *RepositoryMock) GetLatestAlertListInThreadCalls() []struct{ ... }
- func (mock *RepositoryMock) GetLatestHistory(ctx context.Context, ticketID types.TicketID) (*ticket.History, error)
- func (mock *RepositoryMock) GetLatestHistoryCalls() []struct{ ... }
- func (mock *RepositoryMock) GetNotice(ctx context.Context, id types.NoticeID) (*notice.Notice, error)
- func (mock *RepositoryMock) GetNoticeCalls() []struct{ ... }
- func (mock *RepositoryMock) GetOrCreateTagByName(ctx context.Context, name string, description string, color string, ...) (*tag.Tag, error)
- func (mock *RepositoryMock) GetOrCreateTagByNameCalls() []struct{ ... }
- func (mock *RepositoryMock) GetRefineGroup(ctx context.Context, groupID types.RefineGroupID) (*refine.Group, error)
- func (mock *RepositoryMock) GetRefineGroupCalls() []struct{ ... }
- func (mock *RepositoryMock) GetSession(ctx context.Context, sessionID types.SessionID) (*session.Session, error)
- func (mock *RepositoryMock) GetSessionCalls() []struct{ ... }
- func (mock *RepositoryMock) GetSessionMessages(ctx context.Context, sessionID types.SessionID) ([]*session.Message, error)
- func (mock *RepositoryMock) GetSessionMessagesCalls() []struct{ ... }
- func (mock *RepositoryMock) GetSessionsByTicket(ctx context.Context, ticketID types.TicketID) ([]*session.Session, error)
- func (mock *RepositoryMock) GetSessionsByTicketCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTagByID(ctx context.Context, tagID string) (*tag.Tag, error)
- func (mock *RepositoryMock) GetTagByIDCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTagByName(ctx context.Context, name string) (*tag.Tag, error)
- func (mock *RepositoryMock) GetTagByNameCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTagsByIDs(ctx context.Context, tagIDs []string) ([]*tag.Tag, error)
- func (mock *RepositoryMock) GetTagsByIDsCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicket(ctx context.Context, ticketID types.TicketID) (*ticket.Ticket, error)
- func (mock *RepositoryMock) GetTicketByThread(ctx context.Context, thread slack.Thread) (*ticket.Ticket, error)
- func (mock *RepositoryMock) GetTicketByThreadCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicketCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicketComments(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
- func (mock *RepositoryMock) GetTicketCommentsCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicketCommentsPaginated(ctx context.Context, ticketID types.TicketID, offset int, limit int) ([]ticket.Comment, error)
- func (mock *RepositoryMock) GetTicketCommentsPaginatedCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicketUnpromptedComments(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
- func (mock *RepositoryMock) GetTicketUnpromptedCommentsCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicketsBySpan(ctx context.Context, begin time.Time, end time.Time) ([]*ticket.Ticket, error)
- func (mock *RepositoryMock) GetTicketsBySpanCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicketsByStatus(ctx context.Context, statuses []types.TicketStatus, keyword string, ...) ([]*ticket.Ticket, error)
- func (mock *RepositoryMock) GetTicketsByStatusAndSpan(ctx context.Context, status types.TicketStatus, begin time.Time, end time.Time) ([]*ticket.Ticket, error)
- func (mock *RepositoryMock) GetTicketsByStatusAndSpanCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicketsByStatusCalls() []struct{ ... }
- func (mock *RepositoryMock) GetTicketsWithInvalidEmbedding(ctx context.Context) ([]*ticket.Ticket, error)
- func (mock *RepositoryMock) GetTicketsWithInvalidEmbeddingCalls() []struct{ ... }
- func (mock *RepositoryMock) GetToken(ctx context.Context, tokenID auth.TokenID) (*auth.Token, error)
- func (mock *RepositoryMock) GetTokenCalls() []struct{ ... }
- func (mock *RepositoryMock) IsTagNameExists(ctx context.Context, name string) (bool, error)
- func (mock *RepositoryMock) IsTagNameExistsCalls() []struct{ ... }
- func (mock *RepositoryMock) ListAgentMemories(ctx context.Context, agentID string) ([]*memory.AgentMemory, error)
- func (mock *RepositoryMock) ListAgentMemoriesCalls() []struct{ ... }
- func (mock *RepositoryMock) ListAgentMemoriesWithOptions(ctx context.Context, agentID string, opts interfaces.AgentMemoryListOptions) ([]*memory.AgentMemory, int, error)
- func (mock *RepositoryMock) ListAgentMemoriesWithOptionsCalls() []struct{ ... }
- func (mock *RepositoryMock) ListAllAgentIDs(ctx context.Context) ([]*interfaces.AgentSummary, error)
- func (mock *RepositoryMock) ListAllAgentIDsCalls() []struct{ ... }
- func (mock *RepositoryMock) ListAllTags(ctx context.Context) ([]*tag.Tag, error)
- func (mock *RepositoryMock) ListAllTagsCalls() []struct{ ... }
- func (mock *RepositoryMock) ListKnowledgeSlugs(ctx context.Context, topic types.KnowledgeTopic) ([]*knowledge.SlugInfo, error)
- func (mock *RepositoryMock) ListKnowledgeSlugsCalls() []struct{ ... }
- func (mock *RepositoryMock) ListKnowledgeTopics(ctx context.Context) ([]*knowledge.TopicSummary, error)
- func (mock *RepositoryMock) ListKnowledgeTopicsCalls() []struct{ ... }
- func (mock *RepositoryMock) PutActivity(ctx context.Context, activityMoqParam *activity.Activity) error
- func (mock *RepositoryMock) PutActivityCalls() []struct{ ... }
- func (mock *RepositoryMock) PutAlert(ctx context.Context, alertMoqParam alert.Alert) error
- func (mock *RepositoryMock) PutAlertCalls() []struct{ ... }
- func (mock *RepositoryMock) PutAlertList(ctx context.Context, list *alert.List) error
- func (mock *RepositoryMock) PutAlertListCalls() []struct{ ... }
- func (mock *RepositoryMock) PutHistory(ctx context.Context, ticketID types.TicketID, history *ticket.History) error
- func (mock *RepositoryMock) PutHistoryCalls() []struct{ ... }
- func (mock *RepositoryMock) PutKnowledge(ctx context.Context, k *knowledge.Knowledge) error
- func (mock *RepositoryMock) PutKnowledgeCalls() []struct{ ... }
- func (mock *RepositoryMock) PutRefineGroup(ctx context.Context, group *refine.Group) error
- func (mock *RepositoryMock) PutRefineGroupCalls() []struct{ ... }
- func (mock *RepositoryMock) PutSession(ctx context.Context, sessionMoqParam *session.Session) error
- func (mock *RepositoryMock) PutSessionCalls() []struct{ ... }
- func (mock *RepositoryMock) PutSessionMessage(ctx context.Context, message *session.Message) error
- func (mock *RepositoryMock) PutSessionMessageCalls() []struct{ ... }
- func (mock *RepositoryMock) PutTicket(ctx context.Context, ticketMoqParam ticket.Ticket) error
- func (mock *RepositoryMock) PutTicketCalls() []struct{ ... }
- func (mock *RepositoryMock) PutTicketComment(ctx context.Context, comment ticket.Comment) error
- func (mock *RepositoryMock) PutTicketCommentCalls() []struct{ ... }
- func (mock *RepositoryMock) PutTicketCommentsPrompted(ctx context.Context, ticketID types.TicketID, commentIDs []types.CommentID) error
- func (mock *RepositoryMock) PutTicketCommentsPromptedCalls() []struct{ ... }
- func (mock *RepositoryMock) PutToken(ctx context.Context, token *auth.Token) error
- func (mock *RepositoryMock) PutTokenCalls() []struct{ ... }
- func (mock *RepositoryMock) RemoveTagFromAllAlerts(ctx context.Context, name string) error
- func (mock *RepositoryMock) RemoveTagFromAllAlertsCalls() []struct{ ... }
- func (mock *RepositoryMock) RemoveTagFromAllTickets(ctx context.Context, name string) error
- func (mock *RepositoryMock) RemoveTagFromAllTicketsCalls() []struct{ ... }
- func (mock *RepositoryMock) RemoveTagIDFromAllAlerts(ctx context.Context, tagID string) error
- func (mock *RepositoryMock) RemoveTagIDFromAllAlertsCalls() []struct{ ... }
- func (mock *RepositoryMock) RemoveTagIDFromAllTickets(ctx context.Context, tagID string) error
- func (mock *RepositoryMock) RemoveTagIDFromAllTicketsCalls() []struct{ ... }
- func (mock *RepositoryMock) SaveAgentMemory(ctx context.Context, mem *memory.AgentMemory) error
- func (mock *RepositoryMock) SaveAgentMemoryCalls() []struct{ ... }
- func (mock *RepositoryMock) SearchAlerts(ctx context.Context, path string, op string, value any, limit int) (alert.Alerts, error)
- func (mock *RepositoryMock) SearchAlertsCalls() []struct{ ... }
- func (mock *RepositoryMock) SearchMemoriesByEmbedding(ctx context.Context, agentID string, embedding []float32, limit int) ([]*memory.AgentMemory, error)
- func (mock *RepositoryMock) SearchMemoriesByEmbeddingCalls() []struct{ ... }
- func (mock *RepositoryMock) UnbindAlertFromTicket(ctx context.Context, alertID types.AlertID) error
- func (mock *RepositoryMock) UnbindAlertFromTicketCalls() []struct{ ... }
- func (mock *RepositoryMock) UpdateAlertStatus(ctx context.Context, alertID types.AlertID, status alert.AlertStatus) error
- func (mock *RepositoryMock) UpdateAlertStatusCalls() []struct{ ... }
- func (mock *RepositoryMock) UpdateMemoryScoreBatch(ctx context.Context, agentID string, ...) error
- func (mock *RepositoryMock) UpdateMemoryScoreBatchCalls() []struct{ ... }
- func (mock *RepositoryMock) UpdateNotice(ctx context.Context, noticeMoqParam *notice.Notice) error
- func (mock *RepositoryMock) UpdateNoticeCalls() []struct{ ... }
- func (mock *RepositoryMock) UpdateTag(ctx context.Context, tagMoqParam *tag.Tag) error
- func (mock *RepositoryMock) UpdateTagCalls() []struct{ ... }
- type SlackClientMock
- func (mock *SlackClientMock) AuthTest() (*slackSDK.AuthTestResponse, error)
- func (mock *SlackClientMock) AuthTestCalls() []struct{}
- func (mock *SlackClientMock) DeleteMessageContext(ctx context.Context, channelID string, timestamp string) (string, string, error)
- func (mock *SlackClientMock) DeleteMessageContextCalls() []struct{ ... }
- func (mock *SlackClientMock) GetBotInfoContext(ctx context.Context, parameters slackSDK.GetBotInfoParameters) (*slackSDK.Bot, error)
- func (mock *SlackClientMock) GetBotInfoContextCalls() []struct{ ... }
- func (mock *SlackClientMock) GetConversationHistoryContext(ctx context.Context, params *slackSDK.GetConversationHistoryParameters) (*slackSDK.GetConversationHistoryResponse, error)
- func (mock *SlackClientMock) GetConversationHistoryContextCalls() []struct{ ... }
- func (mock *SlackClientMock) GetConversationInfo(input *slackSDK.GetConversationInfoInput) (*slackSDK.Channel, error)
- func (mock *SlackClientMock) GetConversationInfoCalls() []struct{ ... }
- func (mock *SlackClientMock) GetConversationRepliesContext(ctx context.Context, params *slackSDK.GetConversationRepliesParameters) ([]slackSDK.Message, bool, string, error)
- func (mock *SlackClientMock) GetConversationRepliesContextCalls() []struct{ ... }
- func (mock *SlackClientMock) GetTeamInfo() (*slackSDK.TeamInfo, error)
- func (mock *SlackClientMock) GetTeamInfoCalls() []struct{}
- func (mock *SlackClientMock) GetUserGroups(options ...slackSDK.GetUserGroupsOption) ([]slackSDK.UserGroup, error)
- func (mock *SlackClientMock) GetUserGroupsCalls() []struct{ ... }
- func (mock *SlackClientMock) GetUserInfo(userID string) (*slackSDK.User, error)
- func (mock *SlackClientMock) GetUserInfoCalls() []struct{ ... }
- func (mock *SlackClientMock) GetUsersInfo(users ...string) (*[]slackSDK.User, error)
- func (mock *SlackClientMock) GetUsersInfoCalls() []struct{ ... }
- func (mock *SlackClientMock) OpenView(triggerID string, view slackSDK.ModalViewRequest) (*slackSDK.ViewResponse, error)
- func (mock *SlackClientMock) OpenViewCalls() []struct{ ... }
- func (mock *SlackClientMock) PostMessageContext(ctx context.Context, channelID string, options ...slackSDK.MsgOption) (string, string, error)
- func (mock *SlackClientMock) PostMessageContextCalls() []struct{ ... }
- func (mock *SlackClientMock) SearchMessagesContext(ctx context.Context, query string, params slackSDK.SearchParameters) (*slackSDK.SearchMessages, error)
- func (mock *SlackClientMock) SearchMessagesContextCalls() []struct{ ... }
- func (mock *SlackClientMock) UpdateMessageContext(ctx context.Context, channelID string, timestamp string, ...) (string, string, string, error)
- func (mock *SlackClientMock) UpdateMessageContextCalls() []struct{ ... }
- func (mock *SlackClientMock) UpdateView(view slackSDK.ModalViewRequest, externalID string, hash string, viewID string) (*slackSDK.ViewResponse, error)
- func (mock *SlackClientMock) UpdateViewCalls() []struct{ ... }
- func (mock *SlackClientMock) UploadFileV2Context(ctx context.Context, params slackSDK.UploadFileV2Parameters) (*slackSDK.FileSummary, error)
- func (mock *SlackClientMock) UploadFileV2ContextCalls() []struct{ ... }
- type SlackEventUsecasesMock
- func (mock *SlackEventUsecasesMock) HandleSlackAppMention(ctx context.Context, slackMsg slack.Message) error
- func (mock *SlackEventUsecasesMock) HandleSlackAppMentionCalls() []struct{ ... }
- func (mock *SlackEventUsecasesMock) HandleSlackMessage(ctx context.Context, slackMsg slack.Message) error
- func (mock *SlackEventUsecasesMock) HandleSlackMessageCalls() []struct{ ... }
- type SlackInteractionUsecasesMock
- func (mock *SlackInteractionUsecasesMock) HandleSalvageRefresh(ctx context.Context, user slack.User, metadata string, values slack.StateValue, ...) error
- func (mock *SlackInteractionUsecasesMock) HandleSalvageRefreshCalls() []struct{ ... }
- func (mock *SlackInteractionUsecasesMock) HandleSlackInteractionBlockActions(ctx context.Context, user slack.User, slackThread slack.Thread, ...) error
- func (mock *SlackInteractionUsecasesMock) HandleSlackInteractionBlockActionsCalls() []struct{ ... }
- func (mock *SlackInteractionUsecasesMock) HandleSlackInteractionViewSubmission(ctx context.Context, user slack.User, callbackID slack.CallbackID, ...) error
- func (mock *SlackInteractionUsecasesMock) HandleSlackInteractionViewSubmissionCalls() []struct{ ... }
- type SlackThreadServiceMock
- func (mock *SlackThreadServiceMock) AttachFile(ctx context.Context, title string, fileName string, data []byte) error
- func (mock *SlackThreadServiceMock) AttachFileCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) ChannelID() string
- func (mock *SlackThreadServiceMock) ChannelIDCalls() []struct{}
- func (mock *SlackThreadServiceMock) Entity() *slack.Thread
- func (mock *SlackThreadServiceMock) EntityCalls() []struct{}
- func (mock *SlackThreadServiceMock) NewStateFunc(ctx context.Context, message string) func(ctx context.Context, msg string)
- func (mock *SlackThreadServiceMock) NewStateFuncCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) NewTraceMessage(ctx context.Context, initialMessage string) func(ctx context.Context, traceMsg string)
- func (mock *SlackThreadServiceMock) NewTraceMessageCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) NewUpdatableMessage(ctx context.Context, initialMessage string) func(ctx context.Context, newMsg string)
- func (mock *SlackThreadServiceMock) NewUpdatableMessageCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostAlert(ctx context.Context, alertMoqParam *alert.Alert) error
- func (mock *SlackThreadServiceMock) PostAlertCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostAlertList(ctx context.Context, list *alert.List) (string, error)
- func (mock *SlackThreadServiceMock) PostAlertListCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostAlertLists(ctx context.Context, clusters []*alert.List) error
- func (mock *SlackThreadServiceMock) PostAlertListsCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostAlerts(ctx context.Context, alerts alert.Alerts) error
- func (mock *SlackThreadServiceMock) PostAlertsCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostComment(ctx context.Context, comment string) error
- func (mock *SlackThreadServiceMock) PostCommentCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostCommentWithMessageID(ctx context.Context, comment string) (string, error)
- func (mock *SlackThreadServiceMock) PostCommentWithMessageIDCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostContextBlock(ctx context.Context, text string) error
- func (mock *SlackThreadServiceMock) PostContextBlockCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostFinding(ctx context.Context, finding *ticket.Finding) error
- func (mock *SlackThreadServiceMock) PostFindingCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostLinkToTicket(ctx context.Context, ticketURL string, ticketTitle string) error
- func (mock *SlackThreadServiceMock) PostLinkToTicketCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostResolveDetails(ctx context.Context, ticketMoqParam *ticket.Ticket) error
- func (mock *SlackThreadServiceMock) PostResolveDetailsCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostSessionActions(ctx context.Context, ticketID types.TicketID, ticketStatus types.TicketStatus, ...) error
- func (mock *SlackThreadServiceMock) PostSessionActionsCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostTicket(ctx context.Context, ticketMoqParam *ticket.Ticket, alerts alert.Alerts) (string, error)
- func (mock *SlackThreadServiceMock) PostTicketCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) PostTicketList(ctx context.Context, tickets []*ticket.Ticket) error
- func (mock *SlackThreadServiceMock) PostTicketListCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) Reply(ctx context.Context, message string)
- func (mock *SlackThreadServiceMock) ReplyCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) ThreadID() string
- func (mock *SlackThreadServiceMock) ThreadIDCalls() []struct{}
- func (mock *SlackThreadServiceMock) UpdateAlert(ctx context.Context, alertMoqParam alert.Alert) error
- func (mock *SlackThreadServiceMock) UpdateAlertCalls() []struct{ ... }
- func (mock *SlackThreadServiceMock) UpdateAlertList(ctx context.Context, list *alert.List, status string) error
- func (mock *SlackThreadServiceMock) UpdateAlertListCalls() []struct{ ... }
- type StorageClientMock
- func (mock *StorageClientMock) Close(ctx context.Context)
- func (mock *StorageClientMock) CloseCalls() []struct{ ... }
- func (mock *StorageClientMock) GetObject(ctx context.Context, object string) (io.ReadCloser, error)
- func (mock *StorageClientMock) GetObjectCalls() []struct{ ... }
- func (mock *StorageClientMock) PutObject(ctx context.Context, object string) io.WriteCloser
- func (mock *StorageClientMock) PutObjectCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertUsecasesMock ¶
type AlertUsecasesMock struct {
// HandleAlertFunc mocks the HandleAlert method.
HandleAlertFunc func(ctx context.Context, schema types.AlertSchema, alertData any) ([]*alert.Alert, error)
// contains filtered or unexported fields
}
AlertUsecasesMock is a mock implementation of interfaces.AlertUsecases.
func TestSomethingThatUsesAlertUsecases(t *testing.T) {
// make and configure a mocked interfaces.AlertUsecases
mockedAlertUsecases := &AlertUsecasesMock{
HandleAlertFunc: func(ctx context.Context, schema types.AlertSchema, alertData any) ([]*alert.Alert, error) {
panic("mock out the HandleAlert method")
},
}
// use mockedAlertUsecases in code that requires interfaces.AlertUsecases
// and then make assertions.
}
func (*AlertUsecasesMock) HandleAlert ¶
func (mock *AlertUsecasesMock) HandleAlert(ctx context.Context, schema types.AlertSchema, alertData any) ([]*alert.Alert, error)
HandleAlert calls HandleAlertFunc.
func (*AlertUsecasesMock) HandleAlertCalls ¶
func (mock *AlertUsecasesMock) HandleAlertCalls() []struct { Ctx context.Context Schema types.AlertSchema AlertData any }
HandleAlertCalls gets all the calls that were made to HandleAlert. Check the length with:
len(mockedAlertUsecases.HandleAlertCalls())
type ChatNotifierMock ¶ added in v0.1.0
type ChatNotifierMock struct {
// NotifyMessageFunc mocks the NotifyMessage method.
NotifyMessageFunc func(ctx context.Context, ticketID types.TicketID, message string) error
// NotifyTraceFunc mocks the NotifyTrace method.
NotifyTraceFunc func(ctx context.Context, ticketID types.TicketID, message string) error
// contains filtered or unexported fields
}
ChatNotifierMock is a mock implementation of interfaces.ChatNotifier.
func TestSomethingThatUsesChatNotifier(t *testing.T) {
// make and configure a mocked interfaces.ChatNotifier
mockedChatNotifier := &ChatNotifierMock{
NotifyMessageFunc: func(ctx context.Context, ticketID types.TicketID, message string) error {
panic("mock out the NotifyMessage method")
},
NotifyTraceFunc: func(ctx context.Context, ticketID types.TicketID, message string) error {
panic("mock out the NotifyTrace method")
},
}
// use mockedChatNotifier in code that requires interfaces.ChatNotifier
// and then make assertions.
}
func (*ChatNotifierMock) NotifyMessage ¶ added in v0.1.0
func (mock *ChatNotifierMock) NotifyMessage(ctx context.Context, ticketID types.TicketID, message string) error
NotifyMessage calls NotifyMessageFunc.
func (*ChatNotifierMock) NotifyMessageCalls ¶ added in v0.1.0
func (mock *ChatNotifierMock) NotifyMessageCalls() []struct { Ctx context.Context TicketID types.TicketID Message string }
NotifyMessageCalls gets all the calls that were made to NotifyMessage. Check the length with:
len(mockedChatNotifier.NotifyMessageCalls())
func (*ChatNotifierMock) NotifyTrace ¶ added in v0.1.0
func (mock *ChatNotifierMock) NotifyTrace(ctx context.Context, ticketID types.TicketID, message string) error
NotifyTrace calls NotifyTraceFunc.
func (*ChatNotifierMock) NotifyTraceCalls ¶ added in v0.1.0
func (mock *ChatNotifierMock) NotifyTraceCalls() []struct { Ctx context.Context TicketID types.TicketID Message string }
NotifyTraceCalls gets all the calls that were made to NotifyTrace. Check the length with:
len(mockedChatNotifier.NotifyTraceCalls())
type EmbeddingClientMock ¶
type EmbeddingClientMock struct {
// EmbeddingsFunc mocks the Embeddings method.
EmbeddingsFunc func(ctx context.Context, texts []string, dimensionality int) ([][]float32, error)
// contains filtered or unexported fields
}
EmbeddingClientMock is a mock implementation of interfaces.EmbeddingClient.
func TestSomethingThatUsesEmbeddingClient(t *testing.T) {
// make and configure a mocked interfaces.EmbeddingClient
mockedEmbeddingClient := &EmbeddingClientMock{
EmbeddingsFunc: func(ctx context.Context, texts []string, dimensionality int) ([][]float32, error) {
panic("mock out the Embeddings method")
},
}
// use mockedEmbeddingClient in code that requires interfaces.EmbeddingClient
// and then make assertions.
}
func (*EmbeddingClientMock) Embeddings ¶
func (mock *EmbeddingClientMock) Embeddings(ctx context.Context, texts []string, dimensionality int) ([][]float32, error)
Embeddings calls EmbeddingsFunc.
func (*EmbeddingClientMock) EmbeddingsCalls ¶
func (mock *EmbeddingClientMock) EmbeddingsCalls() []struct { Ctx context.Context Texts []string Dimensionality int }
EmbeddingsCalls gets all the calls that were made to Embeddings. Check the length with:
len(mockedEmbeddingClient.EmbeddingsCalls())
type LLMClientMock ¶
type LLMClientMock struct {
// GenerateEmbeddingFunc mocks the GenerateEmbedding method.
GenerateEmbeddingFunc func(ctx context.Context, dimension int, input []string) ([][]float64, error)
// NewSessionFunc mocks the NewSession method.
NewSessionFunc func(ctx context.Context, options ...gollem.SessionOption) (gollem.Session, error)
// contains filtered or unexported fields
}
LLMClientMock is a mock implementation of interfaces.LLMClient.
func TestSomethingThatUsesLLMClient(t *testing.T) {
// make and configure a mocked interfaces.LLMClient
mockedLLMClient := &LLMClientMock{
GenerateEmbeddingFunc: func(ctx context.Context, dimension int, input []string) ([][]float64, error) {
panic("mock out the GenerateEmbedding method")
},
NewSessionFunc: func(ctx context.Context, options ...gollem.SessionOption) (gollem.Session, error) {
panic("mock out the NewSession method")
},
}
// use mockedLLMClient in code that requires interfaces.LLMClient
// and then make assertions.
}
func (*LLMClientMock) GenerateEmbedding ¶
func (mock *LLMClientMock) GenerateEmbedding(ctx context.Context, dimension int, input []string) ([][]float64, error)
GenerateEmbedding calls GenerateEmbeddingFunc.
func (*LLMClientMock) GenerateEmbeddingCalls ¶
func (mock *LLMClientMock) GenerateEmbeddingCalls() []struct { Ctx context.Context Dimension int Input []string }
GenerateEmbeddingCalls gets all the calls that were made to GenerateEmbedding. Check the length with:
len(mockedLLMClient.GenerateEmbeddingCalls())
func (*LLMClientMock) NewSession ¶
func (mock *LLMClientMock) NewSession(ctx context.Context, options ...gollem.SessionOption) (gollem.Session, error)
NewSession calls NewSessionFunc.
func (*LLMClientMock) NewSessionCalls ¶
func (mock *LLMClientMock) NewSessionCalls() []struct { Ctx context.Context Options []gollem.SessionOption }
NewSessionCalls gets all the calls that were made to NewSession. Check the length with:
len(mockedLLMClient.NewSessionCalls())
type LLMSessionMock ¶
type LLMSessionMock struct {
// AppendHistoryFunc mocks the AppendHistory method.
AppendHistoryFunc func(history *gollem.History) error
// CountTokenFunc mocks the CountToken method.
CountTokenFunc func(ctx context.Context, input ...gollem.Input) (int, error)
// GenerateContentFunc mocks the GenerateContent method.
GenerateContentFunc func(ctx context.Context, input ...gollem.Input) (*gollem.Response, error)
// GenerateStreamFunc mocks the GenerateStream method.
GenerateStreamFunc func(ctx context.Context, input ...gollem.Input) (<-chan *gollem.Response, error)
// HistoryFunc mocks the History method.
HistoryFunc func() (*gollem.History, error)
// contains filtered or unexported fields
}
LLMSessionMock is a mock implementation of interfaces.LLMSession.
func TestSomethingThatUsesLLMSession(t *testing.T) {
// make and configure a mocked interfaces.LLMSession
mockedLLMSession := &LLMSessionMock{
AppendHistoryFunc: func(history *gollem.History) error {
panic("mock out the AppendHistory method")
},
CountTokenFunc: func(ctx context.Context, input ...gollem.Input) (int, error) {
panic("mock out the CountToken method")
},
GenerateContentFunc: func(ctx context.Context, input ...gollem.Input) (*gollem.Response, error) {
panic("mock out the GenerateContent method")
},
GenerateStreamFunc: func(ctx context.Context, input ...gollem.Input) (<-chan *gollem.Response, error) {
panic("mock out the GenerateStream method")
},
HistoryFunc: func() (*gollem.History, error) {
panic("mock out the History method")
},
}
// use mockedLLMSession in code that requires interfaces.LLMSession
// and then make assertions.
}
func (*LLMSessionMock) AppendHistory ¶ added in v0.5.0
func (mock *LLMSessionMock) AppendHistory(history *gollem.History) error
AppendHistory calls AppendHistoryFunc.
func (*LLMSessionMock) AppendHistoryCalls ¶ added in v0.5.0
func (mock *LLMSessionMock) AppendHistoryCalls() []struct { History *gollem.History }
AppendHistoryCalls gets all the calls that were made to AppendHistory. Check the length with:
len(mockedLLMSession.AppendHistoryCalls())
func (*LLMSessionMock) CountToken ¶ added in v0.7.0
CountToken calls CountTokenFunc.
func (*LLMSessionMock) CountTokenCalls ¶ added in v0.7.0
func (mock *LLMSessionMock) CountTokenCalls() []struct { Ctx context.Context Input []gollem.Input }
CountTokenCalls gets all the calls that were made to CountToken. Check the length with:
len(mockedLLMSession.CountTokenCalls())
func (*LLMSessionMock) GenerateContent ¶
func (mock *LLMSessionMock) GenerateContent(ctx context.Context, input ...gollem.Input) (*gollem.Response, error)
GenerateContent calls GenerateContentFunc.
func (*LLMSessionMock) GenerateContentCalls ¶
func (mock *LLMSessionMock) GenerateContentCalls() []struct { Ctx context.Context Input []gollem.Input }
GenerateContentCalls gets all the calls that were made to GenerateContent. Check the length with:
len(mockedLLMSession.GenerateContentCalls())
func (*LLMSessionMock) GenerateStream ¶
func (mock *LLMSessionMock) GenerateStream(ctx context.Context, input ...gollem.Input) (<-chan *gollem.Response, error)
GenerateStream calls GenerateStreamFunc.
func (*LLMSessionMock) GenerateStreamCalls ¶
func (mock *LLMSessionMock) GenerateStreamCalls() []struct { Ctx context.Context Input []gollem.Input }
GenerateStreamCalls gets all the calls that were made to GenerateStream. Check the length with:
len(mockedLLMSession.GenerateStreamCalls())
func (*LLMSessionMock) History ¶
func (mock *LLMSessionMock) History() (*gollem.History, error)
History calls HistoryFunc.
func (*LLMSessionMock) HistoryCalls ¶
func (mock *LLMSessionMock) HistoryCalls() []struct { }
HistoryCalls gets all the calls that were made to History. Check the length with:
len(mockedLLMSession.HistoryCalls())
type NotifierMock ¶ added in v0.5.0
type NotifierMock struct {
// NotifyEnrichPolicyResultFunc mocks the NotifyEnrichPolicyResult method.
NotifyEnrichPolicyResultFunc func(ctx context.Context, ev *event.EnrichPolicyResultEvent)
// NotifyEnrichTaskPromptFunc mocks the NotifyEnrichTaskPrompt method.
NotifyEnrichTaskPromptFunc func(ctx context.Context, ev *event.EnrichTaskPromptEvent)
// NotifyEnrichTaskResponseFunc mocks the NotifyEnrichTaskResponse method.
NotifyEnrichTaskResponseFunc func(ctx context.Context, ev *event.EnrichTaskResponseEvent)
// NotifyErrorFunc mocks the NotifyError method.
NotifyErrorFunc func(ctx context.Context, ev *event.ErrorEvent)
// NotifyIngestPolicyResultFunc mocks the NotifyIngestPolicyResult method.
NotifyIngestPolicyResultFunc func(ctx context.Context, ev *event.IngestPolicyResultEvent)
// NotifyTriagePolicyResultFunc mocks the NotifyTriagePolicyResult method.
NotifyTriagePolicyResultFunc func(ctx context.Context, ev *event.TriagePolicyResultEvent)
// contains filtered or unexported fields
}
NotifierMock is a mock implementation of interfaces.Notifier.
func TestSomethingThatUsesNotifier(t *testing.T) {
// make and configure a mocked interfaces.Notifier
mockedNotifier := &NotifierMock{
NotifyEnrichPolicyResultFunc: func(ctx context.Context, ev *event.EnrichPolicyResultEvent) {
panic("mock out the NotifyEnrichPolicyResult method")
},
NotifyEnrichTaskPromptFunc: func(ctx context.Context, ev *event.EnrichTaskPromptEvent) {
panic("mock out the NotifyEnrichTaskPrompt method")
},
NotifyEnrichTaskResponseFunc: func(ctx context.Context, ev *event.EnrichTaskResponseEvent) {
panic("mock out the NotifyEnrichTaskResponse method")
},
NotifyErrorFunc: func(ctx context.Context, ev *event.ErrorEvent) {
panic("mock out the NotifyError method")
},
NotifyIngestPolicyResultFunc: func(ctx context.Context, ev *event.IngestPolicyResultEvent) {
panic("mock out the NotifyIngestPolicyResult method")
},
NotifyTriagePolicyResultFunc: func(ctx context.Context, ev *event.TriagePolicyResultEvent) {
panic("mock out the NotifyTriagePolicyResult method")
},
}
// use mockedNotifier in code that requires interfaces.Notifier
// and then make assertions.
}
func (*NotifierMock) NotifyEnrichPolicyResult ¶ added in v0.5.0
func (mock *NotifierMock) NotifyEnrichPolicyResult(ctx context.Context, ev *event.EnrichPolicyResultEvent)
NotifyEnrichPolicyResult calls NotifyEnrichPolicyResultFunc.
func (*NotifierMock) NotifyEnrichPolicyResultCalls ¶ added in v0.5.0
func (mock *NotifierMock) NotifyEnrichPolicyResultCalls() []struct { Ctx context.Context Ev *event.EnrichPolicyResultEvent }
NotifyEnrichPolicyResultCalls gets all the calls that were made to NotifyEnrichPolicyResult. Check the length with:
len(mockedNotifier.NotifyEnrichPolicyResultCalls())
func (*NotifierMock) NotifyEnrichTaskPrompt ¶ added in v0.5.0
func (mock *NotifierMock) NotifyEnrichTaskPrompt(ctx context.Context, ev *event.EnrichTaskPromptEvent)
NotifyEnrichTaskPrompt calls NotifyEnrichTaskPromptFunc.
func (*NotifierMock) NotifyEnrichTaskPromptCalls ¶ added in v0.5.0
func (mock *NotifierMock) NotifyEnrichTaskPromptCalls() []struct { Ctx context.Context Ev *event.EnrichTaskPromptEvent }
NotifyEnrichTaskPromptCalls gets all the calls that were made to NotifyEnrichTaskPrompt. Check the length with:
len(mockedNotifier.NotifyEnrichTaskPromptCalls())
func (*NotifierMock) NotifyEnrichTaskResponse ¶ added in v0.5.0
func (mock *NotifierMock) NotifyEnrichTaskResponse(ctx context.Context, ev *event.EnrichTaskResponseEvent)
NotifyEnrichTaskResponse calls NotifyEnrichTaskResponseFunc.
func (*NotifierMock) NotifyEnrichTaskResponseCalls ¶ added in v0.5.0
func (mock *NotifierMock) NotifyEnrichTaskResponseCalls() []struct { Ctx context.Context Ev *event.EnrichTaskResponseEvent }
NotifyEnrichTaskResponseCalls gets all the calls that were made to NotifyEnrichTaskResponse. Check the length with:
len(mockedNotifier.NotifyEnrichTaskResponseCalls())
func (*NotifierMock) NotifyError ¶ added in v0.5.0
func (mock *NotifierMock) NotifyError(ctx context.Context, ev *event.ErrorEvent)
NotifyError calls NotifyErrorFunc.
func (*NotifierMock) NotifyErrorCalls ¶ added in v0.5.0
func (mock *NotifierMock) NotifyErrorCalls() []struct { Ctx context.Context Ev *event.ErrorEvent }
NotifyErrorCalls gets all the calls that were made to NotifyError. Check the length with:
len(mockedNotifier.NotifyErrorCalls())
func (*NotifierMock) NotifyIngestPolicyResult ¶ added in v0.7.0
func (mock *NotifierMock) NotifyIngestPolicyResult(ctx context.Context, ev *event.IngestPolicyResultEvent)
NotifyIngestPolicyResult calls NotifyIngestPolicyResultFunc.
func (*NotifierMock) NotifyIngestPolicyResultCalls ¶ added in v0.7.0
func (mock *NotifierMock) NotifyIngestPolicyResultCalls() []struct { Ctx context.Context Ev *event.IngestPolicyResultEvent }
NotifyIngestPolicyResultCalls gets all the calls that were made to NotifyIngestPolicyResult. Check the length with:
len(mockedNotifier.NotifyIngestPolicyResultCalls())
func (*NotifierMock) NotifyTriagePolicyResult ¶ added in v0.7.0
func (mock *NotifierMock) NotifyTriagePolicyResult(ctx context.Context, ev *event.TriagePolicyResultEvent)
NotifyTriagePolicyResult calls NotifyTriagePolicyResultFunc.
func (*NotifierMock) NotifyTriagePolicyResultCalls ¶ added in v0.7.0
func (mock *NotifierMock) NotifyTriagePolicyResultCalls() []struct { Ctx context.Context Ev *event.TriagePolicyResultEvent }
NotifyTriagePolicyResultCalls gets all the calls that were made to NotifyTriagePolicyResult. Check the length with:
len(mockedNotifier.NotifyTriagePolicyResultCalls())
type PolicyClientMock ¶
type PolicyClientMock struct {
// QueryFunc mocks the Query method.
QueryFunc func(contextMoqParam context.Context, s string, v1 any, v2 any, queryOptions ...opaq.QueryOption) error
// SourcesFunc mocks the Sources method.
SourcesFunc func() map[string]string
// contains filtered or unexported fields
}
PolicyClientMock is a mock implementation of interfaces.PolicyClient.
func TestSomethingThatUsesPolicyClient(t *testing.T) {
// make and configure a mocked interfaces.PolicyClient
mockedPolicyClient := &PolicyClientMock{
QueryFunc: func(contextMoqParam context.Context, s string, v1 any, v2 any, queryOptions ...opaq.QueryOption) error {
panic("mock out the Query method")
},
SourcesFunc: func() map[string]string {
panic("mock out the Sources method")
},
}
// use mockedPolicyClient in code that requires interfaces.PolicyClient
// and then make assertions.
}
func (*PolicyClientMock) Query ¶
func (mock *PolicyClientMock) Query(contextMoqParam context.Context, s string, v1 any, v2 any, queryOptions ...opaq.QueryOption) error
Query calls QueryFunc.
func (*PolicyClientMock) QueryCalls ¶
func (mock *PolicyClientMock) QueryCalls() []struct { ContextMoqParam context.Context S string V1 any V2 any QueryOptions []opaq.QueryOption }
QueryCalls gets all the calls that were made to Query. Check the length with:
len(mockedPolicyClient.QueryCalls())
func (*PolicyClientMock) Sources ¶
func (mock *PolicyClientMock) Sources() map[string]string
Sources calls SourcesFunc.
func (*PolicyClientMock) SourcesCalls ¶
func (mock *PolicyClientMock) SourcesCalls() []struct { }
SourcesCalls gets all the calls that were made to Sources. Check the length with:
len(mockedPolicyClient.SourcesCalls())
type PromptServiceMock ¶ added in v0.4.0
type PromptServiceMock struct {
// GeneratePromptFunc mocks the GeneratePrompt method.
GeneratePromptFunc func(ctx context.Context, templateName string, alertMoqParam *alert.Alert) (string, error)
// GeneratePromptWithParamsFunc mocks the GeneratePromptWithParams method.
GeneratePromptWithParamsFunc func(ctx context.Context, templateName string, alertMoqParam *alert.Alert, params map[string]any) (string, error)
// ReadPromptFileFunc mocks the ReadPromptFile method.
ReadPromptFileFunc func(ctx context.Context, templateName string) (string, error)
// contains filtered or unexported fields
}
PromptServiceMock is a mock implementation of interfaces.PromptService.
func TestSomethingThatUsesPromptService(t *testing.T) {
// make and configure a mocked interfaces.PromptService
mockedPromptService := &PromptServiceMock{
GeneratePromptFunc: func(ctx context.Context, templateName string, alertMoqParam *alert.Alert) (string, error) {
panic("mock out the GeneratePrompt method")
},
GeneratePromptWithParamsFunc: func(ctx context.Context, templateName string, alertMoqParam *alert.Alert, params map[string]any) (string, error) {
panic("mock out the GeneratePromptWithParams method")
},
ReadPromptFileFunc: func(ctx context.Context, templateName string) (string, error) {
panic("mock out the ReadPromptFile method")
},
}
// use mockedPromptService in code that requires interfaces.PromptService
// and then make assertions.
}
func (*PromptServiceMock) GeneratePrompt ¶ added in v0.4.0
func (mock *PromptServiceMock) GeneratePrompt(ctx context.Context, templateName string, alertMoqParam *alert.Alert) (string, error)
GeneratePrompt calls GeneratePromptFunc.
func (*PromptServiceMock) GeneratePromptCalls ¶ added in v0.4.0
func (mock *PromptServiceMock) GeneratePromptCalls() []struct { Ctx context.Context TemplateName string AlertMoqParam *alert.Alert }
GeneratePromptCalls gets all the calls that were made to GeneratePrompt. Check the length with:
len(mockedPromptService.GeneratePromptCalls())
func (*PromptServiceMock) GeneratePromptWithParams ¶ added in v0.8.0
func (mock *PromptServiceMock) GeneratePromptWithParams(ctx context.Context, templateName string, alertMoqParam *alert.Alert, params map[string]any) (string, error)
GeneratePromptWithParams calls GeneratePromptWithParamsFunc.
func (*PromptServiceMock) GeneratePromptWithParamsCalls ¶ added in v0.8.0
func (mock *PromptServiceMock) GeneratePromptWithParamsCalls() []struct { Ctx context.Context TemplateName string AlertMoqParam *alert.Alert Params map[string]any }
GeneratePromptWithParamsCalls gets all the calls that were made to GeneratePromptWithParams. Check the length with:
len(mockedPromptService.GeneratePromptWithParamsCalls())
func (*PromptServiceMock) ReadPromptFile ¶ added in v0.5.0
func (mock *PromptServiceMock) ReadPromptFile(ctx context.Context, templateName string) (string, error)
ReadPromptFile calls ReadPromptFileFunc.
func (*PromptServiceMock) ReadPromptFileCalls ¶ added in v0.5.0
func (mock *PromptServiceMock) ReadPromptFileCalls() []struct { Ctx context.Context TemplateName string }
ReadPromptFileCalls gets all the calls that were made to ReadPromptFile. Check the length with:
len(mockedPromptService.ReadPromptFileCalls())
type RepositoryMock ¶
type RepositoryMock struct {
// ArchiveKnowledgeFunc mocks the ArchiveKnowledge method.
ArchiveKnowledgeFunc func(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug) error
// BatchGetAlertsFunc mocks the BatchGetAlerts method.
BatchGetAlertsFunc func(ctx context.Context, alertIDs []types.AlertID) (alert.Alerts, error)
// BatchGetTicketsFunc mocks the BatchGetTickets method.
BatchGetTicketsFunc func(ctx context.Context, ticketIDs []types.TicketID) ([]*ticket.Ticket, error)
// BatchPutAlertsFunc mocks the BatchPutAlerts method.
BatchPutAlertsFunc func(ctx context.Context, alerts alert.Alerts) error
// BatchSaveAgentMemoriesFunc mocks the BatchSaveAgentMemories method.
BatchSaveAgentMemoriesFunc func(ctx context.Context, memories []*memory.AgentMemory) error
// BatchUpdateTicketsStatusFunc mocks the BatchUpdateTicketsStatus method.
BatchUpdateTicketsStatusFunc func(ctx context.Context, ticketIDs []types.TicketID, status types.TicketStatus) error
// BindAlertsToTicketFunc mocks the BindAlertsToTicket method.
BindAlertsToTicketFunc func(ctx context.Context, alertIDs []types.AlertID, ticketID types.TicketID) error
// CalculateKnowledgeSizeFunc mocks the CalculateKnowledgeSize method.
CalculateKnowledgeSizeFunc func(ctx context.Context, topic types.KnowledgeTopic) (int, error)
// CountActivitiesFunc mocks the CountActivities method.
CountActivitiesFunc func(ctx context.Context) (int, error)
// CountAlertsWithoutTicketFunc mocks the CountAlertsWithoutTicket method.
CountAlertsWithoutTicketFunc func(ctx context.Context) (int, error)
// CountDeclinedAlertsFunc mocks the CountDeclinedAlerts method.
CountDeclinedAlertsFunc func(ctx context.Context) (int, error)
// CountTicketCommentsFunc mocks the CountTicketComments method.
CountTicketCommentsFunc func(ctx context.Context, ticketID types.TicketID) (int, error)
// CountTicketsByStatusFunc mocks the CountTicketsByStatus method.
CountTicketsByStatusFunc func(ctx context.Context, statuses []types.TicketStatus, keyword string, assigneeID string) (int, error)
// CreateNoticeFunc mocks the CreateNotice method.
CreateNoticeFunc func(ctx context.Context, noticeMoqParam *notice.Notice) error
// CreateTagWithIDFunc mocks the CreateTagWithID method.
CreateTagWithIDFunc func(ctx context.Context, tagMoqParam *tag.Tag) error
// DeleteAgentMemoriesBatchFunc mocks the DeleteAgentMemoriesBatch method.
DeleteAgentMemoriesBatchFunc func(ctx context.Context, agentID string, memoryIDs []types.AgentMemoryID) (int, error)
// DeleteSessionFunc mocks the DeleteSession method.
DeleteSessionFunc func(ctx context.Context, sessionID types.SessionID) error
// DeleteTagByIDFunc mocks the DeleteTagByID method.
DeleteTagByIDFunc func(ctx context.Context, tagID string) error
// DeleteTokenFunc mocks the DeleteToken method.
DeleteTokenFunc func(ctx context.Context, tokenID auth.TokenID) error
// FindNearestAlertsFunc mocks the FindNearestAlerts method.
FindNearestAlertsFunc func(ctx context.Context, embedding []float32, limit int) (alert.Alerts, error)
// FindNearestTicketsFunc mocks the FindNearestTickets method.
FindNearestTicketsFunc func(ctx context.Context, embedding []float32, limit int) ([]*ticket.Ticket, error)
// FindNearestTicketsWithSpanFunc mocks the FindNearestTicketsWithSpan method.
FindNearestTicketsWithSpanFunc func(ctx context.Context, embedding []float32, begin time.Time, end time.Time, limit int) ([]*ticket.Ticket, error)
// GetActivitiesFunc mocks the GetActivities method.
GetActivitiesFunc func(ctx context.Context, offset int, limit int) ([]*activity.Activity, error)
// GetAgentMemoryFunc mocks the GetAgentMemory method.
GetAgentMemoryFunc func(ctx context.Context, agentID string, id types.AgentMemoryID) (*memory.AgentMemory, error)
// GetAlertFunc mocks the GetAlert method.
GetAlertFunc func(ctx context.Context, alertID types.AlertID) (*alert.Alert, error)
// GetAlertListFunc mocks the GetAlertList method.
GetAlertListFunc func(ctx context.Context, listID types.AlertListID) (*alert.List, error)
// GetAlertListByThreadFunc mocks the GetAlertListByThread method.
GetAlertListByThreadFunc func(ctx context.Context, thread slack.Thread) (*alert.List, error)
// GetAlertListsInThreadFunc mocks the GetAlertListsInThread method.
GetAlertListsInThreadFunc func(ctx context.Context, thread slack.Thread) ([]*alert.List, error)
// GetAlertWithoutEmbeddingFunc mocks the GetAlertWithoutEmbedding method.
GetAlertWithoutEmbeddingFunc func(ctx context.Context) (alert.Alerts, error)
// GetAlertWithoutTicketFunc mocks the GetAlertWithoutTicket method.
GetAlertWithoutTicketFunc func(ctx context.Context, offset int, limit int) (alert.Alerts, error)
// GetAlertsBySpanFunc mocks the GetAlertsBySpan method.
GetAlertsBySpanFunc func(ctx context.Context, begin time.Time, end time.Time) (alert.Alerts, error)
// GetAlertsByThreadFunc mocks the GetAlertsByThread method.
GetAlertsByThreadFunc func(ctx context.Context, thread slack.Thread) (alert.Alerts, error)
// GetAlertsWithInvalidEmbeddingFunc mocks the GetAlertsWithInvalidEmbedding method.
GetAlertsWithInvalidEmbeddingFunc func(ctx context.Context) (alert.Alerts, error)
// GetDeclinedAlertsFunc mocks the GetDeclinedAlerts method.
GetDeclinedAlertsFunc func(ctx context.Context, offset int, limit int) (alert.Alerts, error)
// GetKnowledgeFunc mocks the GetKnowledge method.
GetKnowledgeFunc func(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug) (*knowledge.Knowledge, error)
// GetKnowledgeByCommitFunc mocks the GetKnowledgeByCommit method.
GetKnowledgeByCommitFunc func(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug, commitID string) (*knowledge.Knowledge, error)
// GetKnowledgesFunc mocks the GetKnowledges method.
GetKnowledgesFunc func(ctx context.Context, topic types.KnowledgeTopic) ([]*knowledge.Knowledge, error)
// GetLatestAlertByThreadFunc mocks the GetLatestAlertByThread method.
GetLatestAlertByThreadFunc func(ctx context.Context, thread slack.Thread) (*alert.Alert, error)
// GetLatestAlertListInThreadFunc mocks the GetLatestAlertListInThread method.
GetLatestAlertListInThreadFunc func(ctx context.Context, thread slack.Thread) (*alert.List, error)
// GetLatestHistoryFunc mocks the GetLatestHistory method.
GetLatestHistoryFunc func(ctx context.Context, ticketID types.TicketID) (*ticket.History, error)
// GetNoticeFunc mocks the GetNotice method.
GetNoticeFunc func(ctx context.Context, id types.NoticeID) (*notice.Notice, error)
// GetOrCreateTagByNameFunc mocks the GetOrCreateTagByName method.
GetOrCreateTagByNameFunc func(ctx context.Context, name string, description string, color string, createdBy string) (*tag.Tag, error)
// GetRefineGroupFunc mocks the GetRefineGroup method.
GetRefineGroupFunc func(ctx context.Context, groupID types.RefineGroupID) (*refine.Group, error)
// GetSessionFunc mocks the GetSession method.
GetSessionFunc func(ctx context.Context, sessionID types.SessionID) (*session.Session, error)
// GetSessionMessagesFunc mocks the GetSessionMessages method.
GetSessionMessagesFunc func(ctx context.Context, sessionID types.SessionID) ([]*session.Message, error)
// GetSessionsByTicketFunc mocks the GetSessionsByTicket method.
GetSessionsByTicketFunc func(ctx context.Context, ticketID types.TicketID) ([]*session.Session, error)
// GetTagByIDFunc mocks the GetTagByID method.
GetTagByIDFunc func(ctx context.Context, tagID string) (*tag.Tag, error)
// GetTagByNameFunc mocks the GetTagByName method.
GetTagByNameFunc func(ctx context.Context, name string) (*tag.Tag, error)
// GetTagsByIDsFunc mocks the GetTagsByIDs method.
GetTagsByIDsFunc func(ctx context.Context, tagIDs []string) ([]*tag.Tag, error)
// GetTicketFunc mocks the GetTicket method.
GetTicketFunc func(ctx context.Context, ticketID types.TicketID) (*ticket.Ticket, error)
// GetTicketByThreadFunc mocks the GetTicketByThread method.
GetTicketByThreadFunc func(ctx context.Context, thread slack.Thread) (*ticket.Ticket, error)
// GetTicketCommentsFunc mocks the GetTicketComments method.
GetTicketCommentsFunc func(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
// GetTicketCommentsPaginatedFunc mocks the GetTicketCommentsPaginated method.
GetTicketCommentsPaginatedFunc func(ctx context.Context, ticketID types.TicketID, offset int, limit int) ([]ticket.Comment, error)
// GetTicketUnpromptedCommentsFunc mocks the GetTicketUnpromptedComments method.
GetTicketUnpromptedCommentsFunc func(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
// GetTicketsBySpanFunc mocks the GetTicketsBySpan method.
GetTicketsBySpanFunc func(ctx context.Context, begin time.Time, end time.Time) ([]*ticket.Ticket, error)
// GetTicketsByStatusFunc mocks the GetTicketsByStatus method.
GetTicketsByStatusFunc func(ctx context.Context, statuses []types.TicketStatus, keyword string, assigneeID string, offset int, limit int) ([]*ticket.Ticket, error)
// GetTicketsByStatusAndSpanFunc mocks the GetTicketsByStatusAndSpan method.
GetTicketsByStatusAndSpanFunc func(ctx context.Context, status types.TicketStatus, begin time.Time, end time.Time) ([]*ticket.Ticket, error)
// GetTicketsWithInvalidEmbeddingFunc mocks the GetTicketsWithInvalidEmbedding method.
GetTicketsWithInvalidEmbeddingFunc func(ctx context.Context) ([]*ticket.Ticket, error)
// GetTokenFunc mocks the GetToken method.
GetTokenFunc func(ctx context.Context, tokenID auth.TokenID) (*auth.Token, error)
// IsTagNameExistsFunc mocks the IsTagNameExists method.
IsTagNameExistsFunc func(ctx context.Context, name string) (bool, error)
// ListAgentMemoriesFunc mocks the ListAgentMemories method.
ListAgentMemoriesFunc func(ctx context.Context, agentID string) ([]*memory.AgentMemory, error)
// ListAgentMemoriesWithOptionsFunc mocks the ListAgentMemoriesWithOptions method.
ListAgentMemoriesWithOptionsFunc func(ctx context.Context, agentID string, opts interfaces.AgentMemoryListOptions) ([]*memory.AgentMemory, int, error)
// ListAllAgentIDsFunc mocks the ListAllAgentIDs method.
ListAllAgentIDsFunc func(ctx context.Context) ([]*interfaces.AgentSummary, error)
// ListAllTagsFunc mocks the ListAllTags method.
ListAllTagsFunc func(ctx context.Context) ([]*tag.Tag, error)
// ListKnowledgeSlugsFunc mocks the ListKnowledgeSlugs method.
ListKnowledgeSlugsFunc func(ctx context.Context, topic types.KnowledgeTopic) ([]*knowledge.SlugInfo, error)
// ListKnowledgeTopicsFunc mocks the ListKnowledgeTopics method.
ListKnowledgeTopicsFunc func(ctx context.Context) ([]*knowledge.TopicSummary, error)
// PutActivityFunc mocks the PutActivity method.
PutActivityFunc func(ctx context.Context, activityMoqParam *activity.Activity) error
// PutAlertFunc mocks the PutAlert method.
PutAlertFunc func(ctx context.Context, alertMoqParam alert.Alert) error
// PutAlertListFunc mocks the PutAlertList method.
PutAlertListFunc func(ctx context.Context, list *alert.List) error
// PutHistoryFunc mocks the PutHistory method.
PutHistoryFunc func(ctx context.Context, ticketID types.TicketID, history *ticket.History) error
// PutKnowledgeFunc mocks the PutKnowledge method.
PutKnowledgeFunc func(ctx context.Context, k *knowledge.Knowledge) error
// PutRefineGroupFunc mocks the PutRefineGroup method.
PutRefineGroupFunc func(ctx context.Context, group *refine.Group) error
// PutSessionFunc mocks the PutSession method.
PutSessionFunc func(ctx context.Context, sessionMoqParam *session.Session) error
// PutSessionMessageFunc mocks the PutSessionMessage method.
PutSessionMessageFunc func(ctx context.Context, message *session.Message) error
// PutTicketFunc mocks the PutTicket method.
PutTicketFunc func(ctx context.Context, ticketMoqParam ticket.Ticket) error
// PutTicketCommentFunc mocks the PutTicketComment method.
PutTicketCommentFunc func(ctx context.Context, comment ticket.Comment) error
// PutTicketCommentsPromptedFunc mocks the PutTicketCommentsPrompted method.
PutTicketCommentsPromptedFunc func(ctx context.Context, ticketID types.TicketID, commentIDs []types.CommentID) error
// PutTokenFunc mocks the PutToken method.
PutTokenFunc func(ctx context.Context, token *auth.Token) error
// RemoveTagFromAllAlertsFunc mocks the RemoveTagFromAllAlerts method.
RemoveTagFromAllAlertsFunc func(ctx context.Context, name string) error
// RemoveTagFromAllTicketsFunc mocks the RemoveTagFromAllTickets method.
RemoveTagFromAllTicketsFunc func(ctx context.Context, name string) error
// RemoveTagIDFromAllAlertsFunc mocks the RemoveTagIDFromAllAlerts method.
RemoveTagIDFromAllAlertsFunc func(ctx context.Context, tagID string) error
// RemoveTagIDFromAllTicketsFunc mocks the RemoveTagIDFromAllTickets method.
RemoveTagIDFromAllTicketsFunc func(ctx context.Context, tagID string) error
// SaveAgentMemoryFunc mocks the SaveAgentMemory method.
SaveAgentMemoryFunc func(ctx context.Context, mem *memory.AgentMemory) error
// SearchAlertsFunc mocks the SearchAlerts method.
SearchAlertsFunc func(ctx context.Context, path string, op string, value any, limit int) (alert.Alerts, error)
// SearchMemoriesByEmbeddingFunc mocks the SearchMemoriesByEmbedding method.
SearchMemoriesByEmbeddingFunc func(ctx context.Context, agentID string, embedding []float32, limit int) ([]*memory.AgentMemory, error)
// UnbindAlertFromTicketFunc mocks the UnbindAlertFromTicket method.
UnbindAlertFromTicketFunc func(ctx context.Context, alertID types.AlertID) error
// UpdateAlertStatusFunc mocks the UpdateAlertStatus method.
UpdateAlertStatusFunc func(ctx context.Context, alertID types.AlertID, status alert.AlertStatus) error
// UpdateMemoryScoreBatchFunc mocks the UpdateMemoryScoreBatch method.
UpdateMemoryScoreBatchFunc func(ctx context.Context, agentID string, updates map[types.AgentMemoryID]struct {
Score float64
LastUsedAt time.Time
}) error
// UpdateNoticeFunc mocks the UpdateNotice method.
UpdateNoticeFunc func(ctx context.Context, noticeMoqParam *notice.Notice) error
// UpdateTagFunc mocks the UpdateTag method.
UpdateTagFunc func(ctx context.Context, tagMoqParam *tag.Tag) error
// contains filtered or unexported fields
}
RepositoryMock is a mock implementation of interfaces.Repository.
func TestSomethingThatUsesRepository(t *testing.T) {
// make and configure a mocked interfaces.Repository
mockedRepository := &RepositoryMock{
ArchiveKnowledgeFunc: func(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug) error {
panic("mock out the ArchiveKnowledge method")
},
BatchGetAlertsFunc: func(ctx context.Context, alertIDs []types.AlertID) (alert.Alerts, error) {
panic("mock out the BatchGetAlerts method")
},
BatchGetTicketsFunc: func(ctx context.Context, ticketIDs []types.TicketID) ([]*ticket.Ticket, error) {
panic("mock out the BatchGetTickets method")
},
BatchPutAlertsFunc: func(ctx context.Context, alerts alert.Alerts) error {
panic("mock out the BatchPutAlerts method")
},
BatchSaveAgentMemoriesFunc: func(ctx context.Context, memories []*memory.AgentMemory) error {
panic("mock out the BatchSaveAgentMemories method")
},
BatchUpdateTicketsStatusFunc: func(ctx context.Context, ticketIDs []types.TicketID, status types.TicketStatus) error {
panic("mock out the BatchUpdateTicketsStatus method")
},
BindAlertsToTicketFunc: func(ctx context.Context, alertIDs []types.AlertID, ticketID types.TicketID) error {
panic("mock out the BindAlertsToTicket method")
},
CalculateKnowledgeSizeFunc: func(ctx context.Context, topic types.KnowledgeTopic) (int, error) {
panic("mock out the CalculateKnowledgeSize method")
},
CountActivitiesFunc: func(ctx context.Context) (int, error) {
panic("mock out the CountActivities method")
},
CountAlertsWithoutTicketFunc: func(ctx context.Context) (int, error) {
panic("mock out the CountAlertsWithoutTicket method")
},
CountDeclinedAlertsFunc: func(ctx context.Context) (int, error) {
panic("mock out the CountDeclinedAlerts method")
},
CountTicketCommentsFunc: func(ctx context.Context, ticketID types.TicketID) (int, error) {
panic("mock out the CountTicketComments method")
},
CountTicketsByStatusFunc: func(ctx context.Context, statuses []types.TicketStatus, keyword string, assigneeID string) (int, error) {
panic("mock out the CountTicketsByStatus method")
},
CreateNoticeFunc: func(ctx context.Context, noticeMoqParam *notice.Notice) error {
panic("mock out the CreateNotice method")
},
CreateTagWithIDFunc: func(ctx context.Context, tagMoqParam *tag.Tag) error {
panic("mock out the CreateTagWithID method")
},
DeleteAgentMemoriesBatchFunc: func(ctx context.Context, agentID string, memoryIDs []types.AgentMemoryID) (int, error) {
panic("mock out the DeleteAgentMemoriesBatch method")
},
DeleteSessionFunc: func(ctx context.Context, sessionID types.SessionID) error {
panic("mock out the DeleteSession method")
},
DeleteTagByIDFunc: func(ctx context.Context, tagID string) error {
panic("mock out the DeleteTagByID method")
},
DeleteTokenFunc: func(ctx context.Context, tokenID auth.TokenID) error {
panic("mock out the DeleteToken method")
},
FindNearestAlertsFunc: func(ctx context.Context, embedding []float32, limit int) (alert.Alerts, error) {
panic("mock out the FindNearestAlerts method")
},
FindNearestTicketsFunc: func(ctx context.Context, embedding []float32, limit int) ([]*ticket.Ticket, error) {
panic("mock out the FindNearestTickets method")
},
FindNearestTicketsWithSpanFunc: func(ctx context.Context, embedding []float32, begin time.Time, end time.Time, limit int) ([]*ticket.Ticket, error) {
panic("mock out the FindNearestTicketsWithSpan method")
},
GetActivitiesFunc: func(ctx context.Context, offset int, limit int) ([]*activity.Activity, error) {
panic("mock out the GetActivities method")
},
GetAgentMemoryFunc: func(ctx context.Context, agentID string, id types.AgentMemoryID) (*memory.AgentMemory, error) {
panic("mock out the GetAgentMemory method")
},
GetAlertFunc: func(ctx context.Context, alertID types.AlertID) (*alert.Alert, error) {
panic("mock out the GetAlert method")
},
GetAlertListFunc: func(ctx context.Context, listID types.AlertListID) (*alert.List, error) {
panic("mock out the GetAlertList method")
},
GetAlertListByThreadFunc: func(ctx context.Context, thread slack.Thread) (*alert.List, error) {
panic("mock out the GetAlertListByThread method")
},
GetAlertListsInThreadFunc: func(ctx context.Context, thread slack.Thread) ([]*alert.List, error) {
panic("mock out the GetAlertListsInThread method")
},
GetAlertWithoutEmbeddingFunc: func(ctx context.Context) (alert.Alerts, error) {
panic("mock out the GetAlertWithoutEmbedding method")
},
GetAlertWithoutTicketFunc: func(ctx context.Context, offset int, limit int) (alert.Alerts, error) {
panic("mock out the GetAlertWithoutTicket method")
},
GetAlertsBySpanFunc: func(ctx context.Context, begin time.Time, end time.Time) (alert.Alerts, error) {
panic("mock out the GetAlertsBySpan method")
},
GetAlertsByThreadFunc: func(ctx context.Context, thread slack.Thread) (alert.Alerts, error) {
panic("mock out the GetAlertsByThread method")
},
GetAlertsWithInvalidEmbeddingFunc: func(ctx context.Context) (alert.Alerts, error) {
panic("mock out the GetAlertsWithInvalidEmbedding method")
},
GetDeclinedAlertsFunc: func(ctx context.Context, offset int, limit int) (alert.Alerts, error) {
panic("mock out the GetDeclinedAlerts method")
},
GetKnowledgeFunc: func(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug) (*knowledge.Knowledge, error) {
panic("mock out the GetKnowledge method")
},
GetKnowledgeByCommitFunc: func(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug, commitID string) (*knowledge.Knowledge, error) {
panic("mock out the GetKnowledgeByCommit method")
},
GetKnowledgesFunc: func(ctx context.Context, topic types.KnowledgeTopic) ([]*knowledge.Knowledge, error) {
panic("mock out the GetKnowledges method")
},
GetLatestAlertByThreadFunc: func(ctx context.Context, thread slack.Thread) (*alert.Alert, error) {
panic("mock out the GetLatestAlertByThread method")
},
GetLatestAlertListInThreadFunc: func(ctx context.Context, thread slack.Thread) (*alert.List, error) {
panic("mock out the GetLatestAlertListInThread method")
},
GetLatestHistoryFunc: func(ctx context.Context, ticketID types.TicketID) (*ticket.History, error) {
panic("mock out the GetLatestHistory method")
},
GetNoticeFunc: func(ctx context.Context, id types.NoticeID) (*notice.Notice, error) {
panic("mock out the GetNotice method")
},
GetOrCreateTagByNameFunc: func(ctx context.Context, name string, description string, color string, createdBy string) (*tag.Tag, error) {
panic("mock out the GetOrCreateTagByName method")
},
GetRefineGroupFunc: func(ctx context.Context, groupID types.RefineGroupID) (*refine.Group, error) {
panic("mock out the GetRefineGroup method")
},
GetSessionFunc: func(ctx context.Context, sessionID types.SessionID) (*session.Session, error) {
panic("mock out the GetSession method")
},
GetSessionMessagesFunc: func(ctx context.Context, sessionID types.SessionID) ([]*session.Message, error) {
panic("mock out the GetSessionMessages method")
},
GetSessionsByTicketFunc: func(ctx context.Context, ticketID types.TicketID) ([]*session.Session, error) {
panic("mock out the GetSessionsByTicket method")
},
GetTagByIDFunc: func(ctx context.Context, tagID string) (*tag.Tag, error) {
panic("mock out the GetTagByID method")
},
GetTagByNameFunc: func(ctx context.Context, name string) (*tag.Tag, error) {
panic("mock out the GetTagByName method")
},
GetTagsByIDsFunc: func(ctx context.Context, tagIDs []string) ([]*tag.Tag, error) {
panic("mock out the GetTagsByIDs method")
},
GetTicketFunc: func(ctx context.Context, ticketID types.TicketID) (*ticket.Ticket, error) {
panic("mock out the GetTicket method")
},
GetTicketByThreadFunc: func(ctx context.Context, thread slack.Thread) (*ticket.Ticket, error) {
panic("mock out the GetTicketByThread method")
},
GetTicketCommentsFunc: func(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error) {
panic("mock out the GetTicketComments method")
},
GetTicketCommentsPaginatedFunc: func(ctx context.Context, ticketID types.TicketID, offset int, limit int) ([]ticket.Comment, error) {
panic("mock out the GetTicketCommentsPaginated method")
},
GetTicketUnpromptedCommentsFunc: func(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error) {
panic("mock out the GetTicketUnpromptedComments method")
},
GetTicketsBySpanFunc: func(ctx context.Context, begin time.Time, end time.Time) ([]*ticket.Ticket, error) {
panic("mock out the GetTicketsBySpan method")
},
GetTicketsByStatusFunc: func(ctx context.Context, statuses []types.TicketStatus, keyword string, assigneeID string, offset int, limit int) ([]*ticket.Ticket, error) {
panic("mock out the GetTicketsByStatus method")
},
GetTicketsByStatusAndSpanFunc: func(ctx context.Context, status types.TicketStatus, begin time.Time, end time.Time) ([]*ticket.Ticket, error) {
panic("mock out the GetTicketsByStatusAndSpan method")
},
GetTicketsWithInvalidEmbeddingFunc: func(ctx context.Context) ([]*ticket.Ticket, error) {
panic("mock out the GetTicketsWithInvalidEmbedding method")
},
GetTokenFunc: func(ctx context.Context, tokenID auth.TokenID) (*auth.Token, error) {
panic("mock out the GetToken method")
},
IsTagNameExistsFunc: func(ctx context.Context, name string) (bool, error) {
panic("mock out the IsTagNameExists method")
},
ListAgentMemoriesFunc: func(ctx context.Context, agentID string) ([]*memory.AgentMemory, error) {
panic("mock out the ListAgentMemories method")
},
ListAgentMemoriesWithOptionsFunc: func(ctx context.Context, agentID string, opts interfaces.AgentMemoryListOptions) ([]*memory.AgentMemory, int, error) {
panic("mock out the ListAgentMemoriesWithOptions method")
},
ListAllAgentIDsFunc: func(ctx context.Context) ([]*interfaces.AgentSummary, error) {
panic("mock out the ListAllAgentIDs method")
},
ListAllTagsFunc: func(ctx context.Context) ([]*tag.Tag, error) {
panic("mock out the ListAllTags method")
},
ListKnowledgeSlugsFunc: func(ctx context.Context, topic types.KnowledgeTopic) ([]*knowledge.SlugInfo, error) {
panic("mock out the ListKnowledgeSlugs method")
},
ListKnowledgeTopicsFunc: func(ctx context.Context) ([]*knowledge.TopicSummary, error) {
panic("mock out the ListKnowledgeTopics method")
},
PutActivityFunc: func(ctx context.Context, activityMoqParam *activity.Activity) error {
panic("mock out the PutActivity method")
},
PutAlertFunc: func(ctx context.Context, alertMoqParam alert.Alert) error {
panic("mock out the PutAlert method")
},
PutAlertListFunc: func(ctx context.Context, list *alert.List) error {
panic("mock out the PutAlertList method")
},
PutHistoryFunc: func(ctx context.Context, ticketID types.TicketID, history *ticket.History) error {
panic("mock out the PutHistory method")
},
PutKnowledgeFunc: func(ctx context.Context, k *knowledge.Knowledge) error {
panic("mock out the PutKnowledge method")
},
PutRefineGroupFunc: func(ctx context.Context, group *refine.Group) error {
panic("mock out the PutRefineGroup method")
},
PutSessionFunc: func(ctx context.Context, sessionMoqParam *session.Session) error {
panic("mock out the PutSession method")
},
PutSessionMessageFunc: func(ctx context.Context, message *session.Message) error {
panic("mock out the PutSessionMessage method")
},
PutTicketFunc: func(ctx context.Context, ticketMoqParam ticket.Ticket) error {
panic("mock out the PutTicket method")
},
PutTicketCommentFunc: func(ctx context.Context, comment ticket.Comment) error {
panic("mock out the PutTicketComment method")
},
PutTicketCommentsPromptedFunc: func(ctx context.Context, ticketID types.TicketID, commentIDs []types.CommentID) error {
panic("mock out the PutTicketCommentsPrompted method")
},
PutTokenFunc: func(ctx context.Context, token *auth.Token) error {
panic("mock out the PutToken method")
},
RemoveTagFromAllAlertsFunc: func(ctx context.Context, name string) error {
panic("mock out the RemoveTagFromAllAlerts method")
},
RemoveTagFromAllTicketsFunc: func(ctx context.Context, name string) error {
panic("mock out the RemoveTagFromAllTickets method")
},
RemoveTagIDFromAllAlertsFunc: func(ctx context.Context, tagID string) error {
panic("mock out the RemoveTagIDFromAllAlerts method")
},
RemoveTagIDFromAllTicketsFunc: func(ctx context.Context, tagID string) error {
panic("mock out the RemoveTagIDFromAllTickets method")
},
SaveAgentMemoryFunc: func(ctx context.Context, mem *memory.AgentMemory) error {
panic("mock out the SaveAgentMemory method")
},
SearchAlertsFunc: func(ctx context.Context, path string, op string, value any, limit int) (alert.Alerts, error) {
panic("mock out the SearchAlerts method")
},
SearchMemoriesByEmbeddingFunc: func(ctx context.Context, agentID string, embedding []float32, limit int) ([]*memory.AgentMemory, error) {
panic("mock out the SearchMemoriesByEmbedding method")
},
UnbindAlertFromTicketFunc: func(ctx context.Context, alertID types.AlertID) error {
panic("mock out the UnbindAlertFromTicket method")
},
UpdateAlertStatusFunc: func(ctx context.Context, alertID types.AlertID, status alert.AlertStatus) error {
panic("mock out the UpdateAlertStatus method")
},
UpdateMemoryScoreBatchFunc: func(ctx context.Context, agentID string, updates map[types.AgentMemoryID]struct{Score float64; LastUsedAt time.Time}) error {
panic("mock out the UpdateMemoryScoreBatch method")
},
UpdateNoticeFunc: func(ctx context.Context, noticeMoqParam *notice.Notice) error {
panic("mock out the UpdateNotice method")
},
UpdateTagFunc: func(ctx context.Context, tagMoqParam *tag.Tag) error {
panic("mock out the UpdateTag method")
},
}
// use mockedRepository in code that requires interfaces.Repository
// and then make assertions.
}
func (*RepositoryMock) ArchiveKnowledge ¶ added in v0.8.0
func (mock *RepositoryMock) ArchiveKnowledge(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug) error
ArchiveKnowledge calls ArchiveKnowledgeFunc.
func (*RepositoryMock) ArchiveKnowledgeCalls ¶ added in v0.8.0
func (mock *RepositoryMock) ArchiveKnowledgeCalls() []struct { Ctx context.Context Topic types.KnowledgeTopic Slug types.KnowledgeSlug }
ArchiveKnowledgeCalls gets all the calls that were made to ArchiveKnowledge. Check the length with:
len(mockedRepository.ArchiveKnowledgeCalls())
func (*RepositoryMock) BatchGetAlerts ¶
func (mock *RepositoryMock) BatchGetAlerts(ctx context.Context, alertIDs []types.AlertID) (alert.Alerts, error)
BatchGetAlerts calls BatchGetAlertsFunc.
func (*RepositoryMock) BatchGetAlertsCalls ¶
func (mock *RepositoryMock) BatchGetAlertsCalls() []struct { Ctx context.Context AlertIDs []types.AlertID }
BatchGetAlertsCalls gets all the calls that were made to BatchGetAlerts. Check the length with:
len(mockedRepository.BatchGetAlertsCalls())
func (*RepositoryMock) BatchGetTickets ¶
func (mock *RepositoryMock) BatchGetTickets(ctx context.Context, ticketIDs []types.TicketID) ([]*ticket.Ticket, error)
BatchGetTickets calls BatchGetTicketsFunc.
func (*RepositoryMock) BatchGetTicketsCalls ¶
func (mock *RepositoryMock) BatchGetTicketsCalls() []struct { Ctx context.Context TicketIDs []types.TicketID }
BatchGetTicketsCalls gets all the calls that were made to BatchGetTickets. Check the length with:
len(mockedRepository.BatchGetTicketsCalls())
func (*RepositoryMock) BatchPutAlerts ¶
BatchPutAlerts calls BatchPutAlertsFunc.
func (*RepositoryMock) BatchPutAlertsCalls ¶
func (mock *RepositoryMock) BatchPutAlertsCalls() []struct { Ctx context.Context Alerts alert.Alerts }
BatchPutAlertsCalls gets all the calls that were made to BatchPutAlerts. Check the length with:
len(mockedRepository.BatchPutAlertsCalls())
func (*RepositoryMock) BatchSaveAgentMemories ¶ added in v0.8.0
func (mock *RepositoryMock) BatchSaveAgentMemories(ctx context.Context, memories []*memory.AgentMemory) error
BatchSaveAgentMemories calls BatchSaveAgentMemoriesFunc.
func (*RepositoryMock) BatchSaveAgentMemoriesCalls ¶ added in v0.8.0
func (mock *RepositoryMock) BatchSaveAgentMemoriesCalls() []struct { Ctx context.Context Memories []*memory.AgentMemory }
BatchSaveAgentMemoriesCalls gets all the calls that were made to BatchSaveAgentMemories. Check the length with:
len(mockedRepository.BatchSaveAgentMemoriesCalls())
func (*RepositoryMock) BatchUpdateTicketsStatus ¶
func (mock *RepositoryMock) BatchUpdateTicketsStatus(ctx context.Context, ticketIDs []types.TicketID, status types.TicketStatus) error
BatchUpdateTicketsStatus calls BatchUpdateTicketsStatusFunc.
func (*RepositoryMock) BatchUpdateTicketsStatusCalls ¶
func (mock *RepositoryMock) BatchUpdateTicketsStatusCalls() []struct { Ctx context.Context TicketIDs []types.TicketID Status types.TicketStatus }
BatchUpdateTicketsStatusCalls gets all the calls that were made to BatchUpdateTicketsStatus. Check the length with:
len(mockedRepository.BatchUpdateTicketsStatusCalls())
func (*RepositoryMock) BindAlertsToTicket ¶ added in v0.1.0
func (mock *RepositoryMock) BindAlertsToTicket(ctx context.Context, alertIDs []types.AlertID, ticketID types.TicketID) error
BindAlertsToTicket calls BindAlertsToTicketFunc.
func (*RepositoryMock) BindAlertsToTicketCalls ¶ added in v0.1.0
func (mock *RepositoryMock) BindAlertsToTicketCalls() []struct { Ctx context.Context AlertIDs []types.AlertID TicketID types.TicketID }
BindAlertsToTicketCalls gets all the calls that were made to BindAlertsToTicket. Check the length with:
len(mockedRepository.BindAlertsToTicketCalls())
func (*RepositoryMock) CalculateKnowledgeSize ¶ added in v0.8.0
func (mock *RepositoryMock) CalculateKnowledgeSize(ctx context.Context, topic types.KnowledgeTopic) (int, error)
CalculateKnowledgeSize calls CalculateKnowledgeSizeFunc.
func (*RepositoryMock) CalculateKnowledgeSizeCalls ¶ added in v0.8.0
func (mock *RepositoryMock) CalculateKnowledgeSizeCalls() []struct { Ctx context.Context Topic types.KnowledgeTopic }
CalculateKnowledgeSizeCalls gets all the calls that were made to CalculateKnowledgeSize. Check the length with:
len(mockedRepository.CalculateKnowledgeSizeCalls())
func (*RepositoryMock) CountActivities ¶
func (mock *RepositoryMock) CountActivities(ctx context.Context) (int, error)
CountActivities calls CountActivitiesFunc.
func (*RepositoryMock) CountActivitiesCalls ¶
func (mock *RepositoryMock) CountActivitiesCalls() []struct { Ctx context.Context }
CountActivitiesCalls gets all the calls that were made to CountActivities. Check the length with:
len(mockedRepository.CountActivitiesCalls())
func (*RepositoryMock) CountAlertsWithoutTicket ¶ added in v0.1.0
func (mock *RepositoryMock) CountAlertsWithoutTicket(ctx context.Context) (int, error)
CountAlertsWithoutTicket calls CountAlertsWithoutTicketFunc.
func (*RepositoryMock) CountAlertsWithoutTicketCalls ¶ added in v0.1.0
func (mock *RepositoryMock) CountAlertsWithoutTicketCalls() []struct { Ctx context.Context }
CountAlertsWithoutTicketCalls gets all the calls that were made to CountAlertsWithoutTicket. Check the length with:
len(mockedRepository.CountAlertsWithoutTicketCalls())
func (*RepositoryMock) CountDeclinedAlerts ¶ added in v0.10.0
func (mock *RepositoryMock) CountDeclinedAlerts(ctx context.Context) (int, error)
CountDeclinedAlerts calls CountDeclinedAlertsFunc.
func (*RepositoryMock) CountDeclinedAlertsCalls ¶ added in v0.10.0
func (mock *RepositoryMock) CountDeclinedAlertsCalls() []struct { Ctx context.Context }
CountDeclinedAlertsCalls gets all the calls that were made to CountDeclinedAlerts. Check the length with:
len(mockedRepository.CountDeclinedAlertsCalls())
func (*RepositoryMock) CountTicketComments ¶
func (mock *RepositoryMock) CountTicketComments(ctx context.Context, ticketID types.TicketID) (int, error)
CountTicketComments calls CountTicketCommentsFunc.
func (*RepositoryMock) CountTicketCommentsCalls ¶
func (mock *RepositoryMock) CountTicketCommentsCalls() []struct { Ctx context.Context TicketID types.TicketID }
CountTicketCommentsCalls gets all the calls that were made to CountTicketComments. Check the length with:
len(mockedRepository.CountTicketCommentsCalls())
func (*RepositoryMock) CountTicketsByStatus ¶
func (mock *RepositoryMock) CountTicketsByStatus(ctx context.Context, statuses []types.TicketStatus, keyword string, assigneeID string) (int, error)
CountTicketsByStatus calls CountTicketsByStatusFunc.
func (*RepositoryMock) CountTicketsByStatusCalls ¶
func (mock *RepositoryMock) CountTicketsByStatusCalls() []struct { Ctx context.Context Statuses []types.TicketStatus Keyword string AssigneeID string }
CountTicketsByStatusCalls gets all the calls that were made to CountTicketsByStatus. Check the length with:
len(mockedRepository.CountTicketsByStatusCalls())
func (*RepositoryMock) CreateNotice ¶ added in v0.4.0
CreateNotice calls CreateNoticeFunc.
func (*RepositoryMock) CreateNoticeCalls ¶ added in v0.4.0
func (mock *RepositoryMock) CreateNoticeCalls() []struct { Ctx context.Context NoticeMoqParam *notice.Notice }
CreateNoticeCalls gets all the calls that were made to CreateNotice. Check the length with:
len(mockedRepository.CreateNoticeCalls())
func (*RepositoryMock) CreateTagWithID ¶ added in v0.2.0
CreateTagWithID calls CreateTagWithIDFunc.
func (*RepositoryMock) CreateTagWithIDCalls ¶ added in v0.2.0
func (mock *RepositoryMock) CreateTagWithIDCalls() []struct { Ctx context.Context TagMoqParam *tag.Tag }
CreateTagWithIDCalls gets all the calls that were made to CreateTagWithID. Check the length with:
len(mockedRepository.CreateTagWithIDCalls())
func (*RepositoryMock) DeleteAgentMemoriesBatch ¶ added in v0.6.2
func (mock *RepositoryMock) DeleteAgentMemoriesBatch(ctx context.Context, agentID string, memoryIDs []types.AgentMemoryID) (int, error)
DeleteAgentMemoriesBatch calls DeleteAgentMemoriesBatchFunc.
func (*RepositoryMock) DeleteAgentMemoriesBatchCalls ¶ added in v0.6.2
func (mock *RepositoryMock) DeleteAgentMemoriesBatchCalls() []struct { Ctx context.Context AgentID string MemoryIDs []types.AgentMemoryID }
DeleteAgentMemoriesBatchCalls gets all the calls that were made to DeleteAgentMemoriesBatch. Check the length with:
len(mockedRepository.DeleteAgentMemoriesBatchCalls())
func (*RepositoryMock) DeleteSession ¶ added in v0.8.0
DeleteSession calls DeleteSessionFunc.
func (*RepositoryMock) DeleteSessionCalls ¶ added in v0.8.0
func (mock *RepositoryMock) DeleteSessionCalls() []struct { Ctx context.Context SessionID types.SessionID }
DeleteSessionCalls gets all the calls that were made to DeleteSession. Check the length with:
len(mockedRepository.DeleteSessionCalls())
func (*RepositoryMock) DeleteTagByID ¶ added in v0.2.0
func (mock *RepositoryMock) DeleteTagByID(ctx context.Context, tagID string) error
DeleteTagByID calls DeleteTagByIDFunc.
func (*RepositoryMock) DeleteTagByIDCalls ¶ added in v0.2.0
func (mock *RepositoryMock) DeleteTagByIDCalls() []struct { Ctx context.Context TagID string }
DeleteTagByIDCalls gets all the calls that were made to DeleteTagByID. Check the length with:
len(mockedRepository.DeleteTagByIDCalls())
func (*RepositoryMock) DeleteToken ¶
DeleteToken calls DeleteTokenFunc.
func (*RepositoryMock) DeleteTokenCalls ¶
func (mock *RepositoryMock) DeleteTokenCalls() []struct { Ctx context.Context TokenID auth.TokenID }
DeleteTokenCalls gets all the calls that were made to DeleteToken. Check the length with:
len(mockedRepository.DeleteTokenCalls())
func (*RepositoryMock) FindNearestAlerts ¶
func (mock *RepositoryMock) FindNearestAlerts(ctx context.Context, embedding []float32, limit int) (alert.Alerts, error)
FindNearestAlerts calls FindNearestAlertsFunc.
func (*RepositoryMock) FindNearestAlertsCalls ¶
func (mock *RepositoryMock) FindNearestAlertsCalls() []struct { Ctx context.Context Embedding []float32 Limit int }
FindNearestAlertsCalls gets all the calls that were made to FindNearestAlerts. Check the length with:
len(mockedRepository.FindNearestAlertsCalls())
func (*RepositoryMock) FindNearestTickets ¶
func (mock *RepositoryMock) FindNearestTickets(ctx context.Context, embedding []float32, limit int) ([]*ticket.Ticket, error)
FindNearestTickets calls FindNearestTicketsFunc.
func (*RepositoryMock) FindNearestTicketsCalls ¶
func (mock *RepositoryMock) FindNearestTicketsCalls() []struct { Ctx context.Context Embedding []float32 Limit int }
FindNearestTicketsCalls gets all the calls that were made to FindNearestTickets. Check the length with:
len(mockedRepository.FindNearestTicketsCalls())
func (*RepositoryMock) FindNearestTicketsWithSpan ¶
func (mock *RepositoryMock) FindNearestTicketsWithSpan(ctx context.Context, embedding []float32, begin time.Time, end time.Time, limit int) ([]*ticket.Ticket, error)
FindNearestTicketsWithSpan calls FindNearestTicketsWithSpanFunc.
func (*RepositoryMock) FindNearestTicketsWithSpanCalls ¶
func (mock *RepositoryMock) FindNearestTicketsWithSpanCalls() []struct { Ctx context.Context Embedding []float32 Begin time.Time End time.Time Limit int }
FindNearestTicketsWithSpanCalls gets all the calls that were made to FindNearestTicketsWithSpan. Check the length with:
len(mockedRepository.FindNearestTicketsWithSpanCalls())
func (*RepositoryMock) GetActivities ¶
func (mock *RepositoryMock) GetActivities(ctx context.Context, offset int, limit int) ([]*activity.Activity, error)
GetActivities calls GetActivitiesFunc.
func (*RepositoryMock) GetActivitiesCalls ¶
func (mock *RepositoryMock) GetActivitiesCalls() []struct { Ctx context.Context Offset int Limit int }
GetActivitiesCalls gets all the calls that were made to GetActivities. Check the length with:
len(mockedRepository.GetActivitiesCalls())
func (*RepositoryMock) GetAgentMemory ¶ added in v0.5.0
func (mock *RepositoryMock) GetAgentMemory(ctx context.Context, agentID string, id types.AgentMemoryID) (*memory.AgentMemory, error)
GetAgentMemory calls GetAgentMemoryFunc.
func (*RepositoryMock) GetAgentMemoryCalls ¶ added in v0.5.0
func (mock *RepositoryMock) GetAgentMemoryCalls() []struct { Ctx context.Context AgentID string ID types.AgentMemoryID }
GetAgentMemoryCalls gets all the calls that were made to GetAgentMemory. Check the length with:
len(mockedRepository.GetAgentMemoryCalls())
func (*RepositoryMock) GetAlert ¶
func (mock *RepositoryMock) GetAlert(ctx context.Context, alertID types.AlertID) (*alert.Alert, error)
GetAlert calls GetAlertFunc.
func (*RepositoryMock) GetAlertCalls ¶
func (mock *RepositoryMock) GetAlertCalls() []struct { Ctx context.Context AlertID types.AlertID }
GetAlertCalls gets all the calls that were made to GetAlert. Check the length with:
len(mockedRepository.GetAlertCalls())
func (*RepositoryMock) GetAlertList ¶
func (mock *RepositoryMock) GetAlertList(ctx context.Context, listID types.AlertListID) (*alert.List, error)
GetAlertList calls GetAlertListFunc.
func (*RepositoryMock) GetAlertListByThread ¶
func (mock *RepositoryMock) GetAlertListByThread(ctx context.Context, thread slack.Thread) (*alert.List, error)
GetAlertListByThread calls GetAlertListByThreadFunc.
func (*RepositoryMock) GetAlertListByThreadCalls ¶
func (mock *RepositoryMock) GetAlertListByThreadCalls() []struct { Ctx context.Context Thread slack.Thread }
GetAlertListByThreadCalls gets all the calls that were made to GetAlertListByThread. Check the length with:
len(mockedRepository.GetAlertListByThreadCalls())
func (*RepositoryMock) GetAlertListCalls ¶
func (mock *RepositoryMock) GetAlertListCalls() []struct { Ctx context.Context ListID types.AlertListID }
GetAlertListCalls gets all the calls that were made to GetAlertList. Check the length with:
len(mockedRepository.GetAlertListCalls())
func (*RepositoryMock) GetAlertListsInThread ¶
func (mock *RepositoryMock) GetAlertListsInThread(ctx context.Context, thread slack.Thread) ([]*alert.List, error)
GetAlertListsInThread calls GetAlertListsInThreadFunc.
func (*RepositoryMock) GetAlertListsInThreadCalls ¶
func (mock *RepositoryMock) GetAlertListsInThreadCalls() []struct { Ctx context.Context Thread slack.Thread }
GetAlertListsInThreadCalls gets all the calls that were made to GetAlertListsInThread. Check the length with:
len(mockedRepository.GetAlertListsInThreadCalls())
func (*RepositoryMock) GetAlertWithoutEmbedding ¶
GetAlertWithoutEmbedding calls GetAlertWithoutEmbeddingFunc.
func (*RepositoryMock) GetAlertWithoutEmbeddingCalls ¶
func (mock *RepositoryMock) GetAlertWithoutEmbeddingCalls() []struct { Ctx context.Context }
GetAlertWithoutEmbeddingCalls gets all the calls that were made to GetAlertWithoutEmbedding. Check the length with:
len(mockedRepository.GetAlertWithoutEmbeddingCalls())
func (*RepositoryMock) GetAlertWithoutTicket ¶
func (mock *RepositoryMock) GetAlertWithoutTicket(ctx context.Context, offset int, limit int) (alert.Alerts, error)
GetAlertWithoutTicket calls GetAlertWithoutTicketFunc.
func (*RepositoryMock) GetAlertWithoutTicketCalls ¶
func (mock *RepositoryMock) GetAlertWithoutTicketCalls() []struct { Ctx context.Context Offset int Limit int }
GetAlertWithoutTicketCalls gets all the calls that were made to GetAlertWithoutTicket. Check the length with:
len(mockedRepository.GetAlertWithoutTicketCalls())
func (*RepositoryMock) GetAlertsBySpan ¶
func (mock *RepositoryMock) GetAlertsBySpan(ctx context.Context, begin time.Time, end time.Time) (alert.Alerts, error)
GetAlertsBySpan calls GetAlertsBySpanFunc.
func (*RepositoryMock) GetAlertsBySpanCalls ¶
func (mock *RepositoryMock) GetAlertsBySpanCalls() []struct { Ctx context.Context Begin time.Time End time.Time }
GetAlertsBySpanCalls gets all the calls that were made to GetAlertsBySpan. Check the length with:
len(mockedRepository.GetAlertsBySpanCalls())
func (*RepositoryMock) GetAlertsByThread ¶ added in v0.6.0
func (mock *RepositoryMock) GetAlertsByThread(ctx context.Context, thread slack.Thread) (alert.Alerts, error)
GetAlertsByThread calls GetAlertsByThreadFunc.
func (*RepositoryMock) GetAlertsByThreadCalls ¶ added in v0.6.0
func (mock *RepositoryMock) GetAlertsByThreadCalls() []struct { Ctx context.Context Thread slack.Thread }
GetAlertsByThreadCalls gets all the calls that were made to GetAlertsByThread. Check the length with:
len(mockedRepository.GetAlertsByThreadCalls())
func (*RepositoryMock) GetAlertsWithInvalidEmbedding ¶ added in v0.1.0
func (mock *RepositoryMock) GetAlertsWithInvalidEmbedding(ctx context.Context) (alert.Alerts, error)
GetAlertsWithInvalidEmbedding calls GetAlertsWithInvalidEmbeddingFunc.
func (*RepositoryMock) GetAlertsWithInvalidEmbeddingCalls ¶ added in v0.1.0
func (mock *RepositoryMock) GetAlertsWithInvalidEmbeddingCalls() []struct { Ctx context.Context }
GetAlertsWithInvalidEmbeddingCalls gets all the calls that were made to GetAlertsWithInvalidEmbedding. Check the length with:
len(mockedRepository.GetAlertsWithInvalidEmbeddingCalls())
func (*RepositoryMock) GetDeclinedAlerts ¶ added in v0.10.0
func (mock *RepositoryMock) GetDeclinedAlerts(ctx context.Context, offset int, limit int) (alert.Alerts, error)
GetDeclinedAlerts calls GetDeclinedAlertsFunc.
func (*RepositoryMock) GetDeclinedAlertsCalls ¶ added in v0.10.0
func (mock *RepositoryMock) GetDeclinedAlertsCalls() []struct { Ctx context.Context Offset int Limit int }
GetDeclinedAlertsCalls gets all the calls that were made to GetDeclinedAlerts. Check the length with:
len(mockedRepository.GetDeclinedAlertsCalls())
func (*RepositoryMock) GetKnowledge ¶ added in v0.8.0
func (mock *RepositoryMock) GetKnowledge(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug) (*knowledge.Knowledge, error)
GetKnowledge calls GetKnowledgeFunc.
func (*RepositoryMock) GetKnowledgeByCommit ¶ added in v0.8.0
func (mock *RepositoryMock) GetKnowledgeByCommit(ctx context.Context, topic types.KnowledgeTopic, slug types.KnowledgeSlug, commitID string) (*knowledge.Knowledge, error)
GetKnowledgeByCommit calls GetKnowledgeByCommitFunc.
func (*RepositoryMock) GetKnowledgeByCommitCalls ¶ added in v0.8.0
func (mock *RepositoryMock) GetKnowledgeByCommitCalls() []struct { Ctx context.Context Topic types.KnowledgeTopic Slug types.KnowledgeSlug CommitID string }
GetKnowledgeByCommitCalls gets all the calls that were made to GetKnowledgeByCommit. Check the length with:
len(mockedRepository.GetKnowledgeByCommitCalls())
func (*RepositoryMock) GetKnowledgeCalls ¶ added in v0.8.0
func (mock *RepositoryMock) GetKnowledgeCalls() []struct { Ctx context.Context Topic types.KnowledgeTopic Slug types.KnowledgeSlug }
GetKnowledgeCalls gets all the calls that were made to GetKnowledge. Check the length with:
len(mockedRepository.GetKnowledgeCalls())
func (*RepositoryMock) GetKnowledges ¶ added in v0.8.0
func (mock *RepositoryMock) GetKnowledges(ctx context.Context, topic types.KnowledgeTopic) ([]*knowledge.Knowledge, error)
GetKnowledges calls GetKnowledgesFunc.
func (*RepositoryMock) GetKnowledgesCalls ¶ added in v0.8.0
func (mock *RepositoryMock) GetKnowledgesCalls() []struct { Ctx context.Context Topic types.KnowledgeTopic }
GetKnowledgesCalls gets all the calls that were made to GetKnowledges. Check the length with:
len(mockedRepository.GetKnowledgesCalls())
func (*RepositoryMock) GetLatestAlertByThread ¶
func (mock *RepositoryMock) GetLatestAlertByThread(ctx context.Context, thread slack.Thread) (*alert.Alert, error)
GetLatestAlertByThread calls GetLatestAlertByThreadFunc.
func (*RepositoryMock) GetLatestAlertByThreadCalls ¶
func (mock *RepositoryMock) GetLatestAlertByThreadCalls() []struct { Ctx context.Context Thread slack.Thread }
GetLatestAlertByThreadCalls gets all the calls that were made to GetLatestAlertByThread. Check the length with:
len(mockedRepository.GetLatestAlertByThreadCalls())
func (*RepositoryMock) GetLatestAlertListInThread ¶
func (mock *RepositoryMock) GetLatestAlertListInThread(ctx context.Context, thread slack.Thread) (*alert.List, error)
GetLatestAlertListInThread calls GetLatestAlertListInThreadFunc.
func (*RepositoryMock) GetLatestAlertListInThreadCalls ¶
func (mock *RepositoryMock) GetLatestAlertListInThreadCalls() []struct { Ctx context.Context Thread slack.Thread }
GetLatestAlertListInThreadCalls gets all the calls that were made to GetLatestAlertListInThread. Check the length with:
len(mockedRepository.GetLatestAlertListInThreadCalls())
func (*RepositoryMock) GetLatestHistory ¶
func (mock *RepositoryMock) GetLatestHistory(ctx context.Context, ticketID types.TicketID) (*ticket.History, error)
GetLatestHistory calls GetLatestHistoryFunc.
func (*RepositoryMock) GetLatestHistoryCalls ¶
func (mock *RepositoryMock) GetLatestHistoryCalls() []struct { Ctx context.Context TicketID types.TicketID }
GetLatestHistoryCalls gets all the calls that were made to GetLatestHistory. Check the length with:
len(mockedRepository.GetLatestHistoryCalls())
func (*RepositoryMock) GetNotice ¶ added in v0.4.0
func (mock *RepositoryMock) GetNotice(ctx context.Context, id types.NoticeID) (*notice.Notice, error)
GetNotice calls GetNoticeFunc.
func (*RepositoryMock) GetNoticeCalls ¶ added in v0.4.0
func (mock *RepositoryMock) GetNoticeCalls() []struct { Ctx context.Context ID types.NoticeID }
GetNoticeCalls gets all the calls that were made to GetNotice. Check the length with:
len(mockedRepository.GetNoticeCalls())
func (*RepositoryMock) GetOrCreateTagByName ¶ added in v0.2.0
func (mock *RepositoryMock) GetOrCreateTagByName(ctx context.Context, name string, description string, color string, createdBy string) (*tag.Tag, error)
GetOrCreateTagByName calls GetOrCreateTagByNameFunc.
func (*RepositoryMock) GetOrCreateTagByNameCalls ¶ added in v0.2.0
func (mock *RepositoryMock) GetOrCreateTagByNameCalls() []struct { Ctx context.Context Name string Description string Color string CreatedBy string }
GetOrCreateTagByNameCalls gets all the calls that were made to GetOrCreateTagByName. Check the length with:
len(mockedRepository.GetOrCreateTagByNameCalls())
func (*RepositoryMock) GetRefineGroup ¶ added in v0.10.0
func (mock *RepositoryMock) GetRefineGroup(ctx context.Context, groupID types.RefineGroupID) (*refine.Group, error)
GetRefineGroup calls GetRefineGroupFunc.
func (*RepositoryMock) GetRefineGroupCalls ¶ added in v0.10.0
func (mock *RepositoryMock) GetRefineGroupCalls() []struct { Ctx context.Context GroupID types.RefineGroupID }
GetRefineGroupCalls gets all the calls that were made to GetRefineGroup. Check the length with:
len(mockedRepository.GetRefineGroupCalls())
func (*RepositoryMock) GetSession ¶ added in v0.8.0
func (mock *RepositoryMock) GetSession(ctx context.Context, sessionID types.SessionID) (*session.Session, error)
GetSession calls GetSessionFunc.
func (*RepositoryMock) GetSessionCalls ¶ added in v0.8.0
func (mock *RepositoryMock) GetSessionCalls() []struct { Ctx context.Context SessionID types.SessionID }
GetSessionCalls gets all the calls that were made to GetSession. Check the length with:
len(mockedRepository.GetSessionCalls())
func (*RepositoryMock) GetSessionMessages ¶ added in v0.8.0
func (mock *RepositoryMock) GetSessionMessages(ctx context.Context, sessionID types.SessionID) ([]*session.Message, error)
GetSessionMessages calls GetSessionMessagesFunc.
func (*RepositoryMock) GetSessionMessagesCalls ¶ added in v0.8.0
func (mock *RepositoryMock) GetSessionMessagesCalls() []struct { Ctx context.Context SessionID types.SessionID }
GetSessionMessagesCalls gets all the calls that were made to GetSessionMessages. Check the length with:
len(mockedRepository.GetSessionMessagesCalls())
func (*RepositoryMock) GetSessionsByTicket ¶ added in v0.8.0
func (mock *RepositoryMock) GetSessionsByTicket(ctx context.Context, ticketID types.TicketID) ([]*session.Session, error)
GetSessionsByTicket calls GetSessionsByTicketFunc.
func (*RepositoryMock) GetSessionsByTicketCalls ¶ added in v0.8.0
func (mock *RepositoryMock) GetSessionsByTicketCalls() []struct { Ctx context.Context TicketID types.TicketID }
GetSessionsByTicketCalls gets all the calls that were made to GetSessionsByTicket. Check the length with:
len(mockedRepository.GetSessionsByTicketCalls())
func (*RepositoryMock) GetTagByID ¶ added in v0.2.0
GetTagByID calls GetTagByIDFunc.
func (*RepositoryMock) GetTagByIDCalls ¶ added in v0.2.0
func (mock *RepositoryMock) GetTagByIDCalls() []struct { Ctx context.Context TagID string }
GetTagByIDCalls gets all the calls that were made to GetTagByID. Check the length with:
len(mockedRepository.GetTagByIDCalls())
func (*RepositoryMock) GetTagByName ¶ added in v0.2.0
GetTagByName calls GetTagByNameFunc.
func (*RepositoryMock) GetTagByNameCalls ¶ added in v0.2.0
func (mock *RepositoryMock) GetTagByNameCalls() []struct { Ctx context.Context Name string }
GetTagByNameCalls gets all the calls that were made to GetTagByName. Check the length with:
len(mockedRepository.GetTagByNameCalls())
func (*RepositoryMock) GetTagsByIDs ¶ added in v0.2.0
GetTagsByIDs calls GetTagsByIDsFunc.
func (*RepositoryMock) GetTagsByIDsCalls ¶ added in v0.2.0
func (mock *RepositoryMock) GetTagsByIDsCalls() []struct { Ctx context.Context TagIDs []string }
GetTagsByIDsCalls gets all the calls that were made to GetTagsByIDs. Check the length with:
len(mockedRepository.GetTagsByIDsCalls())
func (*RepositoryMock) GetTicket ¶
func (mock *RepositoryMock) GetTicket(ctx context.Context, ticketID types.TicketID) (*ticket.Ticket, error)
GetTicket calls GetTicketFunc.
func (*RepositoryMock) GetTicketByThread ¶
func (mock *RepositoryMock) GetTicketByThread(ctx context.Context, thread slack.Thread) (*ticket.Ticket, error)
GetTicketByThread calls GetTicketByThreadFunc.
func (*RepositoryMock) GetTicketByThreadCalls ¶
func (mock *RepositoryMock) GetTicketByThreadCalls() []struct { Ctx context.Context Thread slack.Thread }
GetTicketByThreadCalls gets all the calls that were made to GetTicketByThread. Check the length with:
len(mockedRepository.GetTicketByThreadCalls())
func (*RepositoryMock) GetTicketCalls ¶
func (mock *RepositoryMock) GetTicketCalls() []struct { Ctx context.Context TicketID types.TicketID }
GetTicketCalls gets all the calls that were made to GetTicket. Check the length with:
len(mockedRepository.GetTicketCalls())
func (*RepositoryMock) GetTicketComments ¶
func (mock *RepositoryMock) GetTicketComments(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
GetTicketComments calls GetTicketCommentsFunc.
func (*RepositoryMock) GetTicketCommentsCalls ¶
func (mock *RepositoryMock) GetTicketCommentsCalls() []struct { Ctx context.Context TicketID types.TicketID }
GetTicketCommentsCalls gets all the calls that were made to GetTicketComments. Check the length with:
len(mockedRepository.GetTicketCommentsCalls())
func (*RepositoryMock) GetTicketCommentsPaginated ¶
func (mock *RepositoryMock) GetTicketCommentsPaginated(ctx context.Context, ticketID types.TicketID, offset int, limit int) ([]ticket.Comment, error)
GetTicketCommentsPaginated calls GetTicketCommentsPaginatedFunc.
func (*RepositoryMock) GetTicketCommentsPaginatedCalls ¶
func (mock *RepositoryMock) GetTicketCommentsPaginatedCalls() []struct { Ctx context.Context TicketID types.TicketID Offset int Limit int }
GetTicketCommentsPaginatedCalls gets all the calls that were made to GetTicketCommentsPaginated. Check the length with:
len(mockedRepository.GetTicketCommentsPaginatedCalls())
func (*RepositoryMock) GetTicketUnpromptedComments ¶
func (mock *RepositoryMock) GetTicketUnpromptedComments(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
GetTicketUnpromptedComments calls GetTicketUnpromptedCommentsFunc.
func (*RepositoryMock) GetTicketUnpromptedCommentsCalls ¶
func (mock *RepositoryMock) GetTicketUnpromptedCommentsCalls() []struct { Ctx context.Context TicketID types.TicketID }
GetTicketUnpromptedCommentsCalls gets all the calls that were made to GetTicketUnpromptedComments. Check the length with:
len(mockedRepository.GetTicketUnpromptedCommentsCalls())
func (*RepositoryMock) GetTicketsBySpan ¶
func (mock *RepositoryMock) GetTicketsBySpan(ctx context.Context, begin time.Time, end time.Time) ([]*ticket.Ticket, error)
GetTicketsBySpan calls GetTicketsBySpanFunc.
func (*RepositoryMock) GetTicketsBySpanCalls ¶
func (mock *RepositoryMock) GetTicketsBySpanCalls() []struct { Ctx context.Context Begin time.Time End time.Time }
GetTicketsBySpanCalls gets all the calls that were made to GetTicketsBySpan. Check the length with:
len(mockedRepository.GetTicketsBySpanCalls())
func (*RepositoryMock) GetTicketsByStatus ¶
func (mock *RepositoryMock) GetTicketsByStatus(ctx context.Context, statuses []types.TicketStatus, keyword string, assigneeID string, offset int, limit int) ([]*ticket.Ticket, error)
GetTicketsByStatus calls GetTicketsByStatusFunc.
func (*RepositoryMock) GetTicketsByStatusAndSpan ¶
func (mock *RepositoryMock) GetTicketsByStatusAndSpan(ctx context.Context, status types.TicketStatus, begin time.Time, end time.Time) ([]*ticket.Ticket, error)
GetTicketsByStatusAndSpan calls GetTicketsByStatusAndSpanFunc.
func (*RepositoryMock) GetTicketsByStatusAndSpanCalls ¶
func (mock *RepositoryMock) GetTicketsByStatusAndSpanCalls() []struct { Ctx context.Context Status types.TicketStatus Begin time.Time End time.Time }
GetTicketsByStatusAndSpanCalls gets all the calls that were made to GetTicketsByStatusAndSpan. Check the length with:
len(mockedRepository.GetTicketsByStatusAndSpanCalls())
func (*RepositoryMock) GetTicketsByStatusCalls ¶
func (mock *RepositoryMock) GetTicketsByStatusCalls() []struct { Ctx context.Context Statuses []types.TicketStatus Keyword string AssigneeID string Offset int Limit int }
GetTicketsByStatusCalls gets all the calls that were made to GetTicketsByStatus. Check the length with:
len(mockedRepository.GetTicketsByStatusCalls())
func (*RepositoryMock) GetTicketsWithInvalidEmbedding ¶ added in v0.1.0
func (mock *RepositoryMock) GetTicketsWithInvalidEmbedding(ctx context.Context) ([]*ticket.Ticket, error)
GetTicketsWithInvalidEmbedding calls GetTicketsWithInvalidEmbeddingFunc.
func (*RepositoryMock) GetTicketsWithInvalidEmbeddingCalls ¶ added in v0.1.0
func (mock *RepositoryMock) GetTicketsWithInvalidEmbeddingCalls() []struct { Ctx context.Context }
GetTicketsWithInvalidEmbeddingCalls gets all the calls that were made to GetTicketsWithInvalidEmbedding. Check the length with:
len(mockedRepository.GetTicketsWithInvalidEmbeddingCalls())
func (*RepositoryMock) GetToken ¶
func (mock *RepositoryMock) GetToken(ctx context.Context, tokenID auth.TokenID) (*auth.Token, error)
GetToken calls GetTokenFunc.
func (*RepositoryMock) GetTokenCalls ¶
func (mock *RepositoryMock) GetTokenCalls() []struct { Ctx context.Context TokenID auth.TokenID }
GetTokenCalls gets all the calls that were made to GetToken. Check the length with:
len(mockedRepository.GetTokenCalls())
func (*RepositoryMock) IsTagNameExists ¶ added in v0.2.0
IsTagNameExists calls IsTagNameExistsFunc.
func (*RepositoryMock) IsTagNameExistsCalls ¶ added in v0.2.0
func (mock *RepositoryMock) IsTagNameExistsCalls() []struct { Ctx context.Context Name string }
IsTagNameExistsCalls gets all the calls that were made to IsTagNameExists. Check the length with:
len(mockedRepository.IsTagNameExistsCalls())
func (*RepositoryMock) ListAgentMemories ¶ added in v0.6.2
func (mock *RepositoryMock) ListAgentMemories(ctx context.Context, agentID string) ([]*memory.AgentMemory, error)
ListAgentMemories calls ListAgentMemoriesFunc.
func (*RepositoryMock) ListAgentMemoriesCalls ¶ added in v0.6.2
func (mock *RepositoryMock) ListAgentMemoriesCalls() []struct { Ctx context.Context AgentID string }
ListAgentMemoriesCalls gets all the calls that were made to ListAgentMemories. Check the length with:
len(mockedRepository.ListAgentMemoriesCalls())
func (*RepositoryMock) ListAgentMemoriesWithOptions ¶ added in v0.8.0
func (mock *RepositoryMock) ListAgentMemoriesWithOptions(ctx context.Context, agentID string, opts interfaces.AgentMemoryListOptions) ([]*memory.AgentMemory, int, error)
ListAgentMemoriesWithOptions calls ListAgentMemoriesWithOptionsFunc.
func (*RepositoryMock) ListAgentMemoriesWithOptionsCalls ¶ added in v0.8.0
func (mock *RepositoryMock) ListAgentMemoriesWithOptionsCalls() []struct { Ctx context.Context AgentID string Opts interfaces.AgentMemoryListOptions }
ListAgentMemoriesWithOptionsCalls gets all the calls that were made to ListAgentMemoriesWithOptions. Check the length with:
len(mockedRepository.ListAgentMemoriesWithOptionsCalls())
func (*RepositoryMock) ListAllAgentIDs ¶ added in v0.8.0
func (mock *RepositoryMock) ListAllAgentIDs(ctx context.Context) ([]*interfaces.AgentSummary, error)
ListAllAgentIDs calls ListAllAgentIDsFunc.
func (*RepositoryMock) ListAllAgentIDsCalls ¶ added in v0.8.0
func (mock *RepositoryMock) ListAllAgentIDsCalls() []struct { Ctx context.Context }
ListAllAgentIDsCalls gets all the calls that were made to ListAllAgentIDs. Check the length with:
len(mockedRepository.ListAllAgentIDsCalls())
func (*RepositoryMock) ListAllTags ¶ added in v0.2.0
ListAllTags calls ListAllTagsFunc.
func (*RepositoryMock) ListAllTagsCalls ¶ added in v0.2.0
func (mock *RepositoryMock) ListAllTagsCalls() []struct { Ctx context.Context }
ListAllTagsCalls gets all the calls that were made to ListAllTags. Check the length with:
len(mockedRepository.ListAllTagsCalls())
func (*RepositoryMock) ListKnowledgeSlugs ¶ added in v0.8.0
func (mock *RepositoryMock) ListKnowledgeSlugs(ctx context.Context, topic types.KnowledgeTopic) ([]*knowledge.SlugInfo, error)
ListKnowledgeSlugs calls ListKnowledgeSlugsFunc.
func (*RepositoryMock) ListKnowledgeSlugsCalls ¶ added in v0.8.0
func (mock *RepositoryMock) ListKnowledgeSlugsCalls() []struct { Ctx context.Context Topic types.KnowledgeTopic }
ListKnowledgeSlugsCalls gets all the calls that were made to ListKnowledgeSlugs. Check the length with:
len(mockedRepository.ListKnowledgeSlugsCalls())
func (*RepositoryMock) ListKnowledgeTopics ¶ added in v0.8.0
func (mock *RepositoryMock) ListKnowledgeTopics(ctx context.Context) ([]*knowledge.TopicSummary, error)
ListKnowledgeTopics calls ListKnowledgeTopicsFunc.
func (*RepositoryMock) ListKnowledgeTopicsCalls ¶ added in v0.8.0
func (mock *RepositoryMock) ListKnowledgeTopicsCalls() []struct { Ctx context.Context }
ListKnowledgeTopicsCalls gets all the calls that were made to ListKnowledgeTopics. Check the length with:
len(mockedRepository.ListKnowledgeTopicsCalls())
func (*RepositoryMock) PutActivity ¶
func (mock *RepositoryMock) PutActivity(ctx context.Context, activityMoqParam *activity.Activity) error
PutActivity calls PutActivityFunc.
func (*RepositoryMock) PutActivityCalls ¶
func (mock *RepositoryMock) PutActivityCalls() []struct { Ctx context.Context ActivityMoqParam *activity.Activity }
PutActivityCalls gets all the calls that were made to PutActivity. Check the length with:
len(mockedRepository.PutActivityCalls())
func (*RepositoryMock) PutAlertCalls ¶
func (mock *RepositoryMock) PutAlertCalls() []struct { Ctx context.Context AlertMoqParam alert.Alert }
PutAlertCalls gets all the calls that were made to PutAlert. Check the length with:
len(mockedRepository.PutAlertCalls())
func (*RepositoryMock) PutAlertList ¶
PutAlertList calls PutAlertListFunc.
func (*RepositoryMock) PutAlertListCalls ¶
func (mock *RepositoryMock) PutAlertListCalls() []struct { Ctx context.Context List *alert.List }
PutAlertListCalls gets all the calls that were made to PutAlertList. Check the length with:
len(mockedRepository.PutAlertListCalls())
func (*RepositoryMock) PutHistory ¶
func (mock *RepositoryMock) PutHistory(ctx context.Context, ticketID types.TicketID, history *ticket.History) error
PutHistory calls PutHistoryFunc.
func (*RepositoryMock) PutHistoryCalls ¶
func (mock *RepositoryMock) PutHistoryCalls() []struct { Ctx context.Context TicketID types.TicketID History *ticket.History }
PutHistoryCalls gets all the calls that were made to PutHistory. Check the length with:
len(mockedRepository.PutHistoryCalls())
func (*RepositoryMock) PutKnowledge ¶ added in v0.8.0
PutKnowledge calls PutKnowledgeFunc.
func (*RepositoryMock) PutKnowledgeCalls ¶ added in v0.8.0
func (mock *RepositoryMock) PutKnowledgeCalls() []struct { Ctx context.Context K *knowledge.Knowledge }
PutKnowledgeCalls gets all the calls that were made to PutKnowledge. Check the length with:
len(mockedRepository.PutKnowledgeCalls())
func (*RepositoryMock) PutRefineGroup ¶ added in v0.10.0
PutRefineGroup calls PutRefineGroupFunc.
func (*RepositoryMock) PutRefineGroupCalls ¶ added in v0.10.0
func (mock *RepositoryMock) PutRefineGroupCalls() []struct { Ctx context.Context Group *refine.Group }
PutRefineGroupCalls gets all the calls that were made to PutRefineGroup. Check the length with:
len(mockedRepository.PutRefineGroupCalls())
func (*RepositoryMock) PutSession ¶ added in v0.8.0
PutSession calls PutSessionFunc.
func (*RepositoryMock) PutSessionCalls ¶ added in v0.8.0
func (mock *RepositoryMock) PutSessionCalls() []struct { Ctx context.Context SessionMoqParam *session.Session }
PutSessionCalls gets all the calls that were made to PutSession. Check the length with:
len(mockedRepository.PutSessionCalls())
func (*RepositoryMock) PutSessionMessage ¶ added in v0.8.0
PutSessionMessage calls PutSessionMessageFunc.
func (*RepositoryMock) PutSessionMessageCalls ¶ added in v0.8.0
func (mock *RepositoryMock) PutSessionMessageCalls() []struct { Ctx context.Context Message *session.Message }
PutSessionMessageCalls gets all the calls that were made to PutSessionMessage. Check the length with:
len(mockedRepository.PutSessionMessageCalls())
func (*RepositoryMock) PutTicketCalls ¶
func (mock *RepositoryMock) PutTicketCalls() []struct { Ctx context.Context TicketMoqParam ticket.Ticket }
PutTicketCalls gets all the calls that were made to PutTicket. Check the length with:
len(mockedRepository.PutTicketCalls())
func (*RepositoryMock) PutTicketComment ¶
PutTicketComment calls PutTicketCommentFunc.
func (*RepositoryMock) PutTicketCommentCalls ¶
func (mock *RepositoryMock) PutTicketCommentCalls() []struct { Ctx context.Context Comment ticket.Comment }
PutTicketCommentCalls gets all the calls that were made to PutTicketComment. Check the length with:
len(mockedRepository.PutTicketCommentCalls())
func (*RepositoryMock) PutTicketCommentsPrompted ¶
func (mock *RepositoryMock) PutTicketCommentsPrompted(ctx context.Context, ticketID types.TicketID, commentIDs []types.CommentID) error
PutTicketCommentsPrompted calls PutTicketCommentsPromptedFunc.
func (*RepositoryMock) PutTicketCommentsPromptedCalls ¶
func (mock *RepositoryMock) PutTicketCommentsPromptedCalls() []struct { Ctx context.Context TicketID types.TicketID CommentIDs []types.CommentID }
PutTicketCommentsPromptedCalls gets all the calls that were made to PutTicketCommentsPrompted. Check the length with:
len(mockedRepository.PutTicketCommentsPromptedCalls())
func (*RepositoryMock) PutTokenCalls ¶
func (mock *RepositoryMock) PutTokenCalls() []struct { Ctx context.Context Token *auth.Token }
PutTokenCalls gets all the calls that were made to PutToken. Check the length with:
len(mockedRepository.PutTokenCalls())
func (*RepositoryMock) RemoveTagFromAllAlerts ¶ added in v0.2.0
func (mock *RepositoryMock) RemoveTagFromAllAlerts(ctx context.Context, name string) error
RemoveTagFromAllAlerts calls RemoveTagFromAllAlertsFunc.
func (*RepositoryMock) RemoveTagFromAllAlertsCalls ¶ added in v0.2.0
func (mock *RepositoryMock) RemoveTagFromAllAlertsCalls() []struct { Ctx context.Context Name string }
RemoveTagFromAllAlertsCalls gets all the calls that were made to RemoveTagFromAllAlerts. Check the length with:
len(mockedRepository.RemoveTagFromAllAlertsCalls())
func (*RepositoryMock) RemoveTagFromAllTickets ¶ added in v0.2.0
func (mock *RepositoryMock) RemoveTagFromAllTickets(ctx context.Context, name string) error
RemoveTagFromAllTickets calls RemoveTagFromAllTicketsFunc.
func (*RepositoryMock) RemoveTagFromAllTicketsCalls ¶ added in v0.2.0
func (mock *RepositoryMock) RemoveTagFromAllTicketsCalls() []struct { Ctx context.Context Name string }
RemoveTagFromAllTicketsCalls gets all the calls that were made to RemoveTagFromAllTickets. Check the length with:
len(mockedRepository.RemoveTagFromAllTicketsCalls())
func (*RepositoryMock) RemoveTagIDFromAllAlerts ¶ added in v0.2.0
func (mock *RepositoryMock) RemoveTagIDFromAllAlerts(ctx context.Context, tagID string) error
RemoveTagIDFromAllAlerts calls RemoveTagIDFromAllAlertsFunc.
func (*RepositoryMock) RemoveTagIDFromAllAlertsCalls ¶ added in v0.2.0
func (mock *RepositoryMock) RemoveTagIDFromAllAlertsCalls() []struct { Ctx context.Context TagID string }
RemoveTagIDFromAllAlertsCalls gets all the calls that were made to RemoveTagIDFromAllAlerts. Check the length with:
len(mockedRepository.RemoveTagIDFromAllAlertsCalls())
func (*RepositoryMock) RemoveTagIDFromAllTickets ¶ added in v0.2.0
func (mock *RepositoryMock) RemoveTagIDFromAllTickets(ctx context.Context, tagID string) error
RemoveTagIDFromAllTickets calls RemoveTagIDFromAllTicketsFunc.
func (*RepositoryMock) RemoveTagIDFromAllTicketsCalls ¶ added in v0.2.0
func (mock *RepositoryMock) RemoveTagIDFromAllTicketsCalls() []struct { Ctx context.Context TagID string }
RemoveTagIDFromAllTicketsCalls gets all the calls that were made to RemoveTagIDFromAllTickets. Check the length with:
len(mockedRepository.RemoveTagIDFromAllTicketsCalls())
func (*RepositoryMock) SaveAgentMemory ¶ added in v0.5.0
func (mock *RepositoryMock) SaveAgentMemory(ctx context.Context, mem *memory.AgentMemory) error
SaveAgentMemory calls SaveAgentMemoryFunc.
func (*RepositoryMock) SaveAgentMemoryCalls ¶ added in v0.5.0
func (mock *RepositoryMock) SaveAgentMemoryCalls() []struct { Ctx context.Context Mem *memory.AgentMemory }
SaveAgentMemoryCalls gets all the calls that were made to SaveAgentMemory. Check the length with:
len(mockedRepository.SaveAgentMemoryCalls())
func (*RepositoryMock) SearchAlerts ¶
func (mock *RepositoryMock) SearchAlerts(ctx context.Context, path string, op string, value any, limit int) (alert.Alerts, error)
SearchAlerts calls SearchAlertsFunc.
func (*RepositoryMock) SearchAlertsCalls ¶
func (mock *RepositoryMock) SearchAlertsCalls() []struct { Ctx context.Context Path string Op string Value any Limit int }
SearchAlertsCalls gets all the calls that were made to SearchAlerts. Check the length with:
len(mockedRepository.SearchAlertsCalls())
func (*RepositoryMock) SearchMemoriesByEmbedding ¶ added in v0.5.0
func (mock *RepositoryMock) SearchMemoriesByEmbedding(ctx context.Context, agentID string, embedding []float32, limit int) ([]*memory.AgentMemory, error)
SearchMemoriesByEmbedding calls SearchMemoriesByEmbeddingFunc.
func (*RepositoryMock) SearchMemoriesByEmbeddingCalls ¶ added in v0.5.0
func (mock *RepositoryMock) SearchMemoriesByEmbeddingCalls() []struct { Ctx context.Context AgentID string Embedding []float32 Limit int }
SearchMemoriesByEmbeddingCalls gets all the calls that were made to SearchMemoriesByEmbedding. Check the length with:
len(mockedRepository.SearchMemoriesByEmbeddingCalls())
func (*RepositoryMock) UnbindAlertFromTicket ¶
UnbindAlertFromTicket calls UnbindAlertFromTicketFunc.
func (*RepositoryMock) UnbindAlertFromTicketCalls ¶
func (mock *RepositoryMock) UnbindAlertFromTicketCalls() []struct { Ctx context.Context AlertID types.AlertID }
UnbindAlertFromTicketCalls gets all the calls that were made to UnbindAlertFromTicket. Check the length with:
len(mockedRepository.UnbindAlertFromTicketCalls())
func (*RepositoryMock) UpdateAlertStatus ¶ added in v0.10.0
func (mock *RepositoryMock) UpdateAlertStatus(ctx context.Context, alertID types.AlertID, status alert.AlertStatus) error
UpdateAlertStatus calls UpdateAlertStatusFunc.
func (*RepositoryMock) UpdateAlertStatusCalls ¶ added in v0.10.0
func (mock *RepositoryMock) UpdateAlertStatusCalls() []struct { Ctx context.Context AlertID types.AlertID Status alert.AlertStatus }
UpdateAlertStatusCalls gets all the calls that were made to UpdateAlertStatus. Check the length with:
len(mockedRepository.UpdateAlertStatusCalls())
func (*RepositoryMock) UpdateMemoryScoreBatch ¶ added in v0.6.2
func (mock *RepositoryMock) UpdateMemoryScoreBatch(ctx context.Context, agentID string, updates map[types.AgentMemoryID]struct { Score float64 LastUsedAt time.Time }) error
UpdateMemoryScoreBatch calls UpdateMemoryScoreBatchFunc.
func (*RepositoryMock) UpdateMemoryScoreBatchCalls ¶ added in v0.6.2
func (mock *RepositoryMock) UpdateMemoryScoreBatchCalls() []struct { Ctx context.Context AgentID string Updates map[types.AgentMemoryID]struct { Score float64 LastUsedAt time.Time } }
UpdateMemoryScoreBatchCalls gets all the calls that were made to UpdateMemoryScoreBatch. Check the length with:
len(mockedRepository.UpdateMemoryScoreBatchCalls())
func (*RepositoryMock) UpdateNotice ¶ added in v0.4.0
UpdateNotice calls UpdateNoticeFunc.
func (*RepositoryMock) UpdateNoticeCalls ¶ added in v0.4.0
func (mock *RepositoryMock) UpdateNoticeCalls() []struct { Ctx context.Context NoticeMoqParam *notice.Notice }
UpdateNoticeCalls gets all the calls that were made to UpdateNotice. Check the length with:
len(mockedRepository.UpdateNoticeCalls())
func (*RepositoryMock) UpdateTagCalls ¶ added in v0.2.0
func (mock *RepositoryMock) UpdateTagCalls() []struct { Ctx context.Context TagMoqParam *tag.Tag }
UpdateTagCalls gets all the calls that were made to UpdateTag. Check the length with:
len(mockedRepository.UpdateTagCalls())
type SlackClientMock ¶
type SlackClientMock struct {
// AuthTestFunc mocks the AuthTest method.
AuthTestFunc func() (*slackSDK.AuthTestResponse, error)
// DeleteMessageContextFunc mocks the DeleteMessageContext method.
DeleteMessageContextFunc func(ctx context.Context, channelID string, timestamp string) (string, string, error)
// GetBotInfoContextFunc mocks the GetBotInfoContext method.
GetBotInfoContextFunc func(ctx context.Context, parameters slackSDK.GetBotInfoParameters) (*slackSDK.Bot, error)
// GetConversationHistoryContextFunc mocks the GetConversationHistoryContext method.
GetConversationHistoryContextFunc func(ctx context.Context, params *slackSDK.GetConversationHistoryParameters) (*slackSDK.GetConversationHistoryResponse, error)
// GetConversationInfoFunc mocks the GetConversationInfo method.
GetConversationInfoFunc func(input *slackSDK.GetConversationInfoInput) (*slackSDK.Channel, error)
// GetConversationRepliesContextFunc mocks the GetConversationRepliesContext method.
GetConversationRepliesContextFunc func(ctx context.Context, params *slackSDK.GetConversationRepliesParameters) ([]slackSDK.Message, bool, string, error)
// GetTeamInfoFunc mocks the GetTeamInfo method.
GetTeamInfoFunc func() (*slackSDK.TeamInfo, error)
// GetUserGroupsFunc mocks the GetUserGroups method.
GetUserGroupsFunc func(options ...slackSDK.GetUserGroupsOption) ([]slackSDK.UserGroup, error)
// GetUserInfoFunc mocks the GetUserInfo method.
GetUserInfoFunc func(userID string) (*slackSDK.User, error)
// GetUsersInfoFunc mocks the GetUsersInfo method.
GetUsersInfoFunc func(users ...string) (*[]slackSDK.User, error)
// OpenViewFunc mocks the OpenView method.
OpenViewFunc func(triggerID string, view slackSDK.ModalViewRequest) (*slackSDK.ViewResponse, error)
// PostMessageContextFunc mocks the PostMessageContext method.
PostMessageContextFunc func(ctx context.Context, channelID string, options ...slackSDK.MsgOption) (string, string, error)
// SearchMessagesContextFunc mocks the SearchMessagesContext method.
SearchMessagesContextFunc func(ctx context.Context, query string, params slackSDK.SearchParameters) (*slackSDK.SearchMessages, error)
// UpdateMessageContextFunc mocks the UpdateMessageContext method.
UpdateMessageContextFunc func(ctx context.Context, channelID string, timestamp string, options ...slackSDK.MsgOption) (string, string, string, error)
// UpdateViewFunc mocks the UpdateView method.
UpdateViewFunc func(view slackSDK.ModalViewRequest, externalID string, hash string, viewID string) (*slackSDK.ViewResponse, error)
// UploadFileV2ContextFunc mocks the UploadFileV2Context method.
UploadFileV2ContextFunc func(ctx context.Context, params slackSDK.UploadFileV2Parameters) (*slackSDK.FileSummary, error)
// contains filtered or unexported fields
}
SlackClientMock is a mock implementation of interfaces.SlackClient.
func TestSomethingThatUsesSlackClient(t *testing.T) {
// make and configure a mocked interfaces.SlackClient
mockedSlackClient := &SlackClientMock{
AuthTestFunc: func() (*slackSDK.AuthTestResponse, error) {
panic("mock out the AuthTest method")
},
DeleteMessageContextFunc: func(ctx context.Context, channelID string, timestamp string) (string, string, error) {
panic("mock out the DeleteMessageContext method")
},
GetBotInfoContextFunc: func(ctx context.Context, parameters slackSDK.GetBotInfoParameters) (*slackSDK.Bot, error) {
panic("mock out the GetBotInfoContext method")
},
GetConversationHistoryContextFunc: func(ctx context.Context, params *slackSDK.GetConversationHistoryParameters) (*slackSDK.GetConversationHistoryResponse, error) {
panic("mock out the GetConversationHistoryContext method")
},
GetConversationInfoFunc: func(input *slackSDK.GetConversationInfoInput) (*slackSDK.Channel, error) {
panic("mock out the GetConversationInfo method")
},
GetConversationRepliesContextFunc: func(ctx context.Context, params *slackSDK.GetConversationRepliesParameters) ([]slackSDK.Message, bool, string, error) {
panic("mock out the GetConversationRepliesContext method")
},
GetTeamInfoFunc: func() (*slackSDK.TeamInfo, error) {
panic("mock out the GetTeamInfo method")
},
GetUserGroupsFunc: func(options ...slackSDK.GetUserGroupsOption) ([]slackSDK.UserGroup, error) {
panic("mock out the GetUserGroups method")
},
GetUserInfoFunc: func(userID string) (*slackSDK.User, error) {
panic("mock out the GetUserInfo method")
},
GetUsersInfoFunc: func(users ...string) (*[]slackSDK.User, error) {
panic("mock out the GetUsersInfo method")
},
OpenViewFunc: func(triggerID string, view slackSDK.ModalViewRequest) (*slackSDK.ViewResponse, error) {
panic("mock out the OpenView method")
},
PostMessageContextFunc: func(ctx context.Context, channelID string, options ...slackSDK.MsgOption) (string, string, error) {
panic("mock out the PostMessageContext method")
},
SearchMessagesContextFunc: func(ctx context.Context, query string, params slackSDK.SearchParameters) (*slackSDK.SearchMessages, error) {
panic("mock out the SearchMessagesContext method")
},
UpdateMessageContextFunc: func(ctx context.Context, channelID string, timestamp string, options ...slackSDK.MsgOption) (string, string, string, error) {
panic("mock out the UpdateMessageContext method")
},
UpdateViewFunc: func(view slackSDK.ModalViewRequest, externalID string, hash string, viewID string) (*slackSDK.ViewResponse, error) {
panic("mock out the UpdateView method")
},
UploadFileV2ContextFunc: func(ctx context.Context, params slackSDK.UploadFileV2Parameters) (*slackSDK.FileSummary, error) {
panic("mock out the UploadFileV2Context method")
},
}
// use mockedSlackClient in code that requires interfaces.SlackClient
// and then make assertions.
}
func (*SlackClientMock) AuthTest ¶
func (mock *SlackClientMock) AuthTest() (*slackSDK.AuthTestResponse, error)
AuthTest calls AuthTestFunc.
func (*SlackClientMock) AuthTestCalls ¶
func (mock *SlackClientMock) AuthTestCalls() []struct { }
AuthTestCalls gets all the calls that were made to AuthTest. Check the length with:
len(mockedSlackClient.AuthTestCalls())
func (*SlackClientMock) DeleteMessageContext ¶ added in v0.6.0
func (mock *SlackClientMock) DeleteMessageContext(ctx context.Context, channelID string, timestamp string) (string, string, error)
DeleteMessageContext calls DeleteMessageContextFunc.
func (*SlackClientMock) DeleteMessageContextCalls ¶ added in v0.6.0
func (mock *SlackClientMock) DeleteMessageContextCalls() []struct { Ctx context.Context ChannelID string Timestamp string }
DeleteMessageContextCalls gets all the calls that were made to DeleteMessageContext. Check the length with:
len(mockedSlackClient.DeleteMessageContextCalls())
func (*SlackClientMock) GetBotInfoContext ¶
func (mock *SlackClientMock) GetBotInfoContext(ctx context.Context, parameters slackSDK.GetBotInfoParameters) (*slackSDK.Bot, error)
GetBotInfoContext calls GetBotInfoContextFunc.
func (*SlackClientMock) GetBotInfoContextCalls ¶
func (mock *SlackClientMock) GetBotInfoContextCalls() []struct { Ctx context.Context Parameters slackSDK.GetBotInfoParameters }
GetBotInfoContextCalls gets all the calls that were made to GetBotInfoContext. Check the length with:
len(mockedSlackClient.GetBotInfoContextCalls())
func (*SlackClientMock) GetConversationHistoryContext ¶ added in v0.5.0
func (mock *SlackClientMock) GetConversationHistoryContext(ctx context.Context, params *slackSDK.GetConversationHistoryParameters) (*slackSDK.GetConversationHistoryResponse, error)
GetConversationHistoryContext calls GetConversationHistoryContextFunc.
func (*SlackClientMock) GetConversationHistoryContextCalls ¶ added in v0.5.0
func (mock *SlackClientMock) GetConversationHistoryContextCalls() []struct { Ctx context.Context Params *slackSDK.GetConversationHistoryParameters }
GetConversationHistoryContextCalls gets all the calls that were made to GetConversationHistoryContext. Check the length with:
len(mockedSlackClient.GetConversationHistoryContextCalls())
func (*SlackClientMock) GetConversationInfo ¶
func (mock *SlackClientMock) GetConversationInfo(input *slackSDK.GetConversationInfoInput) (*slackSDK.Channel, error)
GetConversationInfo calls GetConversationInfoFunc.
func (*SlackClientMock) GetConversationInfoCalls ¶
func (mock *SlackClientMock) GetConversationInfoCalls() []struct { Input *slackSDK.GetConversationInfoInput }
GetConversationInfoCalls gets all the calls that were made to GetConversationInfo. Check the length with:
len(mockedSlackClient.GetConversationInfoCalls())
func (*SlackClientMock) GetConversationRepliesContext ¶ added in v0.6.0
func (mock *SlackClientMock) GetConversationRepliesContext(ctx context.Context, params *slackSDK.GetConversationRepliesParameters) ([]slackSDK.Message, bool, string, error)
GetConversationRepliesContext calls GetConversationRepliesContextFunc.
func (*SlackClientMock) GetConversationRepliesContextCalls ¶ added in v0.6.0
func (mock *SlackClientMock) GetConversationRepliesContextCalls() []struct { Ctx context.Context Params *slackSDK.GetConversationRepliesParameters }
GetConversationRepliesContextCalls gets all the calls that were made to GetConversationRepliesContext. Check the length with:
len(mockedSlackClient.GetConversationRepliesContextCalls())
func (*SlackClientMock) GetTeamInfo ¶
func (mock *SlackClientMock) GetTeamInfo() (*slackSDK.TeamInfo, error)
GetTeamInfo calls GetTeamInfoFunc.
func (*SlackClientMock) GetTeamInfoCalls ¶
func (mock *SlackClientMock) GetTeamInfoCalls() []struct { }
GetTeamInfoCalls gets all the calls that were made to GetTeamInfo. Check the length with:
len(mockedSlackClient.GetTeamInfoCalls())
func (*SlackClientMock) GetUserGroups ¶
func (mock *SlackClientMock) GetUserGroups(options ...slackSDK.GetUserGroupsOption) ([]slackSDK.UserGroup, error)
GetUserGroups calls GetUserGroupsFunc.
func (*SlackClientMock) GetUserGroupsCalls ¶
func (mock *SlackClientMock) GetUserGroupsCalls() []struct { Options []slackSDK.GetUserGroupsOption }
GetUserGroupsCalls gets all the calls that were made to GetUserGroups. Check the length with:
len(mockedSlackClient.GetUserGroupsCalls())
func (*SlackClientMock) GetUserInfo ¶
func (mock *SlackClientMock) GetUserInfo(userID string) (*slackSDK.User, error)
GetUserInfo calls GetUserInfoFunc.
func (*SlackClientMock) GetUserInfoCalls ¶
func (mock *SlackClientMock) GetUserInfoCalls() []struct { UserID string }
GetUserInfoCalls gets all the calls that were made to GetUserInfo. Check the length with:
len(mockedSlackClient.GetUserInfoCalls())
func (*SlackClientMock) GetUsersInfo ¶
func (mock *SlackClientMock) GetUsersInfo(users ...string) (*[]slackSDK.User, error)
GetUsersInfo calls GetUsersInfoFunc.
func (*SlackClientMock) GetUsersInfoCalls ¶
func (mock *SlackClientMock) GetUsersInfoCalls() []struct { Users []string }
GetUsersInfoCalls gets all the calls that were made to GetUsersInfo. Check the length with:
len(mockedSlackClient.GetUsersInfoCalls())
func (*SlackClientMock) OpenView ¶
func (mock *SlackClientMock) OpenView(triggerID string, view slackSDK.ModalViewRequest) (*slackSDK.ViewResponse, error)
OpenView calls OpenViewFunc.
func (*SlackClientMock) OpenViewCalls ¶
func (mock *SlackClientMock) OpenViewCalls() []struct { TriggerID string View slackSDK.ModalViewRequest }
OpenViewCalls gets all the calls that were made to OpenView. Check the length with:
len(mockedSlackClient.OpenViewCalls())
func (*SlackClientMock) PostMessageContext ¶
func (mock *SlackClientMock) PostMessageContext(ctx context.Context, channelID string, options ...slackSDK.MsgOption) (string, string, error)
PostMessageContext calls PostMessageContextFunc.
func (*SlackClientMock) PostMessageContextCalls ¶
func (mock *SlackClientMock) PostMessageContextCalls() []struct { Ctx context.Context ChannelID string Options []slackSDK.MsgOption }
PostMessageContextCalls gets all the calls that were made to PostMessageContext. Check the length with:
len(mockedSlackClient.PostMessageContextCalls())
func (*SlackClientMock) SearchMessagesContext ¶ added in v0.7.0
func (mock *SlackClientMock) SearchMessagesContext(ctx context.Context, query string, params slackSDK.SearchParameters) (*slackSDK.SearchMessages, error)
SearchMessagesContext calls SearchMessagesContextFunc.
func (*SlackClientMock) SearchMessagesContextCalls ¶ added in v0.7.0
func (mock *SlackClientMock) SearchMessagesContextCalls() []struct { Ctx context.Context Query string Params slackSDK.SearchParameters }
SearchMessagesContextCalls gets all the calls that were made to SearchMessagesContext. Check the length with:
len(mockedSlackClient.SearchMessagesContextCalls())
func (*SlackClientMock) UpdateMessageContext ¶
func (mock *SlackClientMock) UpdateMessageContext(ctx context.Context, channelID string, timestamp string, options ...slackSDK.MsgOption) (string, string, string, error)
UpdateMessageContext calls UpdateMessageContextFunc.
func (*SlackClientMock) UpdateMessageContextCalls ¶
func (mock *SlackClientMock) UpdateMessageContextCalls() []struct { Ctx context.Context ChannelID string Timestamp string Options []slackSDK.MsgOption }
UpdateMessageContextCalls gets all the calls that were made to UpdateMessageContext. Check the length with:
len(mockedSlackClient.UpdateMessageContextCalls())
func (*SlackClientMock) UpdateView ¶
func (mock *SlackClientMock) UpdateView(view slackSDK.ModalViewRequest, externalID string, hash string, viewID string) (*slackSDK.ViewResponse, error)
UpdateView calls UpdateViewFunc.
func (*SlackClientMock) UpdateViewCalls ¶
func (mock *SlackClientMock) UpdateViewCalls() []struct { View slackSDK.ModalViewRequest ExternalID string Hash string ViewID string }
UpdateViewCalls gets all the calls that were made to UpdateView. Check the length with:
len(mockedSlackClient.UpdateViewCalls())
func (*SlackClientMock) UploadFileV2Context ¶
func (mock *SlackClientMock) UploadFileV2Context(ctx context.Context, params slackSDK.UploadFileV2Parameters) (*slackSDK.FileSummary, error)
UploadFileV2Context calls UploadFileV2ContextFunc.
func (*SlackClientMock) UploadFileV2ContextCalls ¶
func (mock *SlackClientMock) UploadFileV2ContextCalls() []struct { Ctx context.Context Params slackSDK.UploadFileV2Parameters }
UploadFileV2ContextCalls gets all the calls that were made to UploadFileV2Context. Check the length with:
len(mockedSlackClient.UploadFileV2ContextCalls())
type SlackEventUsecasesMock ¶
type SlackEventUsecasesMock struct {
// HandleSlackAppMentionFunc mocks the HandleSlackAppMention method.
HandleSlackAppMentionFunc func(ctx context.Context, slackMsg slack.Message) error
// HandleSlackMessageFunc mocks the HandleSlackMessage method.
HandleSlackMessageFunc func(ctx context.Context, slackMsg slack.Message) error
// contains filtered or unexported fields
}
SlackEventUsecasesMock is a mock implementation of interfaces.SlackEventUsecases.
func TestSomethingThatUsesSlackEventUsecases(t *testing.T) {
// make and configure a mocked interfaces.SlackEventUsecases
mockedSlackEventUsecases := &SlackEventUsecasesMock{
HandleSlackAppMentionFunc: func(ctx context.Context, slackMsg slack.Message) error {
panic("mock out the HandleSlackAppMention method")
},
HandleSlackMessageFunc: func(ctx context.Context, slackMsg slack.Message) error {
panic("mock out the HandleSlackMessage method")
},
}
// use mockedSlackEventUsecases in code that requires interfaces.SlackEventUsecases
// and then make assertions.
}
func (*SlackEventUsecasesMock) HandleSlackAppMention ¶
func (mock *SlackEventUsecasesMock) HandleSlackAppMention(ctx context.Context, slackMsg slack.Message) error
HandleSlackAppMention calls HandleSlackAppMentionFunc.
func (*SlackEventUsecasesMock) HandleSlackAppMentionCalls ¶
func (mock *SlackEventUsecasesMock) HandleSlackAppMentionCalls() []struct { Ctx context.Context SlackMsg slack.Message }
HandleSlackAppMentionCalls gets all the calls that were made to HandleSlackAppMention. Check the length with:
len(mockedSlackEventUsecases.HandleSlackAppMentionCalls())
func (*SlackEventUsecasesMock) HandleSlackMessage ¶
func (mock *SlackEventUsecasesMock) HandleSlackMessage(ctx context.Context, slackMsg slack.Message) error
HandleSlackMessage calls HandleSlackMessageFunc.
func (*SlackEventUsecasesMock) HandleSlackMessageCalls ¶
func (mock *SlackEventUsecasesMock) HandleSlackMessageCalls() []struct { Ctx context.Context SlackMsg slack.Message }
HandleSlackMessageCalls gets all the calls that were made to HandleSlackMessage. Check the length with:
len(mockedSlackEventUsecases.HandleSlackMessageCalls())
type SlackInteractionUsecasesMock ¶
type SlackInteractionUsecasesMock struct {
// HandleSalvageRefreshFunc mocks the HandleSalvageRefresh method.
HandleSalvageRefreshFunc func(ctx context.Context, user slack.User, metadata string, values slack.StateValue, viewID string) error
// HandleSlackInteractionBlockActionsFunc mocks the HandleSlackInteractionBlockActions method.
HandleSlackInteractionBlockActionsFunc func(ctx context.Context, user slack.User, slackThread slack.Thread, actionID slack.ActionID, value string, triggerID string) error
// HandleSlackInteractionViewSubmissionFunc mocks the HandleSlackInteractionViewSubmission method.
HandleSlackInteractionViewSubmissionFunc func(ctx context.Context, user slack.User, callbackID slack.CallbackID, metadata string, values slack.StateValue) error
// contains filtered or unexported fields
}
SlackInteractionUsecasesMock is a mock implementation of interfaces.SlackInteractionUsecases.
func TestSomethingThatUsesSlackInteractionUsecases(t *testing.T) {
// make and configure a mocked interfaces.SlackInteractionUsecases
mockedSlackInteractionUsecases := &SlackInteractionUsecasesMock{
HandleSalvageRefreshFunc: func(ctx context.Context, user slack.User, metadata string, values slack.StateValue, viewID string) error {
panic("mock out the HandleSalvageRefresh method")
},
HandleSlackInteractionBlockActionsFunc: func(ctx context.Context, user slack.User, slackThread slack.Thread, actionID slack.ActionID, value string, triggerID string) error {
panic("mock out the HandleSlackInteractionBlockActions method")
},
HandleSlackInteractionViewSubmissionFunc: func(ctx context.Context, user slack.User, callbackID slack.CallbackID, metadata string, values slack.StateValue) error {
panic("mock out the HandleSlackInteractionViewSubmission method")
},
}
// use mockedSlackInteractionUsecases in code that requires interfaces.SlackInteractionUsecases
// and then make assertions.
}
func (*SlackInteractionUsecasesMock) HandleSalvageRefresh ¶
func (mock *SlackInteractionUsecasesMock) HandleSalvageRefresh(ctx context.Context, user slack.User, metadata string, values slack.StateValue, viewID string) error
HandleSalvageRefresh calls HandleSalvageRefreshFunc.
func (*SlackInteractionUsecasesMock) HandleSalvageRefreshCalls ¶
func (mock *SlackInteractionUsecasesMock) HandleSalvageRefreshCalls() []struct { Ctx context.Context User slack.User Metadata string Values slack.StateValue ViewID string }
HandleSalvageRefreshCalls gets all the calls that were made to HandleSalvageRefresh. Check the length with:
len(mockedSlackInteractionUsecases.HandleSalvageRefreshCalls())
func (*SlackInteractionUsecasesMock) HandleSlackInteractionBlockActions ¶
func (mock *SlackInteractionUsecasesMock) HandleSlackInteractionBlockActions(ctx context.Context, user slack.User, slackThread slack.Thread, actionID slack.ActionID, value string, triggerID string) error
HandleSlackInteractionBlockActions calls HandleSlackInteractionBlockActionsFunc.
func (*SlackInteractionUsecasesMock) HandleSlackInteractionBlockActionsCalls ¶
func (mock *SlackInteractionUsecasesMock) HandleSlackInteractionBlockActionsCalls() []struct { Ctx context.Context User slack.User SlackThread slack.Thread ActionID slack.ActionID Value string TriggerID string }
HandleSlackInteractionBlockActionsCalls gets all the calls that were made to HandleSlackInteractionBlockActions. Check the length with:
len(mockedSlackInteractionUsecases.HandleSlackInteractionBlockActionsCalls())
func (*SlackInteractionUsecasesMock) HandleSlackInteractionViewSubmission ¶
func (mock *SlackInteractionUsecasesMock) HandleSlackInteractionViewSubmission(ctx context.Context, user slack.User, callbackID slack.CallbackID, metadata string, values slack.StateValue) error
HandleSlackInteractionViewSubmission calls HandleSlackInteractionViewSubmissionFunc.
func (*SlackInteractionUsecasesMock) HandleSlackInteractionViewSubmissionCalls ¶
func (mock *SlackInteractionUsecasesMock) HandleSlackInteractionViewSubmissionCalls() []struct { Ctx context.Context User slack.User CallbackID slack.CallbackID Metadata string Values slack.StateValue }
HandleSlackInteractionViewSubmissionCalls gets all the calls that were made to HandleSlackInteractionViewSubmission. Check the length with:
len(mockedSlackInteractionUsecases.HandleSlackInteractionViewSubmissionCalls())
type SlackThreadServiceMock ¶
type SlackThreadServiceMock struct {
// AttachFileFunc mocks the AttachFile method.
AttachFileFunc func(ctx context.Context, title string, fileName string, data []byte) error
// ChannelIDFunc mocks the ChannelID method.
ChannelIDFunc func() string
// EntityFunc mocks the Entity method.
EntityFunc func() *slack.Thread
// NewStateFuncFunc mocks the NewStateFunc method.
NewStateFuncFunc func(ctx context.Context, message string) func(ctx context.Context, msg string)
// NewTraceMessageFunc mocks the NewTraceMessage method.
NewTraceMessageFunc func(ctx context.Context, initialMessage string) func(ctx context.Context, traceMsg string)
// NewUpdatableMessageFunc mocks the NewUpdatableMessage method.
NewUpdatableMessageFunc func(ctx context.Context, initialMessage string) func(ctx context.Context, newMsg string)
// PostAlertFunc mocks the PostAlert method.
PostAlertFunc func(ctx context.Context, alertMoqParam *alert.Alert) error
// PostAlertListFunc mocks the PostAlertList method.
PostAlertListFunc func(ctx context.Context, list *alert.List) (string, error)
// PostAlertListsFunc mocks the PostAlertLists method.
PostAlertListsFunc func(ctx context.Context, clusters []*alert.List) error
// PostAlertsFunc mocks the PostAlerts method.
PostAlertsFunc func(ctx context.Context, alerts alert.Alerts) error
// PostCommentFunc mocks the PostComment method.
PostCommentFunc func(ctx context.Context, comment string) error
// PostCommentWithMessageIDFunc mocks the PostCommentWithMessageID method.
PostCommentWithMessageIDFunc func(ctx context.Context, comment string) (string, error)
// PostContextBlockFunc mocks the PostContextBlock method.
PostContextBlockFunc func(ctx context.Context, text string) error
// PostFindingFunc mocks the PostFinding method.
PostFindingFunc func(ctx context.Context, finding *ticket.Finding) error
// PostLinkToTicketFunc mocks the PostLinkToTicket method.
PostLinkToTicketFunc func(ctx context.Context, ticketURL string, ticketTitle string) error
// PostResolveDetailsFunc mocks the PostResolveDetails method.
PostResolveDetailsFunc func(ctx context.Context, ticketMoqParam *ticket.Ticket) error
// PostSessionActionsFunc mocks the PostSessionActions method.
PostSessionActionsFunc func(ctx context.Context, ticketID types.TicketID, ticketStatus types.TicketStatus, sessionURL string) error
// PostTicketFunc mocks the PostTicket method.
PostTicketFunc func(ctx context.Context, ticketMoqParam *ticket.Ticket, alerts alert.Alerts) (string, error)
// PostTicketListFunc mocks the PostTicketList method.
PostTicketListFunc func(ctx context.Context, tickets []*ticket.Ticket) error
// ReplyFunc mocks the Reply method.
ReplyFunc func(ctx context.Context, message string)
// ThreadIDFunc mocks the ThreadID method.
ThreadIDFunc func() string
// UpdateAlertFunc mocks the UpdateAlert method.
UpdateAlertFunc func(ctx context.Context, alertMoqParam alert.Alert) error
// UpdateAlertListFunc mocks the UpdateAlertList method.
UpdateAlertListFunc func(ctx context.Context, list *alert.List, status string) error
// contains filtered or unexported fields
}
SlackThreadServiceMock is a mock implementation of interfaces.SlackThreadService.
func TestSomethingThatUsesSlackThreadService(t *testing.T) {
// make and configure a mocked interfaces.SlackThreadService
mockedSlackThreadService := &SlackThreadServiceMock{
AttachFileFunc: func(ctx context.Context, title string, fileName string, data []byte) error {
panic("mock out the AttachFile method")
},
ChannelIDFunc: func() string {
panic("mock out the ChannelID method")
},
EntityFunc: func() *slack.Thread {
panic("mock out the Entity method")
},
NewStateFuncFunc: func(ctx context.Context, message string) func(ctx context.Context, msg string) {
panic("mock out the NewStateFunc method")
},
NewTraceMessageFunc: func(ctx context.Context, initialMessage string) func(ctx context.Context, traceMsg string) {
panic("mock out the NewTraceMessage method")
},
NewUpdatableMessageFunc: func(ctx context.Context, initialMessage string) func(ctx context.Context, newMsg string) {
panic("mock out the NewUpdatableMessage method")
},
PostAlertFunc: func(ctx context.Context, alertMoqParam *alert.Alert) error {
panic("mock out the PostAlert method")
},
PostAlertListFunc: func(ctx context.Context, list *alert.List) (string, error) {
panic("mock out the PostAlertList method")
},
PostAlertListsFunc: func(ctx context.Context, clusters []*alert.List) error {
panic("mock out the PostAlertLists method")
},
PostAlertsFunc: func(ctx context.Context, alerts alert.Alerts) error {
panic("mock out the PostAlerts method")
},
PostCommentFunc: func(ctx context.Context, comment string) error {
panic("mock out the PostComment method")
},
PostCommentWithMessageIDFunc: func(ctx context.Context, comment string) (string, error) {
panic("mock out the PostCommentWithMessageID method")
},
PostContextBlockFunc: func(ctx context.Context, text string) error {
panic("mock out the PostContextBlock method")
},
PostFindingFunc: func(ctx context.Context, finding *ticket.Finding) error {
panic("mock out the PostFinding method")
},
PostLinkToTicketFunc: func(ctx context.Context, ticketURL string, ticketTitle string) error {
panic("mock out the PostLinkToTicket method")
},
PostResolveDetailsFunc: func(ctx context.Context, ticketMoqParam *ticket.Ticket) error {
panic("mock out the PostResolveDetails method")
},
PostSessionActionsFunc: func(ctx context.Context, ticketID types.TicketID, ticketStatus types.TicketStatus, sessionURL string) error {
panic("mock out the PostSessionActions method")
},
PostTicketFunc: func(ctx context.Context, ticketMoqParam *ticket.Ticket, alerts alert.Alerts) (string, error) {
panic("mock out the PostTicket method")
},
PostTicketListFunc: func(ctx context.Context, tickets []*ticket.Ticket) error {
panic("mock out the PostTicketList method")
},
ReplyFunc: func(ctx context.Context, message string) {
panic("mock out the Reply method")
},
ThreadIDFunc: func() string {
panic("mock out the ThreadID method")
},
UpdateAlertFunc: func(ctx context.Context, alertMoqParam alert.Alert) error {
panic("mock out the UpdateAlert method")
},
UpdateAlertListFunc: func(ctx context.Context, list *alert.List, status string) error {
panic("mock out the UpdateAlertList method")
},
}
// use mockedSlackThreadService in code that requires interfaces.SlackThreadService
// and then make assertions.
}
func (*SlackThreadServiceMock) AttachFile ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) AttachFile(ctx context.Context, title string, fileName string, data []byte) error
AttachFile calls AttachFileFunc.
func (*SlackThreadServiceMock) AttachFileCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) AttachFileCalls() []struct { Ctx context.Context Title string FileName string Data []byte }
AttachFileCalls gets all the calls that were made to AttachFile. Check the length with:
len(mockedSlackThreadService.AttachFileCalls())
func (*SlackThreadServiceMock) ChannelID ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) ChannelID() string
ChannelID calls ChannelIDFunc.
func (*SlackThreadServiceMock) ChannelIDCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) ChannelIDCalls() []struct { }
ChannelIDCalls gets all the calls that were made to ChannelID. Check the length with:
len(mockedSlackThreadService.ChannelIDCalls())
func (*SlackThreadServiceMock) Entity ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) Entity() *slack.Thread
Entity calls EntityFunc.
func (*SlackThreadServiceMock) EntityCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) EntityCalls() []struct { }
EntityCalls gets all the calls that were made to Entity. Check the length with:
len(mockedSlackThreadService.EntityCalls())
func (*SlackThreadServiceMock) NewStateFunc ¶
func (mock *SlackThreadServiceMock) NewStateFunc(ctx context.Context, message string) func(ctx context.Context, msg string)
NewStateFunc calls NewStateFuncFunc.
func (*SlackThreadServiceMock) NewStateFuncCalls ¶
func (mock *SlackThreadServiceMock) NewStateFuncCalls() []struct { Ctx context.Context Message string }
NewStateFuncCalls gets all the calls that were made to NewStateFunc. Check the length with:
len(mockedSlackThreadService.NewStateFuncCalls())
func (*SlackThreadServiceMock) NewTraceMessage ¶ added in v0.2.0
func (mock *SlackThreadServiceMock) NewTraceMessage(ctx context.Context, initialMessage string) func(ctx context.Context, traceMsg string)
NewTraceMessage calls NewTraceMessageFunc.
func (*SlackThreadServiceMock) NewTraceMessageCalls ¶ added in v0.2.0
func (mock *SlackThreadServiceMock) NewTraceMessageCalls() []struct { Ctx context.Context InitialMessage string }
NewTraceMessageCalls gets all the calls that were made to NewTraceMessage. Check the length with:
len(mockedSlackThreadService.NewTraceMessageCalls())
func (*SlackThreadServiceMock) NewUpdatableMessage ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) NewUpdatableMessage(ctx context.Context, initialMessage string) func(ctx context.Context, newMsg string)
NewUpdatableMessage calls NewUpdatableMessageFunc.
func (*SlackThreadServiceMock) NewUpdatableMessageCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) NewUpdatableMessageCalls() []struct { Ctx context.Context InitialMessage string }
NewUpdatableMessageCalls gets all the calls that were made to NewUpdatableMessage. Check the length with:
len(mockedSlackThreadService.NewUpdatableMessageCalls())
func (*SlackThreadServiceMock) PostAlert ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostAlert(ctx context.Context, alertMoqParam *alert.Alert) error
PostAlert calls PostAlertFunc.
func (*SlackThreadServiceMock) PostAlertCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostAlertCalls() []struct { Ctx context.Context AlertMoqParam *alert.Alert }
PostAlertCalls gets all the calls that were made to PostAlert. Check the length with:
len(mockedSlackThreadService.PostAlertCalls())
func (*SlackThreadServiceMock) PostAlertList ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostAlertList(ctx context.Context, list *alert.List) (string, error)
PostAlertList calls PostAlertListFunc.
func (*SlackThreadServiceMock) PostAlertListCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostAlertListCalls() []struct { Ctx context.Context List *alert.List }
PostAlertListCalls gets all the calls that were made to PostAlertList. Check the length with:
len(mockedSlackThreadService.PostAlertListCalls())
func (*SlackThreadServiceMock) PostAlertLists ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostAlertLists(ctx context.Context, clusters []*alert.List) error
PostAlertLists calls PostAlertListsFunc.
func (*SlackThreadServiceMock) PostAlertListsCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostAlertListsCalls() []struct { Ctx context.Context Clusters []*alert.List }
PostAlertListsCalls gets all the calls that were made to PostAlertLists. Check the length with:
len(mockedSlackThreadService.PostAlertListsCalls())
func (*SlackThreadServiceMock) PostAlerts ¶ added in v0.1.0
PostAlerts calls PostAlertsFunc.
func (*SlackThreadServiceMock) PostAlertsCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostAlertsCalls() []struct { Ctx context.Context Alerts alert.Alerts }
PostAlertsCalls gets all the calls that were made to PostAlerts. Check the length with:
len(mockedSlackThreadService.PostAlertsCalls())
func (*SlackThreadServiceMock) PostComment ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostComment(ctx context.Context, comment string) error
PostComment calls PostCommentFunc.
func (*SlackThreadServiceMock) PostCommentCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostCommentCalls() []struct { Ctx context.Context Comment string }
PostCommentCalls gets all the calls that were made to PostComment. Check the length with:
len(mockedSlackThreadService.PostCommentCalls())
func (*SlackThreadServiceMock) PostCommentWithMessageID ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostCommentWithMessageID(ctx context.Context, comment string) (string, error)
PostCommentWithMessageID calls PostCommentWithMessageIDFunc.
func (*SlackThreadServiceMock) PostCommentWithMessageIDCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostCommentWithMessageIDCalls() []struct { Ctx context.Context Comment string }
PostCommentWithMessageIDCalls gets all the calls that were made to PostCommentWithMessageID. Check the length with:
len(mockedSlackThreadService.PostCommentWithMessageIDCalls())
func (*SlackThreadServiceMock) PostContextBlock ¶ added in v0.5.0
func (mock *SlackThreadServiceMock) PostContextBlock(ctx context.Context, text string) error
PostContextBlock calls PostContextBlockFunc.
func (*SlackThreadServiceMock) PostContextBlockCalls ¶ added in v0.5.0
func (mock *SlackThreadServiceMock) PostContextBlockCalls() []struct { Ctx context.Context Text string }
PostContextBlockCalls gets all the calls that were made to PostContextBlock. Check the length with:
len(mockedSlackThreadService.PostContextBlockCalls())
func (*SlackThreadServiceMock) PostFinding ¶ added in v0.1.0
PostFinding calls PostFindingFunc.
func (*SlackThreadServiceMock) PostFindingCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostFindingCalls() []struct { Ctx context.Context Finding *ticket.Finding }
PostFindingCalls gets all the calls that were made to PostFinding. Check the length with:
len(mockedSlackThreadService.PostFindingCalls())
func (*SlackThreadServiceMock) PostLinkToTicket ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostLinkToTicket(ctx context.Context, ticketURL string, ticketTitle string) error
PostLinkToTicket calls PostLinkToTicketFunc.
func (*SlackThreadServiceMock) PostLinkToTicketCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostLinkToTicketCalls() []struct { Ctx context.Context TicketURL string TicketTitle string }
PostLinkToTicketCalls gets all the calls that were made to PostLinkToTicket. Check the length with:
len(mockedSlackThreadService.PostLinkToTicketCalls())
func (*SlackThreadServiceMock) PostResolveDetails ¶ added in v0.9.0
func (mock *SlackThreadServiceMock) PostResolveDetails(ctx context.Context, ticketMoqParam *ticket.Ticket) error
PostResolveDetails calls PostResolveDetailsFunc.
func (*SlackThreadServiceMock) PostResolveDetailsCalls ¶ added in v0.9.0
func (mock *SlackThreadServiceMock) PostResolveDetailsCalls() []struct { Ctx context.Context TicketMoqParam *ticket.Ticket }
PostResolveDetailsCalls gets all the calls that were made to PostResolveDetails. Check the length with:
len(mockedSlackThreadService.PostResolveDetailsCalls())
func (*SlackThreadServiceMock) PostSessionActions ¶ added in v0.9.0
func (mock *SlackThreadServiceMock) PostSessionActions(ctx context.Context, ticketID types.TicketID, ticketStatus types.TicketStatus, sessionURL string) error
PostSessionActions calls PostSessionActionsFunc.
func (*SlackThreadServiceMock) PostSessionActionsCalls ¶ added in v0.9.0
func (mock *SlackThreadServiceMock) PostSessionActionsCalls() []struct { Ctx context.Context TicketID types.TicketID TicketStatus types.TicketStatus SessionURL string }
PostSessionActionsCalls gets all the calls that were made to PostSessionActions. Check the length with:
len(mockedSlackThreadService.PostSessionActionsCalls())
func (*SlackThreadServiceMock) PostTicket ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostTicket(ctx context.Context, ticketMoqParam *ticket.Ticket, alerts alert.Alerts) (string, error)
PostTicket calls PostTicketFunc.
func (*SlackThreadServiceMock) PostTicketCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostTicketCalls() []struct { Ctx context.Context TicketMoqParam *ticket.Ticket Alerts alert.Alerts }
PostTicketCalls gets all the calls that were made to PostTicket. Check the length with:
len(mockedSlackThreadService.PostTicketCalls())
func (*SlackThreadServiceMock) PostTicketList ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostTicketList(ctx context.Context, tickets []*ticket.Ticket) error
PostTicketList calls PostTicketListFunc.
func (*SlackThreadServiceMock) PostTicketListCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) PostTicketListCalls() []struct { Ctx context.Context Tickets []*ticket.Ticket }
PostTicketListCalls gets all the calls that were made to PostTicketList. Check the length with:
len(mockedSlackThreadService.PostTicketListCalls())
func (*SlackThreadServiceMock) Reply ¶
func (mock *SlackThreadServiceMock) Reply(ctx context.Context, message string)
Reply calls ReplyFunc.
func (*SlackThreadServiceMock) ReplyCalls ¶
func (mock *SlackThreadServiceMock) ReplyCalls() []struct { Ctx context.Context Message string }
ReplyCalls gets all the calls that were made to Reply. Check the length with:
len(mockedSlackThreadService.ReplyCalls())
func (*SlackThreadServiceMock) ThreadID ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) ThreadID() string
ThreadID calls ThreadIDFunc.
func (*SlackThreadServiceMock) ThreadIDCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) ThreadIDCalls() []struct { }
ThreadIDCalls gets all the calls that were made to ThreadID. Check the length with:
len(mockedSlackThreadService.ThreadIDCalls())
func (*SlackThreadServiceMock) UpdateAlert ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) UpdateAlert(ctx context.Context, alertMoqParam alert.Alert) error
UpdateAlert calls UpdateAlertFunc.
func (*SlackThreadServiceMock) UpdateAlertCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) UpdateAlertCalls() []struct { Ctx context.Context AlertMoqParam alert.Alert }
UpdateAlertCalls gets all the calls that were made to UpdateAlert. Check the length with:
len(mockedSlackThreadService.UpdateAlertCalls())
func (*SlackThreadServiceMock) UpdateAlertList ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) UpdateAlertList(ctx context.Context, list *alert.List, status string) error
UpdateAlertList calls UpdateAlertListFunc.
func (*SlackThreadServiceMock) UpdateAlertListCalls ¶ added in v0.1.0
func (mock *SlackThreadServiceMock) UpdateAlertListCalls() []struct { Ctx context.Context List *alert.List Status string }
UpdateAlertListCalls gets all the calls that were made to UpdateAlertList. Check the length with:
len(mockedSlackThreadService.UpdateAlertListCalls())
type StorageClientMock ¶
type StorageClientMock struct {
// CloseFunc mocks the Close method.
CloseFunc func(ctx context.Context)
// GetObjectFunc mocks the GetObject method.
GetObjectFunc func(ctx context.Context, object string) (io.ReadCloser, error)
// PutObjectFunc mocks the PutObject method.
PutObjectFunc func(ctx context.Context, object string) io.WriteCloser
// contains filtered or unexported fields
}
StorageClientMock is a mock implementation of interfaces.StorageClient.
func TestSomethingThatUsesStorageClient(t *testing.T) {
// make and configure a mocked interfaces.StorageClient
mockedStorageClient := &StorageClientMock{
CloseFunc: func(ctx context.Context) {
panic("mock out the Close method")
},
GetObjectFunc: func(ctx context.Context, object string) (io.ReadCloser, error) {
panic("mock out the GetObject method")
},
PutObjectFunc: func(ctx context.Context, object string) io.WriteCloser {
panic("mock out the PutObject method")
},
}
// use mockedStorageClient in code that requires interfaces.StorageClient
// and then make assertions.
}
func (*StorageClientMock) Close ¶
func (mock *StorageClientMock) Close(ctx context.Context)
Close calls CloseFunc.
func (*StorageClientMock) CloseCalls ¶
func (mock *StorageClientMock) CloseCalls() []struct { Ctx context.Context }
CloseCalls gets all the calls that were made to Close. Check the length with:
len(mockedStorageClient.CloseCalls())
func (*StorageClientMock) GetObject ¶
func (mock *StorageClientMock) GetObject(ctx context.Context, object string) (io.ReadCloser, error)
GetObject calls GetObjectFunc.
func (*StorageClientMock) GetObjectCalls ¶
func (mock *StorageClientMock) GetObjectCalls() []struct { Ctx context.Context Object string }
GetObjectCalls gets all the calls that were made to GetObject. Check the length with:
len(mockedStorageClient.GetObjectCalls())
func (*StorageClientMock) PutObject ¶
func (mock *StorageClientMock) PutObject(ctx context.Context, object string) io.WriteCloser
PutObject calls PutObjectFunc.
func (*StorageClientMock) PutObjectCalls ¶
func (mock *StorageClientMock) PutObjectCalls() []struct { Ctx context.Context Object string }
PutObjectCalls gets all the calls that were made to PutObject. Check the length with:
len(mockedStorageClient.PutObjectCalls())