Documentation ¶
Index ¶
- Constants
- func TemplateGroupMSP(configPath []string, mspConfig *mspprotos.MSPConfig) *cb.ConfigGroup
- func TemplateGroupMSPWithAdminRolePrincipal(configPath []string, mspConfig *mspprotos.MSPConfig, admin bool) *cb.ConfigGroup
- type MSPConfigHandler
- func (bh *MSPConfigHandler) BeginConfig(tx interface{})
- func (bh *MSPConfigHandler) CommitProposals(tx interface{})
- func (bh *MSPConfigHandler) PreCommit(tx interface{}) error
- func (bh *MSPConfigHandler) ProposeMSP(tx interface{}, mspConfig *mspprotos.MSPConfig) (msp.MSP, error)
- func (bh *MSPConfigHandler) RollbackProposals(tx interface{})
Constants ¶
View Source
const ( // ReadersPolicyKey is the key used for the read policy ReadersPolicyKey = "Readers" // WritersPolicyKey is the key used for the read policy WritersPolicyKey = "Writers" // AdminsPolicyKey is the key used for the read policy AdminsPolicyKey = "Admins" // MSPKey is the org key used for MSP configuration MSPKey = "MSP" )
Variables ¶
This section is empty.
Functions ¶
func TemplateGroupMSP ¶
func TemplateGroupMSP(configPath []string, mspConfig *mspprotos.MSPConfig) *cb.ConfigGroup
TemplateGroupMSP creates an MSP ConfigValue at the given configPath
func TemplateGroupMSPWithAdminRolePrincipal ¶
func TemplateGroupMSPWithAdminRolePrincipal(configPath []string, mspConfig *mspprotos.MSPConfig, admin bool) *cb.ConfigGroup
TemplateGroupMSPWithAdminRolePrincipal creates an MSP ConfigValue at the given configPath with Admin policy of role type ADMIN if admin==true or MEMBER otherwise
Types ¶
type MSPConfigHandler ¶
type MSPConfigHandler struct { msp.MSPManager // contains filtered or unexported fields }
MSPConfigHandler
func NewMSPConfigHandler ¶
func NewMSPConfigHandler() *MSPConfigHandler
func (*MSPConfigHandler) BeginConfig ¶
func (bh *MSPConfigHandler) BeginConfig(tx interface{})
BeginConfig called when a config proposal is begun
func (*MSPConfigHandler) CommitProposals ¶
func (bh *MSPConfigHandler) CommitProposals(tx interface{})
CommitProposals called when a config proposal is committed
func (*MSPConfigHandler) PreCommit ¶
func (bh *MSPConfigHandler) PreCommit(tx interface{}) error
PreCommit instantiates the MSP manager
func (*MSPConfigHandler) ProposeMSP ¶
func (bh *MSPConfigHandler) ProposeMSP(tx interface{}, mspConfig *mspprotos.MSPConfig) (msp.MSP, error)
ProposeValue called when config is added to a proposal
func (*MSPConfigHandler) RollbackProposals ¶
func (bh *MSPConfigHandler) RollbackProposals(tx interface{})
RollbackProposals called when a config proposal is abandoned
Click to show internal directories.
Click to hide internal directories.