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 LarkCaller
- type LarkCaller_Expecter
- type LarkCaller_GetWorkspaceChannels_Call
- func (_c *LarkCaller_GetWorkspaceChannels_Call) Return(_a0 []lark.Channel, _a1 error) *LarkCaller_GetWorkspaceChannels_Call
- func (_c *LarkCaller_GetWorkspaceChannels_Call) Run(run func(ctx context.Context, clientID secret.MaskableString, ...)) *LarkCaller_GetWorkspaceChannels_Call
- func (_c *LarkCaller_GetWorkspaceChannels_Call) RunAndReturn(...) *LarkCaller_GetWorkspaceChannels_Call
- type LarkCaller_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 ¶
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. The first argument is typically a *testing.T value.
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 ¶
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 ¶
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 LarkCaller ¶
LarkCaller is an autogenerated mock type for the LarkCaller type
func NewLarkCaller ¶
func NewLarkCaller(t interface { mock.TestingT Cleanup(func()) }) *LarkCaller
NewLarkCaller creates a new instance of LarkCaller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*LarkCaller) EXPECT ¶
func (_m *LarkCaller) EXPECT() *LarkCaller_Expecter
func (*LarkCaller) GetWorkspaceChannels ¶
func (_m *LarkCaller) GetWorkspaceChannels(ctx context.Context, clientID secret.MaskableString, clientSecret secret.MaskableString) ([]lark.Channel, error)
GetWorkspaceChannels provides a mock function with given fields: ctx, clientID, clientSecret
func (*LarkCaller) Notify ¶
func (_m *LarkCaller) Notify(ctx context.Context, conf lark.NotificationConfig, message lark.Message) error
Notify provides a mock function with given fields: ctx, conf, message
type LarkCaller_Expecter ¶
type LarkCaller_Expecter struct {
// contains filtered or unexported fields
}
func (*LarkCaller_Expecter) GetWorkspaceChannels ¶
func (_e *LarkCaller_Expecter) GetWorkspaceChannels(ctx interface{}, clientID interface{}, clientSecret interface{}) *LarkCaller_GetWorkspaceChannels_Call
GetWorkspaceChannels is a helper method to define mock.On call
- ctx context.Context
- clientID secret.MaskableString
- clientSecret secret.MaskableString
func (*LarkCaller_Expecter) Notify ¶
func (_e *LarkCaller_Expecter) Notify(ctx interface{}, conf interface{}, message interface{}) *LarkCaller_Notify_Call
Notify is a helper method to define mock.On call
- ctx context.Context
- conf lark.NotificationConfig
- message lark.Message
type LarkCaller_GetWorkspaceChannels_Call ¶
LarkCaller_GetWorkspaceChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkspaceChannels'
func (*LarkCaller_GetWorkspaceChannels_Call) Return ¶
func (_c *LarkCaller_GetWorkspaceChannels_Call) Return(_a0 []lark.Channel, _a1 error) *LarkCaller_GetWorkspaceChannels_Call
func (*LarkCaller_GetWorkspaceChannels_Call) Run ¶
func (_c *LarkCaller_GetWorkspaceChannels_Call) Run(run func(ctx context.Context, clientID secret.MaskableString, clientSecret secret.MaskableString)) *LarkCaller_GetWorkspaceChannels_Call
func (*LarkCaller_GetWorkspaceChannels_Call) RunAndReturn ¶
func (_c *LarkCaller_GetWorkspaceChannels_Call) RunAndReturn(run func(context.Context, secret.MaskableString, secret.MaskableString) ([]lark.Channel, error)) *LarkCaller_GetWorkspaceChannels_Call
type LarkCaller_Notify_Call ¶
LarkCaller_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
func (*LarkCaller_Notify_Call) Return ¶
func (_c *LarkCaller_Notify_Call) Return(_a0 error) *LarkCaller_Notify_Call
func (*LarkCaller_Notify_Call) Run ¶
func (_c *LarkCaller_Notify_Call) Run(run func(ctx context.Context, conf lark.NotificationConfig, message lark.Message)) *LarkCaller_Notify_Call
func (*LarkCaller_Notify_Call) RunAndReturn ¶
func (_c *LarkCaller_Notify_Call) RunAndReturn(run func(context.Context, lark.NotificationConfig, lark.Message) error) *LarkCaller_Notify_Call