Documentation ¶
Index ¶
- type MockSender
- func (mock *MockSender) FailHandler() pegomock.FailHandler
- func (mock *MockSender) Send(log logging.SimpleLogging, applyResult webhooks.ApplyResult) error
- func (mock *MockSender) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockSender) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockSender
- func (mock *MockSender) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockSender
- func (mock *MockSender) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockSender
- func (mock *MockSender) VerifyWasCalledOnce() *VerifierMockSender
- type MockSender_Send_OngoingVerification
- type MockSlackClient
- func (mock *MockSlackClient) AuthTest() error
- func (mock *MockSlackClient) ChannelExists(channelName string) (bool, error)
- func (mock *MockSlackClient) FailHandler() pegomock.FailHandler
- func (mock *MockSlackClient) PostMessage(channel string, applyResult webhooks.ApplyResult) error
- func (mock *MockSlackClient) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockSlackClient) TokenIsSet() bool
- func (mock *MockSlackClient) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockSlackClient
- func (mock *MockSlackClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockSlackClient
- func (mock *MockSlackClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockSlackClient
- func (mock *MockSlackClient) VerifyWasCalledOnce() *VerifierMockSlackClient
- type MockSlackClient_AuthTest_OngoingVerification
- type MockSlackClient_ChannelExists_OngoingVerification
- type MockSlackClient_PostMessage_OngoingVerification
- type MockSlackClient_TokenIsSet_OngoingVerification
- type MockUnderlyingSlackClient
- func (mock *MockUnderlyingSlackClient) AuthTest() (*slack.AuthTestResponse, error)
- func (mock *MockUnderlyingSlackClient) FailHandler() pegomock.FailHandler
- func (mock *MockUnderlyingSlackClient) GetConversations(conversationParams *slack.GetConversationsParameters) ([]slack.Channel, string, error)
- func (mock *MockUnderlyingSlackClient) PostMessage(channel string, text string, parameters slack.PostMessageParameters) (string, string, error)
- func (mock *MockUnderlyingSlackClient) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockUnderlyingSlackClient) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockUnderlyingSlackClient
- func (mock *MockUnderlyingSlackClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockUnderlyingSlackClient
- func (mock *MockUnderlyingSlackClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockUnderlyingSlackClient
- func (mock *MockUnderlyingSlackClient) VerifyWasCalledOnce() *VerifierMockUnderlyingSlackClient
- type MockUnderlyingSlackClient_AuthTest_OngoingVerification
- type MockUnderlyingSlackClient_GetConversations_OngoingVerification
- type MockUnderlyingSlackClient_PostMessage_OngoingVerification
- func (c *MockUnderlyingSlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []slack.PostMessageParameters)
- func (c *MockUnderlyingSlackClient_PostMessage_OngoingVerification) GetCapturedArguments() (string, string, slack.PostMessageParameters)
- type VerifierMockSender
- type VerifierMockSlackClient
- func (verifier *VerifierMockSlackClient) AuthTest() *MockSlackClient_AuthTest_OngoingVerification
- func (verifier *VerifierMockSlackClient) ChannelExists(channelName string) *MockSlackClient_ChannelExists_OngoingVerification
- func (verifier *VerifierMockSlackClient) PostMessage(channel string, applyResult webhooks.ApplyResult) *MockSlackClient_PostMessage_OngoingVerification
- func (verifier *VerifierMockSlackClient) TokenIsSet() *MockSlackClient_TokenIsSet_OngoingVerification
- type VerifierMockUnderlyingSlackClient
- func (verifier *VerifierMockUnderlyingSlackClient) AuthTest() *MockUnderlyingSlackClient_AuthTest_OngoingVerification
- func (verifier *VerifierMockUnderlyingSlackClient) GetConversations(conversationParams *slack.GetConversationsParameters) *MockUnderlyingSlackClient_GetConversations_OngoingVerification
- func (verifier *VerifierMockUnderlyingSlackClient) PostMessage(channel string, text string, parameters slack.PostMessageParameters) *MockUnderlyingSlackClient_PostMessage_OngoingVerification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSender ¶
type MockSender struct {
// contains filtered or unexported fields
}
func NewMockSender ¶
func NewMockSender(options ...pegomock.Option) *MockSender
func (*MockSender) FailHandler ¶ added in v0.6.0
func (mock *MockSender) FailHandler() pegomock.FailHandler
func (*MockSender) Send ¶
func (mock *MockSender) Send(log logging.SimpleLogging, applyResult webhooks.ApplyResult) error
func (*MockSender) SetFailHandler ¶ added in v0.6.0
func (mock *MockSender) SetFailHandler(fh pegomock.FailHandler)
func (*MockSender) VerifyWasCalled ¶
func (mock *MockSender) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockSender
func (*MockSender) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockSender) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockSender
func (*MockSender) VerifyWasCalledInOrder ¶
func (mock *MockSender) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockSender
func (*MockSender) VerifyWasCalledOnce ¶
func (mock *MockSender) VerifyWasCalledOnce() *VerifierMockSender
type MockSender_Send_OngoingVerification ¶ added in v0.8.3
type MockSender_Send_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockSender_Send_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockSender_Send_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []webhooks.ApplyResult)
func (*MockSender_Send_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockSender_Send_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, webhooks.ApplyResult)
type MockSlackClient ¶
type MockSlackClient struct {
// contains filtered or unexported fields
}
func NewMockSlackClient ¶
func NewMockSlackClient(options ...pegomock.Option) *MockSlackClient
func (*MockSlackClient) AuthTest ¶
func (mock *MockSlackClient) AuthTest() error
func (*MockSlackClient) ChannelExists ¶
func (mock *MockSlackClient) ChannelExists(channelName string) (bool, error)
func (*MockSlackClient) FailHandler ¶ added in v0.6.0
func (mock *MockSlackClient) FailHandler() pegomock.FailHandler
func (*MockSlackClient) PostMessage ¶
func (mock *MockSlackClient) PostMessage(channel string, applyResult webhooks.ApplyResult) error
func (*MockSlackClient) SetFailHandler ¶ added in v0.6.0
func (mock *MockSlackClient) SetFailHandler(fh pegomock.FailHandler)
func (*MockSlackClient) TokenIsSet ¶
func (mock *MockSlackClient) TokenIsSet() bool
func (*MockSlackClient) VerifyWasCalled ¶
func (mock *MockSlackClient) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockSlackClient
func (*MockSlackClient) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockSlackClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockSlackClient
func (*MockSlackClient) VerifyWasCalledInOrder ¶
func (mock *MockSlackClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockSlackClient
func (*MockSlackClient) VerifyWasCalledOnce ¶
func (mock *MockSlackClient) VerifyWasCalledOnce() *VerifierMockSlackClient
type MockSlackClient_AuthTest_OngoingVerification ¶ added in v0.8.3
type MockSlackClient_AuthTest_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockSlackClient_AuthTest_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockSlackClient_AuthTest_OngoingVerification) GetAllCapturedArguments()
func (*MockSlackClient_AuthTest_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockSlackClient_AuthTest_OngoingVerification) GetCapturedArguments()
type MockSlackClient_ChannelExists_OngoingVerification ¶ added in v0.8.3
type MockSlackClient_ChannelExists_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockSlackClient_ChannelExists_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockSlackClient_ChannelExists_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (*MockSlackClient_ChannelExists_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockSlackClient_ChannelExists_OngoingVerification) GetCapturedArguments() string
type MockSlackClient_PostMessage_OngoingVerification ¶ added in v0.8.3
type MockSlackClient_PostMessage_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockSlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockSlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []webhooks.ApplyResult)
func (*MockSlackClient_PostMessage_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockSlackClient_PostMessage_OngoingVerification) GetCapturedArguments() (string, webhooks.ApplyResult)
type MockSlackClient_TokenIsSet_OngoingVerification ¶ added in v0.8.3
type MockSlackClient_TokenIsSet_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockSlackClient_TokenIsSet_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockSlackClient_TokenIsSet_OngoingVerification) GetAllCapturedArguments()
func (*MockSlackClient_TokenIsSet_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockSlackClient_TokenIsSet_OngoingVerification) GetCapturedArguments()
type MockUnderlyingSlackClient ¶
type MockUnderlyingSlackClient struct {
// contains filtered or unexported fields
}
func NewMockUnderlyingSlackClient ¶
func NewMockUnderlyingSlackClient(options ...pegomock.Option) *MockUnderlyingSlackClient
func (*MockUnderlyingSlackClient) AuthTest ¶
func (mock *MockUnderlyingSlackClient) AuthTest() (*slack.AuthTestResponse, error)
func (*MockUnderlyingSlackClient) FailHandler ¶ added in v0.6.0
func (mock *MockUnderlyingSlackClient) FailHandler() pegomock.FailHandler
func (*MockUnderlyingSlackClient) GetConversations ¶ added in v0.16.1
func (mock *MockUnderlyingSlackClient) GetConversations(conversationParams *slack.GetConversationsParameters) ([]slack.Channel, string, error)
func (*MockUnderlyingSlackClient) PostMessage ¶
func (mock *MockUnderlyingSlackClient) PostMessage(channel string, text string, parameters slack.PostMessageParameters) (string, string, error)
func (*MockUnderlyingSlackClient) SetFailHandler ¶ added in v0.6.0
func (mock *MockUnderlyingSlackClient) SetFailHandler(fh pegomock.FailHandler)
func (*MockUnderlyingSlackClient) VerifyWasCalled ¶
func (mock *MockUnderlyingSlackClient) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockUnderlyingSlackClient
func (*MockUnderlyingSlackClient) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockUnderlyingSlackClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockUnderlyingSlackClient
func (*MockUnderlyingSlackClient) VerifyWasCalledInOrder ¶
func (mock *MockUnderlyingSlackClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockUnderlyingSlackClient
func (*MockUnderlyingSlackClient) VerifyWasCalledOnce ¶
func (mock *MockUnderlyingSlackClient) VerifyWasCalledOnce() *VerifierMockUnderlyingSlackClient
type MockUnderlyingSlackClient_AuthTest_OngoingVerification ¶ added in v0.8.3
type MockUnderlyingSlackClient_AuthTest_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockUnderlyingSlackClient_AuthTest_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockUnderlyingSlackClient_AuthTest_OngoingVerification) GetAllCapturedArguments()
func (*MockUnderlyingSlackClient_AuthTest_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockUnderlyingSlackClient_AuthTest_OngoingVerification) GetCapturedArguments()
type MockUnderlyingSlackClient_GetConversations_OngoingVerification ¶ added in v0.16.1
type MockUnderlyingSlackClient_GetConversations_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockUnderlyingSlackClient_GetConversations_OngoingVerification) GetAllCapturedArguments ¶ added in v0.16.1
func (c *MockUnderlyingSlackClient_GetConversations_OngoingVerification) GetAllCapturedArguments() (_param0 []*slack.GetConversationsParameters)
func (*MockUnderlyingSlackClient_GetConversations_OngoingVerification) GetCapturedArguments ¶ added in v0.16.1
func (c *MockUnderlyingSlackClient_GetConversations_OngoingVerification) GetCapturedArguments() *slack.GetConversationsParameters
type MockUnderlyingSlackClient_PostMessage_OngoingVerification ¶ added in v0.8.3
type MockUnderlyingSlackClient_PostMessage_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockUnderlyingSlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockUnderlyingSlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []slack.PostMessageParameters)
func (*MockUnderlyingSlackClient_PostMessage_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockUnderlyingSlackClient_PostMessage_OngoingVerification) GetCapturedArguments() (string, string, slack.PostMessageParameters)
type VerifierMockSender ¶ added in v0.8.3
type VerifierMockSender struct {
// contains filtered or unexported fields
}
func (*VerifierMockSender) Send ¶ added in v0.8.3
func (verifier *VerifierMockSender) Send(log logging.SimpleLogging, applyResult webhooks.ApplyResult) *MockSender_Send_OngoingVerification
type VerifierMockSlackClient ¶ added in v0.8.3
type VerifierMockSlackClient struct {
// contains filtered or unexported fields
}
func (*VerifierMockSlackClient) AuthTest ¶ added in v0.8.3
func (verifier *VerifierMockSlackClient) AuthTest() *MockSlackClient_AuthTest_OngoingVerification
func (*VerifierMockSlackClient) ChannelExists ¶ added in v0.8.3
func (verifier *VerifierMockSlackClient) ChannelExists(channelName string) *MockSlackClient_ChannelExists_OngoingVerification
func (*VerifierMockSlackClient) PostMessage ¶ added in v0.8.3
func (verifier *VerifierMockSlackClient) PostMessage(channel string, applyResult webhooks.ApplyResult) *MockSlackClient_PostMessage_OngoingVerification
func (*VerifierMockSlackClient) TokenIsSet ¶ added in v0.8.3
func (verifier *VerifierMockSlackClient) TokenIsSet() *MockSlackClient_TokenIsSet_OngoingVerification
type VerifierMockUnderlyingSlackClient ¶ added in v0.8.3
type VerifierMockUnderlyingSlackClient struct {
// contains filtered or unexported fields
}
func (*VerifierMockUnderlyingSlackClient) AuthTest ¶ added in v0.8.3
func (verifier *VerifierMockUnderlyingSlackClient) AuthTest() *MockUnderlyingSlackClient_AuthTest_OngoingVerification
func (*VerifierMockUnderlyingSlackClient) GetConversations ¶ added in v0.16.1
func (verifier *VerifierMockUnderlyingSlackClient) GetConversations(conversationParams *slack.GetConversationsParameters) *MockUnderlyingSlackClient_GetConversations_OngoingVerification
func (*VerifierMockUnderlyingSlackClient) PostMessage ¶ added in v0.8.3
func (verifier *VerifierMockUnderlyingSlackClient) PostMessage(channel string, text string, parameters slack.PostMessageParameters) *MockUnderlyingSlackClient_PostMessage_OngoingVerification
Source Files ¶
Click to show internal directories.
Click to hide internal directories.