mgmt

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Admins = "Admins"

	Members = "Members"
)

Variables

This section is empty.

Functions

func GetDeserializers

func GetDeserializers() map[string]msp.IdentityDeserializer

func GetIdentityDeserializer

func GetIdentityDeserializer(chainID string) msp.IdentityDeserializer

func GetLocalMSP

func GetLocalMSP() msp.MSP

func GetLocalSigningIdentityOrPanic

func GetLocalSigningIdentityOrPanic() msp.SigningIdentity

func GetManagerForChain

func GetManagerForChain(chainID string) msp.MSPManager

func LoadLocalMsp

func LoadLocalMsp(dir string, bccspConfig *factory.FactoryOpts, mspID string) error

func LoadLocalMspWithType

func LoadLocalMspWithType(dir string, bccspConfig *factory.FactoryOpts, mspID, mspType string) error

func XXXSetMSPManager

func XXXSetMSPManager(chainID string, manager msp.MSPManager)

Types

type DeserializersManager

type DeserializersManager interface {
	Deserialize(raw []byte) (*mspproto.SerializedIdentity, error)

	GetLocalMSPIdentifier() string

	GetLocalDeserializer() msp.IdentityDeserializer

	GetChannelDeserializers() map[string]msp.IdentityDeserializer
}

func NewDeserializersManager

func NewDeserializersManager() DeserializersManager

type MSPPrincipalGetter

type MSPPrincipalGetter interface {
	Get(role string) (*msp.MSPPrincipal, error)
}

func NewLocalMSPPrincipalGetter

func NewLocalMSPPrincipalGetter() MSPPrincipalGetter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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