{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package mgmt\n\n## Constants\n\n```go\nconst (\n\t// Admins is the label for the local MSP admins\n\tAdmins = \"Admins\"\n\n\t// Members is the label for the local MSP members\n\tMembers = \"Members\"\n)\n```\n\n## Functions\n\n```go\nfunc GetDeserializers() map[string]msp.IdentityDeserializer\n```\nGetManagers returns all the managers registered\n\n```go\nfunc GetIdentityDeserializer(chainID string) msp.IdentityDeserializer\n```\nGetIdentityDeserializer returns the IdentityDeserializer for the given chain\n\n```go\nfunc GetLocalMSP() msp.MSP\n```\nGetLocalMSP returns the local msp (and creates it if it doesn't exist)\n\n```go\nfunc GetLocalSigningIdentityOrPanic() msp.SigningIdentity\n```\nGetLocalSigningIdentityOrPanic returns the local signing identity or panic in case or error\n\n```go\nfunc GetManagerForChain(chainID string) msp.MSPManager\n```\nGetManagerForChain returns the msp manager for the supplied chain; if no such manager exists, one is created\n\n```go\nfunc LoadLocalMsp(dir string, bccspConfig *factory.FactoryOpts, mspID string) error\n```\nLoadLocalMsp loads the local MSP from the specified directory\n\n```go\nfunc LoadLocalMspWithType(dir string, bccspConfig *factory.FactoryOpts, mspID, mspType string) error\n```\nLoadLocalMspWithType loads the local MSP with the specified type from the specified directory\n\n```go\nfunc XXXSetMSPManager(chainID string, manager msp.MSPManager)\n```\nXXXSetMSPManager is a stopgap solution to transition from the custom MSP config block parsing to the channelconfig.Resources interface, while preserving the problematic singleton nature of the MSP manager\n\n## Types\n\n```go\ntype DeserializersManager interface {\n\n\t// Deserialize receives SerializedIdentity bytes and returns the unmarshaled form\n\t// of the SerializedIdentity, or error on failure\n\tDeserialize(raw []byte) (*mspproto.SerializedIdentity, error)\n\n\t// GetLocalMSPIdentifier returns the local MSP identifier\n\tGetLocalMSPIdentifier() string\n\n\t// GetLocalDeserializer returns the local identity deserializer\n\tGetLocalDeserializer() msp.IdentityDeserializer\n\n\t// GetChannelDeserializers returns a map of the channel deserializers\n\tGetChannelDeserializers() map[string]msp.IdentityDeserializer\n}\n```\nDeserializersManager is a support interface to access the local and channel deserializers\n\n```go\nfunc NewDeserializersManager() DeserializersManager\n```\nDeserializersManager returns a new instance of DeserializersManager\n\n```go\ntype MSPPrincipalGetter interface {\n\t// Get returns an MSP principal for the given role\n\tGet(role string) (*msp.MSPPrincipal, error)\n}\n```\n\n```go\nfunc NewLocalMSPPrincipalGetter() MSPPrincipalGetter\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/msp/mgmt","name":"mgmt","synopsis":"","isRedistributable":true}
