Documentation ¶
Index ¶
- Constants
- 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 LoadLocalMsp(dir string, bccspConfig *factory.FactoryOpts, mspID string) error
- func LoadLocalMspWithType(dir string, bccspConfig *factory.FactoryOpts, mspID, mspType string) error
- func XXXSetMSPManager(chainID string, manager msp.MSPManager)
- type DeserializersManager
- type MSPPrincipalGetter
Constants ¶
View Source
const ( Admins = "Admins" Members = "Members" )
Variables ¶
This section is empty.
Functions ¶
func GetDeserializers ¶
func GetDeserializers() map[string]msp.IdentityDeserializer
func GetIdentityDeserializer ¶
func GetIdentityDeserializer(chainID string) msp.IdentityDeserializer
func GetLocalMSP ¶
func GetLocalSigningIdentityOrPanic ¶
func GetLocalSigningIdentityOrPanic() msp.SigningIdentity
func GetManagerForChain ¶
func GetManagerForChain(chainID string) msp.MSPManager
func LoadLocalMsp ¶
func LoadLocalMsp(dir string, bccspConfig *factory.FactoryOpts, mspID string) error
func LoadLocalMspWithType ¶
func LoadLocalMspWithType(dir string, bccspConfig *factory.FactoryOpts, mspID, mspType string) error
func XXXSetMSPManager ¶
func XXXSetMSPManager(chainID string, manager msp.MSPManager)
Types ¶
type DeserializersManager ¶
type DeserializersManager interface { Deserialize(raw []byte) (*mspproto.SerializedIdentity, error) GetLocalMSPIdentifier() string GetLocalDeserializer() msp.IdentityDeserializer GetChannelDeserializers() map[string]msp.IdentityDeserializer }
func NewDeserializersManager ¶
func NewDeserializersManager() DeserializersManager
type MSPPrincipalGetter ¶
type MSPPrincipalGetter interface {
Get(role string) (*msp.MSPPrincipal, error)
}
func NewLocalMSPPrincipalGetter ¶
func NewLocalMSPPrincipalGetter() MSPPrincipalGetter
Click to show internal directories.
Click to hide internal directories.