Documentation ¶
Overview ¶
Package crypto contains encrypting and decrypting reader.
Package crypto is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
type Crypto interface { // Encrypt returns reader with encrypted src data and size of encrypted data. Encrypt(io.Reader) (io.Reader, int64, error) // Decrypt returns reader with decrypted src data. Decrypt(io.Reader) (io.Reader, error) }
Crypto provide Reader and Writer wrappers.
type MockCrypto ¶
type MockCrypto struct {
// contains filtered or unexported fields
}
MockCrypto is a mock of Crypto interface
func NewMockCrypto ¶
func NewMockCrypto(ctrl *gomock.Controller) *MockCrypto
NewMockCrypto creates a new mock instance
func (*MockCrypto) EXPECT ¶
func (m *MockCrypto) EXPECT() *MockCryptoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockCryptoMockRecorder ¶
type MockCryptoMockRecorder struct {
// contains filtered or unexported fields
}
MockCryptoMockRecorder is the mock recorder for MockCrypto
func (*MockCryptoMockRecorder) Decrypt ¶
func (mr *MockCryptoMockRecorder) Decrypt(arg0 interface{}) *gomock.Call
Decrypt indicates an expected call of Decrypt
func (*MockCryptoMockRecorder) Encrypt ¶
func (mr *MockCryptoMockRecorder) Encrypt(arg0 interface{}) *gomock.Call
Encrypt indicates an expected call of Encrypt
Click to show internal directories.
Click to hide internal directories.