mock_security

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_security is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

type MockInterface struct {
	// contains filtered or unexported fields
}

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) CompareHashPassword

func (m *MockInterface) CompareHashPassword(ctx context.Context, secretKey, hashPassword, password string) bool

CompareHashPassword mocks base method.

func (*MockInterface) CompareScryptPassword

func (m *MockInterface) CompareScryptPassword(ctx context.Context, passwordHash, salt, password string) bool

CompareScryptPassword mocks base method.

func (*MockInterface) Decrypt

func (m *MockInterface) Decrypt(ctx context.Context, passphrase string, timestamp int64, ciphertext string) (string, error)

Decrypt mocks base method.

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) Encrypt

func (m *MockInterface) Encrypt(ctx context.Context, passphrase string, timestamp int64, plaintext string) string

Encrypt mocks base method.

func (*MockInterface) HashPassword

func (m *MockInterface) HashPassword(ctx context.Context, secretKey, password string) string

HashPassword mocks base method.

func (*MockInterface) ScryptPassword

func (m *MockInterface) ScryptPassword(ctx context.Context, salt, password string) string

ScryptPassword mocks base method.

type MockInterfaceMockRecorder

type MockInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) CompareHashPassword

func (mr *MockInterfaceMockRecorder) CompareHashPassword(ctx, secretKey, hashPassword, password any) *gomock.Call

CompareHashPassword indicates an expected call of CompareHashPassword.

func (*MockInterfaceMockRecorder) CompareScryptPassword

func (mr *MockInterfaceMockRecorder) CompareScryptPassword(ctx, passwordHash, salt, password any) *gomock.Call

CompareScryptPassword indicates an expected call of CompareScryptPassword.

func (*MockInterfaceMockRecorder) Decrypt

func (mr *MockInterfaceMockRecorder) Decrypt(ctx, passphrase, timestamp, ciphertext any) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockInterfaceMockRecorder) Encrypt

func (mr *MockInterfaceMockRecorder) Encrypt(ctx, passphrase, timestamp, plaintext any) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockInterfaceMockRecorder) HashPassword

func (mr *MockInterfaceMockRecorder) HashPassword(ctx, secretKey, password any) *gomock.Call

HashPassword indicates an expected call of HashPassword.

func (*MockInterfaceMockRecorder) ScryptPassword

func (mr *MockInterfaceMockRecorder) ScryptPassword(ctx, salt, password any) *gomock.Call

ScryptPassword indicates an expected call of ScryptPassword.

Jump to

Keyboard shortcuts

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