membership

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FabricMSPManager

type FabricMSPManager interface {
	DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
}

type Service

type Service struct {
	// ResourcesApplyLock is used to serialize calls to CommitConfig and bundle update processing.
	ResourcesApplyLock sync.Mutex
	// ResourcesLock is used to serialize access to resources
	ResourcesLock sync.RWMutex
	// resources is used to acquire configuration bundle resources.
	ChannelResources channelconfig.Resources
}

func NewService

func NewService() *Service

func (*Service) GetMSPIDs

func (c *Service) GetMSPIDs() []string

GetMSPIDs retrieves the MSP IDs of the organizations in the current Channel configuration.

func (*Service) GetVerifier

func (c *Service) GetVerifier(identity view.Identity) (driver.Verifier, error)

func (*Service) IsValid

func (c *Service) IsValid(identity view.Identity) error

func (*Service) MSPManager

func (c *Service) MSPManager() driver.MSPManager

MSPManager returns the msp.MSPManager that reflects the current Channel configuration. Users should not memoize references to this object.

func (*Service) Resources

func (c *Service) Resources() channelconfig.Resources

Resources returns the active Channel configuration bundle.

Jump to

Keyboard shortcuts

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