mocks

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) ClassifyCommand added in v0.0.7

func (m *MockClient) ClassifyCommand(ctx context.Context, text string, sampleMessages map[string][]string) (string, error)

ClassifyCommand mocks base method.

func (*MockClient) Config

func (m *MockClient) Config() llm.Config

Config mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GenerateChannelSuggestions

func (m *MockClient) GenerateChannelSuggestions(ctx context.Context, messages [][]string) (string, error)

GenerateChannelSuggestions mocks base method.

func (*MockClient) GenerateDocumentationResponse added in v0.0.10

func (m *MockClient) GenerateDocumentationResponse(ctx context.Context, question string, documents []string) (string, error)

GenerateDocumentationResponse mocks base method.

func (*MockClient) GenerateDocumentationUpdate added in v0.0.10

func (m *MockClient) GenerateDocumentationUpdate(ctx context.Context, doc, msgs string) (string, error)

GenerateDocumentationUpdate mocks base method.

func (*MockClient) GenerateEmbedding

func (m *MockClient) GenerateEmbedding(ctx context.Context, task, text string) ([]float32, error)

GenerateEmbedding mocks base method.

func (*MockClient) GenerateRunbook added in v0.0.10

func (m *MockClient) GenerateRunbook(ctx context.Context, service, alert string, msgs []string) (*llm.RunbookResponse, error)

GenerateRunbook mocks base method.

func (*MockClient) RunJSONModePrompt

func (m *MockClient) RunJSONModePrompt(ctx context.Context, prompt string, schema *jsonschema.Schema) (string, string, error)

RunJSONModePrompt mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) ClassifyCommand added in v0.0.7

func (mr *MockClientMockRecorder) ClassifyCommand(ctx, text, sampleMessages any) *gomock.Call

ClassifyCommand indicates an expected call of ClassifyCommand.

func (*MockClientMockRecorder) Config

func (mr *MockClientMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config.

func (*MockClientMockRecorder) GenerateChannelSuggestions

func (mr *MockClientMockRecorder) GenerateChannelSuggestions(ctx, messages any) *gomock.Call

GenerateChannelSuggestions indicates an expected call of GenerateChannelSuggestions.

func (*MockClientMockRecorder) GenerateDocumentationResponse added in v0.0.10

func (mr *MockClientMockRecorder) GenerateDocumentationResponse(ctx, question, documents any) *gomock.Call

GenerateDocumentationResponse indicates an expected call of GenerateDocumentationResponse.

func (*MockClientMockRecorder) GenerateDocumentationUpdate added in v0.0.10

func (mr *MockClientMockRecorder) GenerateDocumentationUpdate(ctx, doc, msgs any) *gomock.Call

GenerateDocumentationUpdate indicates an expected call of GenerateDocumentationUpdate.

func (*MockClientMockRecorder) GenerateEmbedding

func (mr *MockClientMockRecorder) GenerateEmbedding(ctx, task, text any) *gomock.Call

GenerateEmbedding indicates an expected call of GenerateEmbedding.

func (*MockClientMockRecorder) GenerateRunbook added in v0.0.10

func (mr *MockClientMockRecorder) GenerateRunbook(ctx, service, alert, msgs any) *gomock.Call

GenerateRunbook indicates an expected call of GenerateRunbook.

func (*MockClientMockRecorder) RunJSONModePrompt

func (mr *MockClientMockRecorder) RunJSONModePrompt(ctx, prompt, schema any) *gomock.Call

RunJSONModePrompt indicates an expected call of RunJSONModePrompt.

type MockIntegration

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

MockIntegration is a mock of Integration interface.

func NewMockIntegration

func NewMockIntegration(ctrl *gomock.Controller) *MockIntegration

NewMockIntegration creates a new mock instance.

func (*MockIntegration) BotUserID

func (m *MockIntegration) BotUserID() string

BotUserID mocks base method.

func (*MockIntegration) Client

func (m *MockIntegration) Client() *slack.Client

Client mocks base method.

func (*MockIntegration) EXPECT

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

func (*MockIntegration) GetBotChannels

func (m *MockIntegration) GetBotChannels() ([]slack.Channel, error)

GetBotChannels mocks base method.

func (*MockIntegration) GetConversationHistory

func (m *MockIntegration) GetConversationHistory(ctx context.Context, channelID string, lastNMsgs int) ([]slack.Message, error)

GetConversationHistory mocks base method.

func (*MockIntegration) GetConversationInfo

func (m *MockIntegration) GetConversationInfo(ctx context.Context, channelID string) (*slack.Channel, error)

GetConversationInfo mocks base method.

func (*MockIntegration) GetConversationReplies

func (m *MockIntegration) GetConversationReplies(ctx context.Context, channelID, ts string) ([]slack.Message, error)

GetConversationReplies mocks base method.

func (*MockIntegration) GetUserIDByEmail

func (m *MockIntegration) GetUserIDByEmail(ctx context.Context, email string) (string, error)

GetUserIDByEmail mocks base method.

func (*MockIntegration) PostMessage

func (m *MockIntegration) PostMessage(ctx context.Context, channelID string, messageBlocks ...slack.Block) error

PostMessage mocks base method.

func (*MockIntegration) PostThreadReply

func (m *MockIntegration) PostThreadReply(ctx context.Context, channelID, ts string, messageBlocks ...slack.Block) error

PostThreadReply mocks base method.

func (*MockIntegration) Run

func (m *MockIntegration) Run(ctx context.Context) error

Run mocks base method.

type MockIntegrationMockRecorder

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

MockIntegrationMockRecorder is the mock recorder for MockIntegration.

func (*MockIntegrationMockRecorder) BotUserID

func (mr *MockIntegrationMockRecorder) BotUserID() *gomock.Call

BotUserID indicates an expected call of BotUserID.

func (*MockIntegrationMockRecorder) Client

func (mr *MockIntegrationMockRecorder) Client() *gomock.Call

Client indicates an expected call of Client.

func (*MockIntegrationMockRecorder) GetBotChannels

func (mr *MockIntegrationMockRecorder) GetBotChannels() *gomock.Call

GetBotChannels indicates an expected call of GetBotChannels.

func (*MockIntegrationMockRecorder) GetConversationHistory

func (mr *MockIntegrationMockRecorder) GetConversationHistory(ctx, channelID, lastNMsgs any) *gomock.Call

GetConversationHistory indicates an expected call of GetConversationHistory.

func (*MockIntegrationMockRecorder) GetConversationInfo

func (mr *MockIntegrationMockRecorder) GetConversationInfo(ctx, channelID any) *gomock.Call

GetConversationInfo indicates an expected call of GetConversationInfo.

func (*MockIntegrationMockRecorder) GetConversationReplies

func (mr *MockIntegrationMockRecorder) GetConversationReplies(ctx, channelID, ts any) *gomock.Call

GetConversationReplies indicates an expected call of GetConversationReplies.

func (*MockIntegrationMockRecorder) GetUserIDByEmail

func (mr *MockIntegrationMockRecorder) GetUserIDByEmail(ctx, email any) *gomock.Call

GetUserIDByEmail indicates an expected call of GetUserIDByEmail.

func (*MockIntegrationMockRecorder) PostMessage

func (mr *MockIntegrationMockRecorder) PostMessage(ctx, channelID any, messageBlocks ...any) *gomock.Call

PostMessage indicates an expected call of PostMessage.

func (*MockIntegrationMockRecorder) PostThreadReply

func (mr *MockIntegrationMockRecorder) PostThreadReply(ctx, channelID, ts any, messageBlocks ...any) *gomock.Call

PostThreadReply indicates an expected call of PostThreadReply.

func (*MockIntegrationMockRecorder) Run

Run indicates an expected call of Run.

type Mockhandler added in v0.0.10

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

Mockhandler is a mock of handler interface.

func NewMockhandler added in v0.0.10

func NewMockhandler(ctrl *gomock.Controller) *Mockhandler

NewMockhandler creates a new mock instance.

func (*Mockhandler) EXPECT added in v0.0.10

func (m *Mockhandler) EXPECT() *MockhandlerMockRecorder

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

func (*Mockhandler) NotifyMessage added in v0.0.10

func (m *Mockhandler) NotifyMessage(ctx context.Context, ev *slackevents.MessageEvent) error

NotifyMessage mocks base method.

func (*Mockhandler) NotifyReactionAdded added in v0.0.10

func (m *Mockhandler) NotifyReactionAdded(ctx context.Context, ev *slackevents.ReactionAddedEvent) error

NotifyReactionAdded mocks base method.

func (*Mockhandler) NotifyReactionRemoved added in v0.0.10

func (m *Mockhandler) NotifyReactionRemoved(ctx context.Context, ev *slackevents.ReactionRemovedEvent) error

NotifyReactionRemoved mocks base method.

type MockhandlerMockRecorder added in v0.0.10

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

MockhandlerMockRecorder is the mock recorder for Mockhandler.

func (*MockhandlerMockRecorder) NotifyMessage added in v0.0.10

func (mr *MockhandlerMockRecorder) NotifyMessage(ctx, ev any) *gomock.Call

NotifyMessage indicates an expected call of NotifyMessage.

func (*MockhandlerMockRecorder) NotifyReactionAdded added in v0.0.10

func (mr *MockhandlerMockRecorder) NotifyReactionAdded(ctx, ev any) *gomock.Call

NotifyReactionAdded indicates an expected call of NotifyReactionAdded.

func (*MockhandlerMockRecorder) NotifyReactionRemoved added in v0.0.10

func (mr *MockhandlerMockRecorder) NotifyReactionRemoved(ctx, ev any) *gomock.Call

NotifyReactionRemoved indicates an expected call of NotifyReactionRemoved.

Jump to

Keyboard shortcuts

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