Documentation ¶
Index ¶
- Constants
- func ConfigKeyToString(configKey api.ConfigKey) (string, error)
- func CreateConfigKey(mspID, peerID, appName, appVersion, componentName, componentVersion string) (api.ConfigKey, error)
- func NewConfigManager(stub shim.ChaincodeStubInterface) api.ConfigManager
- func ParseConfigMessage(configData []byte, txID string) (map[api.ConfigKey][]byte, error)
- func StringToConfigKey(key string) (api.ConfigKey, error)
- func ValidateConfigKey(configKey api.ConfigKey) error
Constants ¶
View Source
const (
//KeyDivider is used to separate key parts
KeyDivider = "!"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigKeyToString ¶
ConfigKeyToString converts configKey to string
func CreateConfigKey ¶
func CreateConfigKey(mspID, peerID, appName, appVersion, componentName, componentVersion string) (api.ConfigKey, error)
CreateConfigKey creates key using mspID, peerID, appName, appVersion
func NewConfigManager ¶
func NewConfigManager(stub shim.ChaincodeStubInterface) api.ConfigManager
NewConfigManager returns config manager implementation
func ParseConfigMessage ¶ added in v0.2.0
ParseConfigMessage unmarshals supplied config message and returns map[compositekey]configurationbytes to the caller
func StringToConfigKey ¶
StringToConfigKey converts string to ConfigKey{}
func ValidateConfigKey ¶
ValidateConfigKey validates component parts of ConfigKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.