dummy

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dummy provides the mocking functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCipher

func GetCipher(cipherKeyFilePath string) c.IEdgeCipherer

GetCipher set passphrase for ciphering

Types

type Cipher

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

Cipher has passphrase for ciphering

func (*Cipher) DecryptByte

func (ec *Cipher) DecryptByte(byteData []byte) ([]byte, error)

DecryptByte is mocking function for DecryptByte

func (*Cipher) DecryptByteToJSON

func (ec *Cipher) DecryptByteToJSON(data []byte) (jsonMap map[string]interface{}, err error)

DecryptByteToJSON is mocking function for DecryptByteToJSON

func (*Cipher) EncryptByte

func (ec *Cipher) EncryptByte(byteData []byte) ([]byte, error)

EncryptByte is mocking function for EncryptByte

func (*Cipher) EncryptJSONToByte

func (ec *Cipher) EncryptJSONToByte(jsonMap map[string]interface{}) ([]byte, error)

EncryptJSONToByte is mocking function for EncryptJSONToByte

Jump to

Keyboard shortcuts

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