{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.0.6","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package msp\n\n## Constants\n\n```go\nconst (\n\t// ReadersPolicyKey is the key used for the read policy\n\tReadersPolicyKey = \"Readers\"\n\n\t// WritersPolicyKey is the key used for the read policy\n\tWritersPolicyKey = \"Writers\"\n\n\t// AdminsPolicyKey is the key used for the read policy\n\tAdminsPolicyKey = \"Admins\"\n\n\t// MSPKey is the org key used for MSP configuration\n\tMSPKey = \"MSP\"\n)\n```\n\n## Functions\n\n```go\nfunc TemplateGroupMSP(configPath []string, mspConfig *mspprotos.MSPConfig) *cb.ConfigGroup\n```\nTemplateGroupMSP creates an MSP ConfigValue at the given configPath\n\n```go\nfunc TemplateGroupMSPWithAdminRolePrincipal(configPath []string, mspConfig *mspprotos.MSPConfig, admin bool) *cb.ConfigGroup\n```\nTemplateGroupMSPWithAdminRolePrincipal creates an MSP ConfigValue at the given configPath with Admin policy of role type ADMIN if admin==true or MEMBER otherwise\n\n## Types\n\n```go\ntype MSPConfigHandler struct {\n\tmsp.MSPManager\n\t// contains filtered or unexported fields\n}\n```\nMSPConfigHandler\n\n```go\nfunc NewMSPConfigHandler() *MSPConfigHandler\n```\n\n```go\nfunc (bh *MSPConfigHandler) BeginConfig(tx interface{})\n```\nBeginConfig called when a config proposal is begun\n\n```go\nfunc (bh *MSPConfigHandler) CommitProposals(tx interface{})\n```\nCommitProposals called when a config proposal is committed\n\n```go\nfunc (bh *MSPConfigHandler) PreCommit(tx interface{}) error\n```\nPreCommit instantiates the MSP manager\n\n```go\nfunc (bh *MSPConfigHandler) ProposeMSP(tx interface{}, mspConfig *mspprotos.MSPConfig) (msp.MSP, error)\n```\nProposeValue called when config is added to a proposal\n\n```go\nfunc (bh *MSPConfigHandler) RollbackProposals(tx interface{})\n```\nRollbackProposals called when a config proposal is abandoned\n\n","path":"github.com/eric-erki/https-hyperledger.org/common/config/msp","name":"msp","synopsis":"","isRedistributable":true}
