msp

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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