msp

package
v1.0.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2017 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

Source Files

  • config.go
  • config_util.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL