Documentation ¶
Index ¶
- type MockSender
- func (mock *MockSender) Send(log *logging.SimpleLogger, applyResult webhooks.ApplyResult) error
- func (mock *MockSender) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierSender
- func (mock *MockSender) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierSender
- func (mock *MockSender) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierSender
- func (mock *MockSender) VerifyWasCalledOnce() *VerifierSender
- type MockSlackClient
- func (mock *MockSlackClient) AuthTest() error
- func (mock *MockSlackClient) ChannelExists(channelName string) (bool, error)
- func (mock *MockSlackClient) PostMessage(channel string, applyResult webhooks.ApplyResult) error
- func (mock *MockSlackClient) TokenIsSet() bool
- func (mock *MockSlackClient) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierSlackClient
- func (mock *MockSlackClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierSlackClient
- func (mock *MockSlackClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierSlackClient
- func (mock *MockSlackClient) VerifyWasCalledOnce() *VerifierSlackClient
- type MockUnderlyingSlackClient
- func (mock *MockUnderlyingSlackClient) AuthTest() (*slack.AuthTestResponse, error)
- func (mock *MockUnderlyingSlackClient) GetChannels(excludeArchived bool) ([]slack.Channel, error)
- func (mock *MockUnderlyingSlackClient) PostMessage(channel string, text string, parameters slack.PostMessageParameters) (string, string, error)
- func (mock *MockUnderlyingSlackClient) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierUnderlyingSlackClient
- func (mock *MockUnderlyingSlackClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierUnderlyingSlackClient
- func (mock *MockUnderlyingSlackClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierUnderlyingSlackClient
- func (mock *MockUnderlyingSlackClient) VerifyWasCalledOnce() *VerifierUnderlyingSlackClient
- type Sender_Send_OngoingVerification
- type SlackClient_AuthTest_OngoingVerification
- type SlackClient_ChannelExists_OngoingVerification
- type SlackClient_PostMessage_OngoingVerification
- type SlackClient_TokenIsSet_OngoingVerification
- type UnderlyingSlackClient_AuthTest_OngoingVerification
- type UnderlyingSlackClient_GetChannels_OngoingVerification
- type UnderlyingSlackClient_PostMessage_OngoingVerification
- type VerifierSender
- type VerifierSlackClient
- func (verifier *VerifierSlackClient) AuthTest() *SlackClient_AuthTest_OngoingVerification
- func (verifier *VerifierSlackClient) ChannelExists(channelName string) *SlackClient_ChannelExists_OngoingVerification
- func (verifier *VerifierSlackClient) PostMessage(channel string, applyResult webhooks.ApplyResult) *SlackClient_PostMessage_OngoingVerification
- func (verifier *VerifierSlackClient) TokenIsSet() *SlackClient_TokenIsSet_OngoingVerification
- type VerifierUnderlyingSlackClient
- func (verifier *VerifierUnderlyingSlackClient) AuthTest() *UnderlyingSlackClient_AuthTest_OngoingVerification
- func (verifier *VerifierUnderlyingSlackClient) GetChannels(excludeArchived bool) *UnderlyingSlackClient_GetChannels_OngoingVerification
- func (verifier *VerifierUnderlyingSlackClient) PostMessage(channel string, text string, parameters slack.PostMessageParameters) *UnderlyingSlackClient_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() *MockSender
func (*MockSender) Send ¶
func (mock *MockSender) Send(log *logging.SimpleLogger, applyResult webhooks.ApplyResult) error
func (*MockSender) VerifyWasCalled ¶
func (mock *MockSender) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierSender
func (*MockSender) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockSender) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierSender
func (*MockSender) VerifyWasCalledInOrder ¶
func (mock *MockSender) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierSender
func (*MockSender) VerifyWasCalledOnce ¶
func (mock *MockSender) VerifyWasCalledOnce() *VerifierSender
type MockSlackClient ¶
type MockSlackClient struct {
// contains filtered or unexported fields
}
func NewMockSlackClient ¶
func NewMockSlackClient() *MockSlackClient
func (*MockSlackClient) AuthTest ¶
func (mock *MockSlackClient) AuthTest() error
func (*MockSlackClient) ChannelExists ¶
func (mock *MockSlackClient) ChannelExists(channelName string) (bool, error)
func (*MockSlackClient) PostMessage ¶
func (mock *MockSlackClient) PostMessage(channel string, applyResult webhooks.ApplyResult) error
func (*MockSlackClient) TokenIsSet ¶
func (mock *MockSlackClient) TokenIsSet() bool
func (*MockSlackClient) VerifyWasCalled ¶
func (mock *MockSlackClient) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierSlackClient
func (*MockSlackClient) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockSlackClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierSlackClient
func (*MockSlackClient) VerifyWasCalledInOrder ¶
func (mock *MockSlackClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierSlackClient
func (*MockSlackClient) VerifyWasCalledOnce ¶
func (mock *MockSlackClient) VerifyWasCalledOnce() *VerifierSlackClient
type MockUnderlyingSlackClient ¶
type MockUnderlyingSlackClient struct {
// contains filtered or unexported fields
}
func NewMockUnderlyingSlackClient ¶
func NewMockUnderlyingSlackClient() *MockUnderlyingSlackClient
func (*MockUnderlyingSlackClient) AuthTest ¶
func (mock *MockUnderlyingSlackClient) AuthTest() (*slack.AuthTestResponse, error)
func (*MockUnderlyingSlackClient) GetChannels ¶
func (mock *MockUnderlyingSlackClient) GetChannels(excludeArchived bool) ([]slack.Channel, error)
func (*MockUnderlyingSlackClient) PostMessage ¶
func (mock *MockUnderlyingSlackClient) PostMessage(channel string, text string, parameters slack.PostMessageParameters) (string, string, error)
func (*MockUnderlyingSlackClient) VerifyWasCalled ¶
func (mock *MockUnderlyingSlackClient) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierUnderlyingSlackClient
func (*MockUnderlyingSlackClient) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockUnderlyingSlackClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierUnderlyingSlackClient
func (*MockUnderlyingSlackClient) VerifyWasCalledInOrder ¶
func (mock *MockUnderlyingSlackClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierUnderlyingSlackClient
func (*MockUnderlyingSlackClient) VerifyWasCalledOnce ¶
func (mock *MockUnderlyingSlackClient) VerifyWasCalledOnce() *VerifierUnderlyingSlackClient
type Sender_Send_OngoingVerification ¶
type Sender_Send_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Sender_Send_OngoingVerification) GetAllCapturedArguments ¶
func (c *Sender_Send_OngoingVerification) GetAllCapturedArguments() (_param0 []*logging.SimpleLogger, _param1 []webhooks.ApplyResult)
func (*Sender_Send_OngoingVerification) GetCapturedArguments ¶
func (c *Sender_Send_OngoingVerification) GetCapturedArguments() (*logging.SimpleLogger, webhooks.ApplyResult)
type SlackClient_AuthTest_OngoingVerification ¶
type SlackClient_AuthTest_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*SlackClient_AuthTest_OngoingVerification) GetAllCapturedArguments ¶
func (c *SlackClient_AuthTest_OngoingVerification) GetAllCapturedArguments()
func (*SlackClient_AuthTest_OngoingVerification) GetCapturedArguments ¶
func (c *SlackClient_AuthTest_OngoingVerification) GetCapturedArguments()
type SlackClient_ChannelExists_OngoingVerification ¶
type SlackClient_ChannelExists_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*SlackClient_ChannelExists_OngoingVerification) GetAllCapturedArguments ¶
func (c *SlackClient_ChannelExists_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (*SlackClient_ChannelExists_OngoingVerification) GetCapturedArguments ¶
func (c *SlackClient_ChannelExists_OngoingVerification) GetCapturedArguments() string
type SlackClient_PostMessage_OngoingVerification ¶
type SlackClient_PostMessage_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*SlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments ¶
func (c *SlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []webhooks.ApplyResult)
func (*SlackClient_PostMessage_OngoingVerification) GetCapturedArguments ¶
func (c *SlackClient_PostMessage_OngoingVerification) GetCapturedArguments() (string, webhooks.ApplyResult)
type SlackClient_TokenIsSet_OngoingVerification ¶
type SlackClient_TokenIsSet_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*SlackClient_TokenIsSet_OngoingVerification) GetAllCapturedArguments ¶
func (c *SlackClient_TokenIsSet_OngoingVerification) GetAllCapturedArguments()
func (*SlackClient_TokenIsSet_OngoingVerification) GetCapturedArguments ¶
func (c *SlackClient_TokenIsSet_OngoingVerification) GetCapturedArguments()
type UnderlyingSlackClient_AuthTest_OngoingVerification ¶
type UnderlyingSlackClient_AuthTest_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*UnderlyingSlackClient_AuthTest_OngoingVerification) GetAllCapturedArguments ¶
func (c *UnderlyingSlackClient_AuthTest_OngoingVerification) GetAllCapturedArguments()
func (*UnderlyingSlackClient_AuthTest_OngoingVerification) GetCapturedArguments ¶
func (c *UnderlyingSlackClient_AuthTest_OngoingVerification) GetCapturedArguments()
type UnderlyingSlackClient_GetChannels_OngoingVerification ¶
type UnderlyingSlackClient_GetChannels_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*UnderlyingSlackClient_GetChannels_OngoingVerification) GetAllCapturedArguments ¶
func (c *UnderlyingSlackClient_GetChannels_OngoingVerification) GetAllCapturedArguments() (_param0 []bool)
func (*UnderlyingSlackClient_GetChannels_OngoingVerification) GetCapturedArguments ¶
func (c *UnderlyingSlackClient_GetChannels_OngoingVerification) GetCapturedArguments() bool
type UnderlyingSlackClient_PostMessage_OngoingVerification ¶
type UnderlyingSlackClient_PostMessage_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*UnderlyingSlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments ¶
func (c *UnderlyingSlackClient_PostMessage_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []slack.PostMessageParameters)
func (*UnderlyingSlackClient_PostMessage_OngoingVerification) GetCapturedArguments ¶
func (c *UnderlyingSlackClient_PostMessage_OngoingVerification) GetCapturedArguments() (string, string, slack.PostMessageParameters)
type VerifierSender ¶
type VerifierSender struct {
// contains filtered or unexported fields
}
func (*VerifierSender) Send ¶
func (verifier *VerifierSender) Send(log *logging.SimpleLogger, applyResult webhooks.ApplyResult) *Sender_Send_OngoingVerification
type VerifierSlackClient ¶
type VerifierSlackClient struct {
// contains filtered or unexported fields
}
func (*VerifierSlackClient) AuthTest ¶
func (verifier *VerifierSlackClient) AuthTest() *SlackClient_AuthTest_OngoingVerification
func (*VerifierSlackClient) ChannelExists ¶
func (verifier *VerifierSlackClient) ChannelExists(channelName string) *SlackClient_ChannelExists_OngoingVerification
func (*VerifierSlackClient) PostMessage ¶
func (verifier *VerifierSlackClient) PostMessage(channel string, applyResult webhooks.ApplyResult) *SlackClient_PostMessage_OngoingVerification
func (*VerifierSlackClient) TokenIsSet ¶
func (verifier *VerifierSlackClient) TokenIsSet() *SlackClient_TokenIsSet_OngoingVerification
type VerifierUnderlyingSlackClient ¶
type VerifierUnderlyingSlackClient struct {
// contains filtered or unexported fields
}
func (*VerifierUnderlyingSlackClient) AuthTest ¶
func (verifier *VerifierUnderlyingSlackClient) AuthTest() *UnderlyingSlackClient_AuthTest_OngoingVerification
func (*VerifierUnderlyingSlackClient) GetChannels ¶
func (verifier *VerifierUnderlyingSlackClient) GetChannels(excludeArchived bool) *UnderlyingSlackClient_GetChannels_OngoingVerification
func (*VerifierUnderlyingSlackClient) PostMessage ¶
func (verifier *VerifierUnderlyingSlackClient) PostMessage(channel string, text string, parameters slack.PostMessageParameters) *UnderlyingSlackClient_PostMessage_OngoingVerification
Source Files ¶
Click to show internal directories.
Click to hide internal directories.