Documentation ¶
Index ¶
- func GetLocalMSP() msp.MSP
- func GetLocalSigningIdentityOrPanic() msp.SigningIdentity
- func GetMSPCommon(chainID string) msp.Common
- func GetMSPManagerFromBlock(cid string, b *common.Block) (msp.MSPManager, error)
- func GetManagerForChain(ChainID string) msp.MSPManager
- func GetManagerForChainIfExists(ChainID string) msp.MSPManager
- func GetManagers() map[string]msp.MSPManager
- func LoadFakeSetupWithLocalMspAndTestChainMsp(dir string) error
- func LoadLocalMsp(dir string) error
- type MSPConfigHandler
- func (bh *MSPConfigHandler) BeginConfig()
- func (bh *MSPConfigHandler) CommitConfig()
- func (bh *MSPConfigHandler) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
- func (bh *MSPConfigHandler) GetMSPManager() msp.MSPManager
- func (bh *MSPConfigHandler) ProposeConfig(configItem *common.ConfigurationItem) error
- func (bh *MSPConfigHandler) RollbackConfig()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalMSP ¶
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 ¶
GetMSPCommon returns the common interface
func GetMSPManagerFromBlock ¶
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 ¶
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 ¶
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