Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + func BuildCollectionKVSKey(ccname string) string + func GetCCNameFromCollectionConfigKey(key string) string + func IsCollectionConfigKey(key string) bool + func ParseCollectionConfig(colBytes []byte) (*peer.CollectionConfigPackage, error) + func RetrieveCollectionConfigPackageFromState(cc CollectionCriteria, state State) (*peer.CollectionConfigPackage, error) + type ChaincodeInfoProvider interface + AllCollectionsConfigPkg func(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*peer.CollectionConfigPackage, error) + ChaincodeInfo func(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error) + CollectionInfo func(channelName, chaincodeName, collectionName string, ...) (*peer.StaticCollectionConfig, error) + type Collection interface + CollectionID func() string + MemberOrgs func() map[string]struct{} + type CollectionAccessPolicy interface + AccessFilter func() Filter + IsMemberOnlyRead func() bool + IsMemberOnlyWrite func() bool + MaximumPeerCount func() int + MemberOrgs func() map[string]struct{} + RequiredPeerCount func() int + type CollectionCriteria struct + Channel string + Collection string + Namespace string + type CollectionFilter interface + AccessFilter func(channelName string, collectionPolicyConfig *peer.CollectionPolicyConfig) (Filter, error) + type CollectionPersistenceConfigs interface + BlockToLive func() uint64 + type CollectionStore interface + RetrieveCollection func(CollectionCriteria) (Collection, error) + RetrieveCollectionAccessPolicy func(CollectionCriteria) (CollectionAccessPolicy, error) + RetrieveCollectionConfig func(CollectionCriteria) (*peer.StaticCollectionConfig, error) + RetrieveCollectionConfigPackage func(CollectionCriteria) (*peer.CollectionConfigPackage, error) + RetrieveCollectionPersistenceConfigs func(CollectionCriteria) (CollectionPersistenceConfigs, error) + RetrieveReadWritePermission func(CollectionCriteria, *pb.SignedProposal, ledger.QueryExecutor) (bool, bool, error) + type Filter func(protoutil.SignedData) bool + type IdentityDeserializerFactory interface + GetIdentityDeserializer func(chainID string) msp.IdentityDeserializer + type IdentityDeserializerFactoryFunc func(chainID string) msp.IdentityDeserializer + func (i IdentityDeserializerFactoryFunc) GetIdentityDeserializer(chainID string) msp.IdentityDeserializer + type MembershipProvider struct + IdentityDeserializerFactory func(chainID string) msp.IdentityDeserializer + func NewMembershipInfoProvider(mspID string, selfSignedData protoutil.SignedData, ...) *MembershipProvider + func (m *MembershipProvider) AmMemberOf(channelName string, collectionPolicyConfig *peer.CollectionPolicyConfig) (bool, error) + func (m *MembershipProvider) MyImplicitCollectionName() string + type NoSuchCollectionError CollectionCriteria + func (f NoSuchCollectionError) Error() string + type QueryExecutorFactory interface + NewQueryExecutor func() (ledger.QueryExecutor, error) + type SimpleCollection struct + func NewSimpleCollection(collectionConfig *peer.StaticCollectionConfig, ...) (*SimpleCollection, error) + func (sc *SimpleCollection) AccessFilter() Filter + func (sc *SimpleCollection) CollectionID() string + func (sc *SimpleCollection) IsMemberOnlyRead() bool + func (sc *SimpleCollection) IsMemberOnlyWrite() bool + func (sc *SimpleCollection) MaximumPeerCount() int + func (sc *SimpleCollection) MemberOrgs() map[string]struct{} + func (sc *SimpleCollection) RequiredPeerCount() int + func (sc *SimpleCollection) Setup(collectionConfig *peer.StaticCollectionConfig, ...) error + type SimpleCollectionPersistenceConfigs struct + func (s *SimpleCollectionPersistenceConfigs) BlockToLive() uint64 + type SimpleCollectionStore struct + func NewSimpleCollectionStore(qeFactory QueryExecutorFactory, ccInfoProvider ChaincodeInfoProvider) *SimpleCollectionStore + func (c *SimpleCollectionStore) AccessFilter(channelName string, collectionPolicyConfig *peer.CollectionPolicyConfig) (Filter, error) + func (c *SimpleCollectionStore) RetrieveCollection(cc CollectionCriteria) (Collection, error) + func (c *SimpleCollectionStore) RetrieveCollectionAccessPolicy(cc CollectionCriteria) (CollectionAccessPolicy, error) + func (c *SimpleCollectionStore) RetrieveCollectionConfig(cc CollectionCriteria) (*peer.StaticCollectionConfig, error) + func (c *SimpleCollectionStore) RetrieveCollectionConfigPackage(cc CollectionCriteria) (*peer.CollectionConfigPackage, error) + func (c *SimpleCollectionStore) RetrieveCollectionPersistenceConfigs(cc CollectionCriteria) (CollectionPersistenceConfigs, error) + func (c *SimpleCollectionStore) RetrieveReadWritePermission(cc CollectionCriteria, signedProposal *pb.SignedProposal, ...) (bool, bool, error) + type State interface + GetState func(namespace string, key string) ([]byte, error) Other modules containing this package github.com/waszqt/fabric