mgmt

package
v0.4.33 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//KeyDivider is used to separate key parts
	KeyDivider = "!"
)

Variables

This section is empty.

Functions

func ConfigKeyToString

func ConfigKeyToString(configKey api.ConfigKey) (string, errors.Error)

ConfigKeyToString converts configKey to string

func CreateConfigKey

func CreateConfigKey(mspID, peerID, appName, appVersion, componentName, componentVersion string) (api.ConfigKey, errors.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

func ParseConfigMessage(configData []byte, txID string) (map[api.ConfigKey][]byte, errors.Error)

ParseConfigMessage unmarshals supplied config message and returns map[compositekey]configurationbytes to the caller

func StringToConfigKey

func StringToConfigKey(key string) (api.ConfigKey, errors.Error)

StringToConfigKey converts string to ConfigKey{}

func ValidateConfigKey

func ValidateConfigKey(configKey api.ConfigKey) errors.Error

ValidateConfigKey validates component parts of ConfigKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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