Documentation ¶
Index ¶
- type Encryptor
- type Encryptor_Decrypt_Call
- func (_c *Encryptor_Decrypt_Call) Return(_a0 secret.MaskableString, _a1 error) *Encryptor_Decrypt_Call
- func (_c *Encryptor_Decrypt_Call) Run(run func(str secret.MaskableString)) *Encryptor_Decrypt_Call
- func (_c *Encryptor_Decrypt_Call) RunAndReturn(run func(secret.MaskableString) (secret.MaskableString, error)) *Encryptor_Decrypt_Call
- type Encryptor_Encrypt_Call
- func (_c *Encryptor_Encrypt_Call) Return(_a0 secret.MaskableString, _a1 error) *Encryptor_Encrypt_Call
- func (_c *Encryptor_Encrypt_Call) Run(run func(str secret.MaskableString)) *Encryptor_Encrypt_Call
- func (_c *Encryptor_Encrypt_Call) RunAndReturn(run func(secret.MaskableString) (secret.MaskableString, error)) *Encryptor_Encrypt_Call
- type Encryptor_Expecter
- type GoSlackCaller
- func (_m *GoSlackCaller) EXPECT() *GoSlackCaller_Expecter
- func (_m *GoSlackCaller) GetConversationsForUserContext(ctx context.Context, params *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)
- func (_m *GoSlackCaller) GetUserByEmailContext(ctx context.Context, email string) (*slack.User, error)
- func (_m *GoSlackCaller) SendMessageContext(ctx context.Context, channel string, options ...slack.MsgOption) (string, string, string, error)
- type GoSlackCaller_Expecter
- func (_e *GoSlackCaller_Expecter) GetConversationsForUserContext(ctx interface{}, params interface{}) *GoSlackCaller_GetConversationsForUserContext_Call
- func (_e *GoSlackCaller_Expecter) GetUserByEmailContext(ctx interface{}, email interface{}) *GoSlackCaller_GetUserByEmailContext_Call
- func (_e *GoSlackCaller_Expecter) SendMessageContext(ctx interface{}, channel interface{}, options ...interface{}) *GoSlackCaller_SendMessageContext_Call
- type GoSlackCaller_GetConversationsForUserContext_Call
- func (_c *GoSlackCaller_GetConversationsForUserContext_Call) Return(channels []slack.Channel, nextCursor string, err error) *GoSlackCaller_GetConversationsForUserContext_Call
- func (_c *GoSlackCaller_GetConversationsForUserContext_Call) Run(run func(ctx context.Context, params *slack.GetConversationsForUserParameters)) *GoSlackCaller_GetConversationsForUserContext_Call
- func (_c *GoSlackCaller_GetConversationsForUserContext_Call) RunAndReturn(...) *GoSlackCaller_GetConversationsForUserContext_Call
- type GoSlackCaller_GetUserByEmailContext_Call
- func (_c *GoSlackCaller_GetUserByEmailContext_Call) Return(_a0 *slack.User, _a1 error) *GoSlackCaller_GetUserByEmailContext_Call
- func (_c *GoSlackCaller_GetUserByEmailContext_Call) Run(run func(ctx context.Context, email string)) *GoSlackCaller_GetUserByEmailContext_Call
- func (_c *GoSlackCaller_GetUserByEmailContext_Call) RunAndReturn(run func(context.Context, string) (*slack.User, error)) *GoSlackCaller_GetUserByEmailContext_Call
- type GoSlackCaller_SendMessageContext_Call
- func (_c *GoSlackCaller_SendMessageContext_Call) Return(_a0 string, _a1 string, _a2 string, _a3 error) *GoSlackCaller_SendMessageContext_Call
- func (_c *GoSlackCaller_SendMessageContext_Call) Run(run func(ctx context.Context, channel string, options ...slack.MsgOption)) *GoSlackCaller_SendMessageContext_Call
- func (_c *GoSlackCaller_SendMessageContext_Call) RunAndReturn(...) *GoSlackCaller_SendMessageContext_Call
- type SlackCaller
- func (_m *SlackCaller) EXPECT() *SlackCaller_Expecter
- func (_m *SlackCaller) ExchangeAuth(ctx context.Context, authCode string, clientID string, clientSecret string) (slack.Credential, error)
- func (_m *SlackCaller) GetWorkspaceChannels(ctx context.Context, token secret.MaskableString) ([]slack.Channel, error)
- func (_m *SlackCaller) Notify(ctx context.Context, conf slack.NotificationConfig, message slack.Message) error
- type SlackCaller_ExchangeAuth_Call
- func (_c *SlackCaller_ExchangeAuth_Call) Return(_a0 slack.Credential, _a1 error) *SlackCaller_ExchangeAuth_Call
- func (_c *SlackCaller_ExchangeAuth_Call) Run(...) *SlackCaller_ExchangeAuth_Call
- func (_c *SlackCaller_ExchangeAuth_Call) RunAndReturn(run func(context.Context, string, string, string) (slack.Credential, error)) *SlackCaller_ExchangeAuth_Call
- type SlackCaller_Expecter
- func (_e *SlackCaller_Expecter) ExchangeAuth(ctx interface{}, authCode interface{}, clientID interface{}, ...) *SlackCaller_ExchangeAuth_Call
- func (_e *SlackCaller_Expecter) GetWorkspaceChannels(ctx interface{}, token interface{}) *SlackCaller_GetWorkspaceChannels_Call
- func (_e *SlackCaller_Expecter) Notify(ctx interface{}, conf interface{}, message interface{}) *SlackCaller_Notify_Call
- type SlackCaller_GetWorkspaceChannels_Call
- func (_c *SlackCaller_GetWorkspaceChannels_Call) Return(_a0 []slack.Channel, _a1 error) *SlackCaller_GetWorkspaceChannels_Call
- func (_c *SlackCaller_GetWorkspaceChannels_Call) Run(run func(ctx context.Context, token secret.MaskableString)) *SlackCaller_GetWorkspaceChannels_Call
- func (_c *SlackCaller_GetWorkspaceChannels_Call) RunAndReturn(run func(context.Context, secret.MaskableString) ([]slack.Channel, error)) *SlackCaller_GetWorkspaceChannels_Call
- type SlackCaller_Notify_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryptor ¶
Encryptor is an autogenerated mock type for the Encryptor type
func NewEncryptor ¶
func NewEncryptor(t mockConstructorTestingTNewEncryptor) *Encryptor
NewEncryptor creates a new instance of Encryptor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Encryptor) Decrypt ¶
func (_m *Encryptor) Decrypt(str secret.MaskableString) (secret.MaskableString, error)
Decrypt provides a mock function with given fields: str
func (*Encryptor) EXPECT ¶
func (_m *Encryptor) EXPECT() *Encryptor_Expecter
func (*Encryptor) Encrypt ¶
func (_m *Encryptor) Encrypt(str secret.MaskableString) (secret.MaskableString, error)
Encrypt provides a mock function with given fields: str
type Encryptor_Decrypt_Call ¶
Encryptor_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*Encryptor_Decrypt_Call) Return ¶
func (_c *Encryptor_Decrypt_Call) Return(_a0 secret.MaskableString, _a1 error) *Encryptor_Decrypt_Call
func (*Encryptor_Decrypt_Call) Run ¶
func (_c *Encryptor_Decrypt_Call) Run(run func(str secret.MaskableString)) *Encryptor_Decrypt_Call
func (*Encryptor_Decrypt_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Encryptor_Decrypt_Call) RunAndReturn(run func(secret.MaskableString) (secret.MaskableString, error)) *Encryptor_Decrypt_Call
type Encryptor_Encrypt_Call ¶
Encryptor_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'
func (*Encryptor_Encrypt_Call) Return ¶
func (_c *Encryptor_Encrypt_Call) Return(_a0 secret.MaskableString, _a1 error) *Encryptor_Encrypt_Call
func (*Encryptor_Encrypt_Call) Run ¶
func (_c *Encryptor_Encrypt_Call) Run(run func(str secret.MaskableString)) *Encryptor_Encrypt_Call
func (*Encryptor_Encrypt_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Encryptor_Encrypt_Call) RunAndReturn(run func(secret.MaskableString) (secret.MaskableString, error)) *Encryptor_Encrypt_Call
type Encryptor_Expecter ¶
type Encryptor_Expecter struct {
// contains filtered or unexported fields
}
func (*Encryptor_Expecter) Decrypt ¶
func (_e *Encryptor_Expecter) Decrypt(str interface{}) *Encryptor_Decrypt_Call
Decrypt is a helper method to define mock.On call
- str secret.MaskableString
func (*Encryptor_Expecter) Encrypt ¶
func (_e *Encryptor_Expecter) Encrypt(str interface{}) *Encryptor_Encrypt_Call
Encrypt is a helper method to define mock.On call
- str secret.MaskableString
type GoSlackCaller ¶
GoSlackCaller is an autogenerated mock type for the GoSlackCaller type
func NewGoSlackCaller ¶
func NewGoSlackCaller(t mockConstructorTestingTNewGoSlackCaller) *GoSlackCaller
NewGoSlackCaller creates a new instance of GoSlackCaller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GoSlackCaller) EXPECT ¶
func (_m *GoSlackCaller) EXPECT() *GoSlackCaller_Expecter
func (*GoSlackCaller) GetConversationsForUserContext ¶
func (_m *GoSlackCaller) GetConversationsForUserContext(ctx context.Context, params *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)
GetConversationsForUserContext provides a mock function with given fields: ctx, params
func (*GoSlackCaller) GetUserByEmailContext ¶
func (_m *GoSlackCaller) GetUserByEmailContext(ctx context.Context, email string) (*slack.User, error)
GetUserByEmailContext provides a mock function with given fields: ctx, email
type GoSlackCaller_Expecter ¶
type GoSlackCaller_Expecter struct {
// contains filtered or unexported fields
}
func (*GoSlackCaller_Expecter) GetConversationsForUserContext ¶
func (_e *GoSlackCaller_Expecter) GetConversationsForUserContext(ctx interface{}, params interface{}) *GoSlackCaller_GetConversationsForUserContext_Call
GetConversationsForUserContext is a helper method to define mock.On call
- ctx context.Context
- params *slack.GetConversationsForUserParameters
func (*GoSlackCaller_Expecter) GetUserByEmailContext ¶
func (_e *GoSlackCaller_Expecter) GetUserByEmailContext(ctx interface{}, email interface{}) *GoSlackCaller_GetUserByEmailContext_Call
GetUserByEmailContext is a helper method to define mock.On call
- ctx context.Context
- email string
func (*GoSlackCaller_Expecter) SendMessageContext ¶
func (_e *GoSlackCaller_Expecter) SendMessageContext(ctx interface{}, channel interface{}, options ...interface{}) *GoSlackCaller_SendMessageContext_Call
SendMessageContext is a helper method to define mock.On call
- ctx context.Context
- channel string
- options ...slack.MsgOption
type GoSlackCaller_GetConversationsForUserContext_Call ¶
GoSlackCaller_GetConversationsForUserContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConversationsForUserContext'
func (*GoSlackCaller_GetConversationsForUserContext_Call) Return ¶
func (_c *GoSlackCaller_GetConversationsForUserContext_Call) Return(channels []slack.Channel, nextCursor string, err error) *GoSlackCaller_GetConversationsForUserContext_Call
func (*GoSlackCaller_GetConversationsForUserContext_Call) Run ¶
func (_c *GoSlackCaller_GetConversationsForUserContext_Call) Run(run func(ctx context.Context, params *slack.GetConversationsForUserParameters)) *GoSlackCaller_GetConversationsForUserContext_Call
func (*GoSlackCaller_GetConversationsForUserContext_Call) RunAndReturn ¶ added in v0.6.1
func (_c *GoSlackCaller_GetConversationsForUserContext_Call) RunAndReturn(run func(context.Context, *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)) *GoSlackCaller_GetConversationsForUserContext_Call
type GoSlackCaller_GetUserByEmailContext_Call ¶
GoSlackCaller_GetUserByEmailContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByEmailContext'
func (*GoSlackCaller_GetUserByEmailContext_Call) Return ¶
func (_c *GoSlackCaller_GetUserByEmailContext_Call) Return(_a0 *slack.User, _a1 error) *GoSlackCaller_GetUserByEmailContext_Call
func (*GoSlackCaller_GetUserByEmailContext_Call) Run ¶
func (_c *GoSlackCaller_GetUserByEmailContext_Call) Run(run func(ctx context.Context, email string)) *GoSlackCaller_GetUserByEmailContext_Call
func (*GoSlackCaller_GetUserByEmailContext_Call) RunAndReturn ¶ added in v0.6.1
func (_c *GoSlackCaller_GetUserByEmailContext_Call) RunAndReturn(run func(context.Context, string) (*slack.User, error)) *GoSlackCaller_GetUserByEmailContext_Call
type GoSlackCaller_SendMessageContext_Call ¶
GoSlackCaller_SendMessageContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMessageContext'
func (*GoSlackCaller_SendMessageContext_Call) Return ¶
func (_c *GoSlackCaller_SendMessageContext_Call) Return(_a0 string, _a1 string, _a2 string, _a3 error) *GoSlackCaller_SendMessageContext_Call
func (*GoSlackCaller_SendMessageContext_Call) Run ¶
func (_c *GoSlackCaller_SendMessageContext_Call) Run(run func(ctx context.Context, channel string, options ...slack.MsgOption)) *GoSlackCaller_SendMessageContext_Call
func (*GoSlackCaller_SendMessageContext_Call) RunAndReturn ¶ added in v0.6.1
type SlackCaller ¶
SlackCaller is an autogenerated mock type for the SlackCaller type
func NewSlackCaller ¶
func NewSlackCaller(t mockConstructorTestingTNewSlackCaller) *SlackCaller
NewSlackCaller creates a new instance of SlackCaller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SlackCaller) EXPECT ¶
func (_m *SlackCaller) EXPECT() *SlackCaller_Expecter
func (*SlackCaller) ExchangeAuth ¶
func (_m *SlackCaller) ExchangeAuth(ctx context.Context, authCode string, clientID string, clientSecret string) (slack.Credential, error)
ExchangeAuth provides a mock function with given fields: ctx, authCode, clientID, clientSecret
func (*SlackCaller) GetWorkspaceChannels ¶
func (_m *SlackCaller) GetWorkspaceChannels(ctx context.Context, token secret.MaskableString) ([]slack.Channel, error)
GetWorkspaceChannels provides a mock function with given fields: ctx, token
func (*SlackCaller) Notify ¶
func (_m *SlackCaller) Notify(ctx context.Context, conf slack.NotificationConfig, message slack.Message) error
Notify provides a mock function with given fields: ctx, conf, message
type SlackCaller_ExchangeAuth_Call ¶
SlackCaller_ExchangeAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExchangeAuth'
func (*SlackCaller_ExchangeAuth_Call) Return ¶
func (_c *SlackCaller_ExchangeAuth_Call) Return(_a0 slack.Credential, _a1 error) *SlackCaller_ExchangeAuth_Call
func (*SlackCaller_ExchangeAuth_Call) Run ¶
func (_c *SlackCaller_ExchangeAuth_Call) Run(run func(ctx context.Context, authCode string, clientID string, clientSecret string)) *SlackCaller_ExchangeAuth_Call
func (*SlackCaller_ExchangeAuth_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SlackCaller_ExchangeAuth_Call) RunAndReturn(run func(context.Context, string, string, string) (slack.Credential, error)) *SlackCaller_ExchangeAuth_Call
type SlackCaller_Expecter ¶
type SlackCaller_Expecter struct {
// contains filtered or unexported fields
}
func (*SlackCaller_Expecter) ExchangeAuth ¶
func (_e *SlackCaller_Expecter) ExchangeAuth(ctx interface{}, authCode interface{}, clientID interface{}, clientSecret interface{}) *SlackCaller_ExchangeAuth_Call
ExchangeAuth is a helper method to define mock.On call
- ctx context.Context
- authCode string
- clientID string
- clientSecret string
func (*SlackCaller_Expecter) GetWorkspaceChannels ¶
func (_e *SlackCaller_Expecter) GetWorkspaceChannels(ctx interface{}, token interface{}) *SlackCaller_GetWorkspaceChannels_Call
GetWorkspaceChannels is a helper method to define mock.On call
- ctx context.Context
- token secret.MaskableString
func (*SlackCaller_Expecter) Notify ¶
func (_e *SlackCaller_Expecter) Notify(ctx interface{}, conf interface{}, message interface{}) *SlackCaller_Notify_Call
Notify is a helper method to define mock.On call
- ctx context.Context
- conf slack.NotificationConfig
- message slack.Message
type SlackCaller_GetWorkspaceChannels_Call ¶
SlackCaller_GetWorkspaceChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkspaceChannels'
func (*SlackCaller_GetWorkspaceChannels_Call) Return ¶
func (_c *SlackCaller_GetWorkspaceChannels_Call) Return(_a0 []slack.Channel, _a1 error) *SlackCaller_GetWorkspaceChannels_Call
func (*SlackCaller_GetWorkspaceChannels_Call) Run ¶
func (_c *SlackCaller_GetWorkspaceChannels_Call) Run(run func(ctx context.Context, token secret.MaskableString)) *SlackCaller_GetWorkspaceChannels_Call
func (*SlackCaller_GetWorkspaceChannels_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SlackCaller_GetWorkspaceChannels_Call) RunAndReturn(run func(context.Context, secret.MaskableString) ([]slack.Channel, error)) *SlackCaller_GetWorkspaceChannels_Call
type SlackCaller_Notify_Call ¶
SlackCaller_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
func (*SlackCaller_Notify_Call) Return ¶
func (_c *SlackCaller_Notify_Call) Return(_a0 error) *SlackCaller_Notify_Call
func (*SlackCaller_Notify_Call) Run ¶
func (_c *SlackCaller_Notify_Call) Run(run func(ctx context.Context, conf slack.NotificationConfig, message slack.Message)) *SlackCaller_Notify_Call
func (*SlackCaller_Notify_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SlackCaller_Notify_Call) RunAndReturn(run func(context.Context, slack.NotificationConfig, slack.Message) error) *SlackCaller_Notify_Call