mock_crypto

package
v0.0.75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_crypto is a generated GoMock package.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL