Documentation ¶
Overview ¶
Package reggen generates text based on regex definitions This lib is from https://github.com/lucasjones/reggen/blob/master/reggen.go
Index ¶
- Constants
- func Decrypt(key []byte, cipherText string) (plain string, err error)
- func Encrypt(key []byte, plain string) (cypherText string, err error)
- func GenAESKey(passwd string) [sha512.Size256]byte
- func GenAESKeyWithHash(passwd string, numOfHash int) [sha512.Size256]byte
- func GenerateChaincodeParams(chaincodeParamArray []string, transientMap string, ...) (chaincodeArgs []string, ...)
- func GenerateRegexString(regex string, limit int) (string, error)
- func GetComplexArgs(complexParams []string, loopIndex int) ([]string, error)
- func GetTransientMap(complexParams []string, loopIndex int) ([]byte, error)
- func NewSecureIdentity(pathToKeyAndCert string, id string, numOfHashes int) (secureSigningId msp.SigningIdentity, err error)
- type Generator
- type IntegerRange
- type Literal
- type PayloadRange
- type ProviderFactory
- func (p ProviderFactory) CreateCryptoSuiteProvider(config core.CryptoSuiteConfig) (core.CryptoSuite, error)
- func (p ProviderFactory) CreateInfraProvider(config fab.EndpointConfig) (fab.InfraProvider, error)
- func (p ProviderFactory) CreateSigningManager(cryptoProvider core.CryptoSuite) (core.SigningManager, error)
- type SequentialString
- type StringPattern
- type UUID
Constants ¶
View Source
const ( LITERAL_PARAM = "literal" UUID_PARAM = "uuid" STRING_PATTERN = "stringPattern" INTEGER_RANGE = "intRange" PAYLOAD_RANGE = "payloadRange" SEQUENTIAL_STRING = "sequentialString" TRANSIENT_MAP = "transientMap" )
Variables ¶
This section is empty.
Functions ¶
func GenAESKeyWithHash ¶
GenAESKeyWithHash will generate AES key by numOfHash of sha512 hashes
func GenerateChaincodeParams ¶
func GenerateChaincodeParams(chaincodeParamArray []string, transientMap string, dynamicTransientMapKs []string, dynamicTransientMapVs []string, iterationIndex int) (chaincodeArgs []string, transientStaticMap, transientDynamicMap map[string][]byte, err error)
Generate chaincode arguments (common chaincode) and transientMap (private data chaincode)
func NewSecureIdentity ¶
Types ¶
type IntegerRange ¶
func (*IntegerRange) GetValue ¶
func (p *IntegerRange) GetValue() (string, error)
type PayloadRange ¶
func (*PayloadRange) GetValue ¶
func (p *PayloadRange) GetValue() (string, error)
type ProviderFactory ¶
type ProviderFactory struct{}
func NewProviderFactory ¶
func NewProviderFactory() *ProviderFactory
func (ProviderFactory) CreateCryptoSuiteProvider ¶
func (p ProviderFactory) CreateCryptoSuiteProvider(config core.CryptoSuiteConfig) (core.CryptoSuite, error)
func (ProviderFactory) CreateInfraProvider ¶
func (p ProviderFactory) CreateInfraProvider(config fab.EndpointConfig) (fab.InfraProvider, error)
func (ProviderFactory) CreateSigningManager ¶
func (p ProviderFactory) CreateSigningManager(cryptoProvider core.CryptoSuite) (core.SigningManager, error)
type SequentialString ¶
type SequentialString struct {
Value string
}
func (*SequentialString) GetValue ¶
func (p *SequentialString) GetValue(loopIndex int) string
type StringPattern ¶
type StringPattern struct {
Regex string
}
func (*StringPattern) GetValue ¶
func (p *StringPattern) GetValue() (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.