mgmt

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 8 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, error)

ConfigKeyToString converts configKey to string

func CreateConfigKey

func CreateConfigKey(mspID string, peerID string, appName string) (api.ConfigKey, error)

CreateConfigKey creates key using mspID, peerID and appName

func NewConfigManager

func NewConfigManager(stub shim.ChaincodeStubInterface) api.ConfigManager

NewConfigManager returns config manager implementation

func StringToConfigKey

func StringToConfigKey(key string) (api.ConfigKey, error)

StringToConfigKey converts string to ConfigKey{}

func ValidateConfigKey

func ValidateConfigKey(configKey api.ConfigKey) 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