mgmt

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: Apache-2.0 Imports: 11 Imported by: 4,857

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalMSP

func GetLocalMSP() msp.MSP

GetLocalMSP returns the local msp (and creates it if it doesn't exist)

func GetLocalSigningIdentityOrPanic

func GetLocalSigningIdentityOrPanic() msp.SigningIdentity

GetLocalSigningIdentityOrPanic returns the local signing identity or panic in case or error

func GetMSPCommon

func GetMSPCommon(chainID string) msp.Common

GetMSPCommon returns the common interface

func GetMSPManagerFromBlock

func GetMSPManagerFromBlock(cid string, b *common.Block) (msp.MSPManager, error)

GetMSPManagerFromBlock returns a new MSP manager from a ConfigurationEnvelope Note that chainID should really be obtained from the block. Passing it for two reasons (1) efficiency (2) getting chainID from block using protos/utils will cause import cycles

func GetManagerForChain

func GetManagerForChain(ChainID string) msp.MSPManager

GetManagerForChain returns the msp manager for the supplied chain; if no such manager exists, one is created

func GetManagerForChainIfExists

func GetManagerForChainIfExists(ChainID string) msp.MSPManager

GetManagerForChainIfExists returns the MSPManager associated to ChainID it it exists

func GetManagers

func GetManagers() map[string]msp.MSPManager

GetManagers returns all the managers registered

func LoadFakeSetupWithLocalMspAndTestChainMsp

func LoadFakeSetupWithLocalMspAndTestChainMsp(dir string) error

FIXME: this is required for now because we need a local MSP and also the MSP mgr for the test chain; as soon as the code to setup chains is ready, the chain should be setup using the method below and this method should disappear

func LoadLocalMsp

func LoadLocalMsp(dir string) error

Types

type MSPConfigHandler

type MSPConfigHandler struct {
	// contains filtered or unexported fields
}

MSPConfigHandler

func (*MSPConfigHandler) BeginConfig

func (bh *MSPConfigHandler) BeginConfig()

BeginConfig called when a config proposal is begun

func (*MSPConfigHandler) CommitConfig

func (bh *MSPConfigHandler) CommitConfig()

CommitConfig called when a config proposal is committed

func (*MSPConfigHandler) DeserializeIdentity

func (bh *MSPConfigHandler) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)

DesierializeIdentity allows *MSPConfigHandler to implement the msp.Common interface

func (*MSPConfigHandler) GetMSPManager

func (bh *MSPConfigHandler) GetMSPManager() msp.MSPManager

GetMSPManager returns the currently committed MSP manager

func (*MSPConfigHandler) ProposeConfig

func (bh *MSPConfigHandler) ProposeConfig(configItem *common.ConfigurationItem) error

ProposeConfig called when config is added to a proposal

func (*MSPConfigHandler) RollbackConfig

func (bh *MSPConfigHandler) RollbackConfig()

RollbackConfig called when a config proposal is abandoned

Jump to

Keyboard shortcuts

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