Documentation
¶
Index ¶
- type MockAuditSigner
- type MockAuditSigner_Expecter
- type MockAuditSigner_Sign_Call
- func (_c *MockAuditSigner_Sign_Call) Return(bytes []byte, err error) *MockAuditSigner_Sign_Call
- func (_c *MockAuditSigner_Sign_Call) Run(run func(kekKey []byte, log *domain.AuditLog)) *MockAuditSigner_Sign_Call
- func (_c *MockAuditSigner_Sign_Call) RunAndReturn(run func(kekKey []byte, log *domain.AuditLog) ([]byte, error)) *MockAuditSigner_Sign_Call
- type MockAuditSigner_Verify_Call
- func (_c *MockAuditSigner_Verify_Call) Return(err error) *MockAuditSigner_Verify_Call
- func (_c *MockAuditSigner_Verify_Call) Run(run func(kekKey []byte, log *domain.AuditLog)) *MockAuditSigner_Verify_Call
- func (_c *MockAuditSigner_Verify_Call) RunAndReturn(run func(kekKey []byte, log *domain.AuditLog) error) *MockAuditSigner_Verify_Call
- type MockSecretService
- func (_mock *MockSecretService) CompareSecret(plainSecret string, hashedSecret string) bool
- func (_m *MockSecretService) EXPECT() *MockSecretService_Expecter
- func (_mock *MockSecretService) GenerateSecret() (string, string, error)
- func (_mock *MockSecretService) HashSecret(plainSecret string) (string, error)
- type MockSecretService_CompareSecret_Call
- func (_c *MockSecretService_CompareSecret_Call) Return(b bool) *MockSecretService_CompareSecret_Call
- func (_c *MockSecretService_CompareSecret_Call) Run(run func(plainSecret string, hashedSecret string)) *MockSecretService_CompareSecret_Call
- func (_c *MockSecretService_CompareSecret_Call) RunAndReturn(run func(plainSecret string, hashedSecret string) bool) *MockSecretService_CompareSecret_Call
- type MockSecretService_Expecter
- func (_e *MockSecretService_Expecter) CompareSecret(plainSecret interface{}, hashedSecret interface{}) *MockSecretService_CompareSecret_Call
- func (_e *MockSecretService_Expecter) GenerateSecret() *MockSecretService_GenerateSecret_Call
- func (_e *MockSecretService_Expecter) HashSecret(plainSecret interface{}) *MockSecretService_HashSecret_Call
- type MockSecretService_GenerateSecret_Call
- func (_c *MockSecretService_GenerateSecret_Call) Return(plainSecret string, hashedSecret string, error1 error) *MockSecretService_GenerateSecret_Call
- func (_c *MockSecretService_GenerateSecret_Call) Run(run func()) *MockSecretService_GenerateSecret_Call
- func (_c *MockSecretService_GenerateSecret_Call) RunAndReturn(run func() (string, string, error)) *MockSecretService_GenerateSecret_Call
- type MockSecretService_HashSecret_Call
- func (_c *MockSecretService_HashSecret_Call) Return(hashedSecret string, error1 error) *MockSecretService_HashSecret_Call
- func (_c *MockSecretService_HashSecret_Call) Run(run func(plainSecret string)) *MockSecretService_HashSecret_Call
- func (_c *MockSecretService_HashSecret_Call) RunAndReturn(run func(plainSecret string) (string, error)) *MockSecretService_HashSecret_Call
- type MockTokenService
- type MockTokenService_Expecter
- type MockTokenService_GenerateToken_Call
- func (_c *MockTokenService_GenerateToken_Call) Return(plainToken string, tokenHash string, error1 error) *MockTokenService_GenerateToken_Call
- func (_c *MockTokenService_GenerateToken_Call) Run(run func()) *MockTokenService_GenerateToken_Call
- func (_c *MockTokenService_GenerateToken_Call) RunAndReturn(run func() (string, string, error)) *MockTokenService_GenerateToken_Call
- type MockTokenService_HashToken_Call
- func (_c *MockTokenService_HashToken_Call) Return(s string) *MockTokenService_HashToken_Call
- func (_c *MockTokenService_HashToken_Call) Run(run func(plainToken string)) *MockTokenService_HashToken_Call
- func (_c *MockTokenService_HashToken_Call) RunAndReturn(run func(plainToken string) string) *MockTokenService_HashToken_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuditSigner ¶ added in v0.27.0
MockAuditSigner is an autogenerated mock type for the AuditSigner type
func NewMockAuditSigner ¶ added in v0.27.0
func NewMockAuditSigner(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuditSigner
NewMockAuditSigner creates a new instance of MockAuditSigner. 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 (*MockAuditSigner) EXPECT ¶ added in v0.27.0
func (_m *MockAuditSigner) EXPECT() *MockAuditSigner_Expecter
type MockAuditSigner_Expecter ¶ added in v0.27.0
type MockAuditSigner_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuditSigner_Expecter) Sign ¶ added in v0.27.0
func (_e *MockAuditSigner_Expecter) Sign(kekKey interface{}, log interface{}) *MockAuditSigner_Sign_Call
Sign is a helper method to define mock.On call
- kekKey []byte
- log *domain.AuditLog
func (*MockAuditSigner_Expecter) Verify ¶ added in v0.27.0
func (_e *MockAuditSigner_Expecter) Verify(kekKey interface{}, log interface{}) *MockAuditSigner_Verify_Call
Verify is a helper method to define mock.On call
- kekKey []byte
- log *domain.AuditLog
type MockAuditSigner_Sign_Call ¶ added in v0.27.0
MockAuditSigner_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'
func (*MockAuditSigner_Sign_Call) Return ¶ added in v0.27.0
func (_c *MockAuditSigner_Sign_Call) Return(bytes []byte, err error) *MockAuditSigner_Sign_Call
func (*MockAuditSigner_Sign_Call) Run ¶ added in v0.27.0
func (_c *MockAuditSigner_Sign_Call) Run(run func(kekKey []byte, log *domain.AuditLog)) *MockAuditSigner_Sign_Call
func (*MockAuditSigner_Sign_Call) RunAndReturn ¶ added in v0.27.0
func (_c *MockAuditSigner_Sign_Call) RunAndReturn(run func(kekKey []byte, log *domain.AuditLog) ([]byte, error)) *MockAuditSigner_Sign_Call
type MockAuditSigner_Verify_Call ¶ added in v0.27.0
MockAuditSigner_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'
func (*MockAuditSigner_Verify_Call) Return ¶ added in v0.27.0
func (_c *MockAuditSigner_Verify_Call) Return(err error) *MockAuditSigner_Verify_Call
func (*MockAuditSigner_Verify_Call) Run ¶ added in v0.27.0
func (_c *MockAuditSigner_Verify_Call) Run(run func(kekKey []byte, log *domain.AuditLog)) *MockAuditSigner_Verify_Call
func (*MockAuditSigner_Verify_Call) RunAndReturn ¶ added in v0.27.0
func (_c *MockAuditSigner_Verify_Call) RunAndReturn(run func(kekKey []byte, log *domain.AuditLog) error) *MockAuditSigner_Verify_Call
type MockSecretService ¶
MockSecretService is an autogenerated mock type for the SecretService type
func NewMockSecretService ¶
func NewMockSecretService(t interface {
mock.TestingT
Cleanup(func())
}) *MockSecretService
NewMockSecretService creates a new instance of MockSecretService. 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 (*MockSecretService) CompareSecret ¶
func (_mock *MockSecretService) CompareSecret(plainSecret string, hashedSecret string) bool
CompareSecret provides a mock function for the type MockSecretService
func (*MockSecretService) EXPECT ¶
func (_m *MockSecretService) EXPECT() *MockSecretService_Expecter
func (*MockSecretService) GenerateSecret ¶
func (_mock *MockSecretService) GenerateSecret() (string, string, error)
GenerateSecret provides a mock function for the type MockSecretService
func (*MockSecretService) HashSecret ¶
func (_mock *MockSecretService) HashSecret(plainSecret string) (string, error)
HashSecret provides a mock function for the type MockSecretService
type MockSecretService_CompareSecret_Call ¶
MockSecretService_CompareSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompareSecret'
func (*MockSecretService_CompareSecret_Call) Return ¶
func (_c *MockSecretService_CompareSecret_Call) Return(b bool) *MockSecretService_CompareSecret_Call
func (*MockSecretService_CompareSecret_Call) Run ¶
func (_c *MockSecretService_CompareSecret_Call) Run(run func(plainSecret string, hashedSecret string)) *MockSecretService_CompareSecret_Call
func (*MockSecretService_CompareSecret_Call) RunAndReturn ¶
func (_c *MockSecretService_CompareSecret_Call) RunAndReturn(run func(plainSecret string, hashedSecret string) bool) *MockSecretService_CompareSecret_Call
type MockSecretService_Expecter ¶
type MockSecretService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSecretService_Expecter) CompareSecret ¶
func (_e *MockSecretService_Expecter) CompareSecret(plainSecret interface{}, hashedSecret interface{}) *MockSecretService_CompareSecret_Call
CompareSecret is a helper method to define mock.On call
- plainSecret string
- hashedSecret string
func (*MockSecretService_Expecter) GenerateSecret ¶
func (_e *MockSecretService_Expecter) GenerateSecret() *MockSecretService_GenerateSecret_Call
GenerateSecret is a helper method to define mock.On call
func (*MockSecretService_Expecter) HashSecret ¶
func (_e *MockSecretService_Expecter) HashSecret(plainSecret interface{}) *MockSecretService_HashSecret_Call
HashSecret is a helper method to define mock.On call
- plainSecret string
type MockSecretService_GenerateSecret_Call ¶
MockSecretService_GenerateSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateSecret'
func (*MockSecretService_GenerateSecret_Call) Return ¶
func (_c *MockSecretService_GenerateSecret_Call) Return(plainSecret string, hashedSecret string, error1 error) *MockSecretService_GenerateSecret_Call
func (*MockSecretService_GenerateSecret_Call) Run ¶
func (_c *MockSecretService_GenerateSecret_Call) Run(run func()) *MockSecretService_GenerateSecret_Call
func (*MockSecretService_GenerateSecret_Call) RunAndReturn ¶
func (_c *MockSecretService_GenerateSecret_Call) RunAndReturn(run func() (string, string, error)) *MockSecretService_GenerateSecret_Call
type MockSecretService_HashSecret_Call ¶
MockSecretService_HashSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HashSecret'
func (*MockSecretService_HashSecret_Call) Return ¶
func (_c *MockSecretService_HashSecret_Call) Return(hashedSecret string, error1 error) *MockSecretService_HashSecret_Call
func (*MockSecretService_HashSecret_Call) Run ¶
func (_c *MockSecretService_HashSecret_Call) Run(run func(plainSecret string)) *MockSecretService_HashSecret_Call
func (*MockSecretService_HashSecret_Call) RunAndReturn ¶
func (_c *MockSecretService_HashSecret_Call) RunAndReturn(run func(plainSecret string) (string, error)) *MockSecretService_HashSecret_Call
type MockTokenService ¶ added in v0.27.0
MockTokenService is an autogenerated mock type for the TokenService type
func NewMockTokenService ¶ added in v0.27.0
func NewMockTokenService(t interface {
mock.TestingT
Cleanup(func())
}) *MockTokenService
NewMockTokenService creates a new instance of MockTokenService. 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 (*MockTokenService) EXPECT ¶ added in v0.27.0
func (_m *MockTokenService) EXPECT() *MockTokenService_Expecter
func (*MockTokenService) GenerateToken ¶ added in v0.27.0
func (_mock *MockTokenService) GenerateToken() (string, string, error)
GenerateToken provides a mock function for the type MockTokenService
func (*MockTokenService) HashToken ¶ added in v0.27.0
func (_mock *MockTokenService) HashToken(plainToken string) string
HashToken provides a mock function for the type MockTokenService
type MockTokenService_Expecter ¶ added in v0.27.0
type MockTokenService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTokenService_Expecter) GenerateToken ¶ added in v0.27.0
func (_e *MockTokenService_Expecter) GenerateToken() *MockTokenService_GenerateToken_Call
GenerateToken is a helper method to define mock.On call
func (*MockTokenService_Expecter) HashToken ¶ added in v0.27.0
func (_e *MockTokenService_Expecter) HashToken(plainToken interface{}) *MockTokenService_HashToken_Call
HashToken is a helper method to define mock.On call
- plainToken string
type MockTokenService_GenerateToken_Call ¶ added in v0.27.0
MockTokenService_GenerateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateToken'
func (*MockTokenService_GenerateToken_Call) Return ¶ added in v0.27.0
func (_c *MockTokenService_GenerateToken_Call) Return(plainToken string, tokenHash string, error1 error) *MockTokenService_GenerateToken_Call
func (*MockTokenService_GenerateToken_Call) Run ¶ added in v0.27.0
func (_c *MockTokenService_GenerateToken_Call) Run(run func()) *MockTokenService_GenerateToken_Call
func (*MockTokenService_GenerateToken_Call) RunAndReturn ¶ added in v0.27.0
func (_c *MockTokenService_GenerateToken_Call) RunAndReturn(run func() (string, string, error)) *MockTokenService_GenerateToken_Call
type MockTokenService_HashToken_Call ¶ added in v0.27.0
MockTokenService_HashToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HashToken'
func (*MockTokenService_HashToken_Call) Return ¶ added in v0.27.0
func (_c *MockTokenService_HashToken_Call) Return(s string) *MockTokenService_HashToken_Call
func (*MockTokenService_HashToken_Call) Run ¶ added in v0.27.0
func (_c *MockTokenService_HashToken_Call) Run(run func(plainToken string)) *MockTokenService_HashToken_Call
func (*MockTokenService_HashToken_Call) RunAndReturn ¶ added in v0.27.0
func (_c *MockTokenService_HashToken_Call) RunAndReturn(run func(plainToken string) string) *MockTokenService_HashToken_Call