Documentation ¶
Overview ¶
Package mock_crypto is a generated GoMock package.
Index ¶
- type MockEngine
- func (m *MockEngine) DecryptOAuthToken(encryptedToken crypto.EncryptedData) (oauth2.Token, error)
- func (m *MockEngine) DecryptString(encryptedString crypto.EncryptedData) (string, error)
- func (m *MockEngine) EXPECT() *MockEngineMockRecorder
- func (m *MockEngine) EncryptOAuthToken(token *oauth2.Token) (crypto.EncryptedData, error)
- func (m *MockEngine) EncryptString(data string) (crypto.EncryptedData, error)
- type MockEngineMockRecorder
- func (mr *MockEngineMockRecorder) DecryptOAuthToken(encryptedToken any) *gomock.Call
- func (mr *MockEngineMockRecorder) DecryptString(encryptedString any) *gomock.Call
- func (mr *MockEngineMockRecorder) EncryptOAuthToken(token any) *gomock.Call
- func (mr *MockEngineMockRecorder) EncryptString(data any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEngine ¶
type MockEngine struct {
// contains filtered or unexported fields
}
MockEngine is a mock of Engine interface.
func NewMockEngine ¶
func NewMockEngine(ctrl *gomock.Controller) *MockEngine
NewMockEngine creates a new mock instance.
func (*MockEngine) DecryptOAuthToken ¶
func (m *MockEngine) DecryptOAuthToken(encryptedToken crypto.EncryptedData) (oauth2.Token, error)
DecryptOAuthToken mocks base method.
func (*MockEngine) DecryptString ¶
func (m *MockEngine) DecryptString(encryptedString crypto.EncryptedData) (string, error)
DecryptString mocks base method.
func (*MockEngine) EXPECT ¶
func (m *MockEngine) EXPECT() *MockEngineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEngine) EncryptOAuthToken ¶
func (m *MockEngine) EncryptOAuthToken(token *oauth2.Token) (crypto.EncryptedData, error)
EncryptOAuthToken mocks base method.
func (*MockEngine) EncryptString ¶
func (m *MockEngine) EncryptString(data string) (crypto.EncryptedData, error)
EncryptString mocks base method.
type MockEngineMockRecorder ¶
type MockEngineMockRecorder struct {
// contains filtered or unexported fields
}
MockEngineMockRecorder is the mock recorder for MockEngine.
func (*MockEngineMockRecorder) DecryptOAuthToken ¶
func (mr *MockEngineMockRecorder) DecryptOAuthToken(encryptedToken any) *gomock.Call
DecryptOAuthToken indicates an expected call of DecryptOAuthToken.
func (*MockEngineMockRecorder) DecryptString ¶
func (mr *MockEngineMockRecorder) DecryptString(encryptedString any) *gomock.Call
DecryptString indicates an expected call of DecryptString.
func (*MockEngineMockRecorder) EncryptOAuthToken ¶
func (mr *MockEngineMockRecorder) EncryptOAuthToken(token any) *gomock.Call
EncryptOAuthToken indicates an expected call of EncryptOAuthToken.
func (*MockEngineMockRecorder) EncryptString ¶
func (mr *MockEngineMockRecorder) EncryptString(data any) *gomock.Call
EncryptString indicates an expected call of EncryptString.