Documentation ¶
Index ¶
- Variables
- func Clone(src []byte) []byte
- func DecodeBase64(in string) ([]byte, error)
- func DirEmpty(path string) (bool, error)
- func DirExists(path string) (bool, error)
- func DirMissingOrEmpty(path string) (bool, error)
- func EncodeBase64(in []byte) string
- func ErrToString(err error) string
- func FileMissing(path string, name string) (bool, error)
- func FilePathMissing(path string) (bool, error)
- func IntArrayEquals(a []int, b []int) bool
- type NodeConfiguration
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRegistrationRequired Registration to the Membership Service required. ErrRegistrationRequired = errors.New("Registration to the Membership Service required.") // ErrNotInitialized Initialization required ErrNotInitialized = errors.New("Initialization required.") // ErrAlreadyInitialized Already initialized ErrAlreadyInitialized = errors.New("Already initialized.") // ErrAlreadyRegistered Already registered ErrAlreadyRegistered = errors.New("Already registered.") // ErrTransactionMissingCert Transaction missing certificate or signature ErrTransactionMissingCert = errors.New("Transaction missing certificate or signature.") // ErrInvalidTransactionSignature Invalid Transaction Signature ErrInvalidTransactionSignature = errors.New("Invalid Transaction Signature.") // ErrTransactionCertificate Missing Transaction Certificate ErrTransactionCertificate = errors.New("Missing Transaction Certificate.") // ErrTransactionSignature Missing Transaction Signature ErrTransactionSignature = errors.New("Missing Transaction Signature.") // ErrInvalidSignature Invalid Signature ErrInvalidSignature = errors.New("Invalid Signature.") // ErrInvalidKey Invalid key ErrInvalidKey = errors.New("Invalid key.") // ErrInvalidReference Invalid reference ErrInvalidReference = errors.New("Invalid reference.") // ErrNilArgument Invalid reference ErrNilArgument = errors.New("Nil argument.") // ErrNotImplemented Not implemented ErrNotImplemented = errors.New("Not implemented.") // ErrKeyStoreAlreadyInitialized Keystore already Initilized ErrKeyStoreAlreadyInitialized = errors.New("Keystore already Initilized.") // ErrEncrypt Encryption failed ErrEncrypt = errors.New("Encryption failed.") // ErrDecrypt Decryption failed ErrDecrypt = errors.New("Decryption failed.") // ErrDifferentChaincodeID ChaincodeIDs are different ErrDifferentChaincodeID = errors.New("ChaincodeIDs are different.") // ErrDifferrentConfidentialityProtocolVersion different confidentiality protocol versions ErrDifferrentConfidentialityProtocolVersion = errors.New("Confidentiality protocol versions are different.") // ErrInvalidConfidentialityLevel Invalid confidentiality level ErrInvalidConfidentialityLevel = errors.New("Invalid confidentiality level") // ErrInvalidConfidentialityProtocol Invalid confidentiality level ErrInvalidConfidentialityProtocol = errors.New("Invalid confidentiality protocol") // ErrInvalidTransactionType Invalid transaction type ErrInvalidTransactionType = errors.New("Invalid transaction type") // ErrInvalidProtocolVersion Invalid protocol version ErrInvalidProtocolVersion = errors.New("Invalid protocol version") )
Functions ¶
func DirMissingOrEmpty ¶
DirMissingOrEmpty checks is a directory is missin or empty
func ErrToString ¶
ErrToString converts and error to a string. If the error is nil, it returns the string "<clean>"
func FileMissing ¶
FileMissing checks if a file is missing
func FilePathMissing ¶
FilePathMissing returns true if the path is missing, false otherwise.
func IntArrayEquals ¶
IntArrayEquals checks if the arrays of ints are the same
Types ¶
type NodeConfiguration ¶
NodeConfiguration used for testing
func (*NodeConfiguration) GetEnrollmentID ¶
func (conf *NodeConfiguration) GetEnrollmentID() string
GetEnrollmentID returns the enrollment ID
func (*NodeConfiguration) GetEnrollmentPWD ¶
func (conf *NodeConfiguration) GetEnrollmentPWD() string
GetEnrollmentPWD returns the enrollment PWD
Click to show internal directories.
Click to hide internal directories.