configtx

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer

type Initializer struct {
	// HandlersVal is returned as the result of Handlers()
	HandlersVal map[cb.ConfigurationItem_ConfigurationType]configtx.Handler

	// PolicyManagerVal is returned as the result of PolicyManager()
	PolicyManagerVal policies.Manager

	// ChainConfigVal is returned as the result of ChainConfig()
	ChainConfigVal chainconfig.Descriptor

	// MSPManagerVal is returned as the result of MSPManager()
	MSPManagerVal msp.MSPManager
}

func (*Initializer) ChainConfig

func (i *Initializer) ChainConfig() chainconfig.Descriptor

Returns the ChainConfigVal

func (*Initializer) Handlers

Returns the HandlersVal

func (*Initializer) MSPManager

func (i *Initializer) MSPManager() msp.MSPManager

Returns the MSPManagerVal

func (*Initializer) PolicyManager

func (i *Initializer) PolicyManager() policies.Manager

Returns the PolicyManagerVal

type Manager

type Manager struct {
	Initializer

	// ChainIDVal is returned as the result of ChainID()
	ChainIDVal string

	// SequenceVal is returned as the result of Sequence()
	SequenceVal uint64
}

Manager is a mock implementation of configtx.Manager

func (*Manager) Apply

func (cm *Manager) Apply(configtx *cb.ConfigurationEnvelope) error

Apply panics

func (*Manager) ChainID

func (cm *Manager) ChainID() string

ConsensusType returns the ConsensusTypeVal

func (*Manager) Sequence

func (cm *Manager) Sequence() uint64

BatchSize returns the BatchSizeVal

func (*Manager) Validate

func (cm *Manager) Validate(configtx *cb.ConfigurationEnvelope) error

Validate panics

Jump to

Keyboard shortcuts

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