crypto

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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) Decrypt

func (m *MockCrypto) Decrypt(arg0 io.Reader) (io.Reader, error)

Decrypt mocks base method

func (*MockCrypto) EXPECT

func (m *MockCrypto) EXPECT() *MockCryptoMockRecorder

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

func (*MockCrypto) Encrypt

func (m *MockCrypto) Encrypt(arg0 io.Reader) (io.Reader, int64, error)

Encrypt mocks base method

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

Directories

Path Synopsis
Package sio contains minio/sio implementation of crypto.Crypto interface.
Package sio contains minio/sio implementation of crypto.Crypto interface.

Jump to

Keyboard shortcuts

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