Documentation ¶
Index ¶
- func GetDeserializers() map[string]msp.IdentityDeserializer
- func GetIdentityDeserializer(chainID string) msp.IdentityDeserializer
- func GetLocalMSP() msp.MSP
- func GetLocalSigningIdentityOrPanic() msp.SigningIdentity
- func GetManagerForChain(chainID string) msp.MSPManager
- func GetManagerForChainIfExists(ChainID string) msp.MSPManager
- func LoadLocalMsp(dir string, bccspConfig *factory.FactoryOpts, mspID string) error
- func XXXSetMSPManager(chainID string, manager msp.MSPManager)
- type DeserializersManager
- type MSPPrincipalGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeserializers ¶
func GetDeserializers() map[string]msp.IdentityDeserializer
GetManagers returns all the managers registered
func GetIdentityDeserializer ¶
func GetIdentityDeserializer(chainID string) msp.IdentityDeserializer
GetIdentityDeserializer returns the IdentityDeserializer for the given chain
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 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 LoadLocalMsp ¶
func LoadLocalMsp(dir string, bccspConfig *factory.FactoryOpts, mspID string) error
LoadLocalMsp loads the local MSP from the specified directory
func XXXSetMSPManager ¶
func XXXSetMSPManager(chainID string, manager msp.MSPManager)
XXXSetMSPManager is a stopgap solution to transition from the custom MSP config block parsing to the configtx.Manager interface, while preserving the problematic singleton nature of the MSP manager
Types ¶
type DeserializersManager ¶
type DeserializersManager interface { // GetLocalMSPIdentifier returns the local MSP identifier GetLocalMSPIdentifier() string // GetLocalDeserializer returns the local identity deserializer GetLocalDeserializer() msp.IdentityDeserializer // GetChannelDeserializers returns a map of the channel deserializers GetChannelDeserializers() map[string]msp.IdentityDeserializer }
DeserializersManager is a support interface to access the local and channel deserializers
func NewDeserializersManager ¶
func NewDeserializersManager() DeserializersManager
DeserializersManager returns a new instance of DeserializersManager
type MSPPrincipalGetter ¶
type MSPPrincipalGetter interface { // Get returns an MSP principal for the given role Get(role string) (*common.MSPPrincipal, error) }
func NewLocalMSPPrincipalGetter ¶
func NewLocalMSPPrincipalGetter() MSPPrincipalGetter