Versions in this module Expand all Collapse all v1 v1.4.9 Jul 22, 2021 Changes in this version + func BuildCollectionKVSKey(ccname string) string + func GetCCNameFromCollectionConfigKey(key string) string + func IsCollectionConfigKey(key string) bool + func ParseCollectionConfig(colBytes []byte) (*common.CollectionConfigPackage, error) + func RetrieveCollectionConfigPackageFromState(cc common.CollectionCriteria, state State) (*common.CollectionConfigPackage, error) + type Collection interface + CollectionID func() string + MemberOrgs func() []string + type CollectionAccessPolicy interface + AccessFilter func() Filter + IsMemberOnlyRead func() bool + MaximumPeerCount func() int + MemberOrgs func() []string + RequiredPeerCount func() int + type CollectionFilter interface + AccessFilter func(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (Filter, error) + type CollectionPersistenceConfigs interface + BlockToLive func() uint64 + type CollectionStore interface + HasReadAccess func(common.CollectionCriteria, *pb.SignedProposal, ledger.QueryExecutor) (bool, error) + RetrieveCollection func(common.CollectionCriteria) (Collection, error) + RetrieveCollectionAccessPolicy func(common.CollectionCriteria) (CollectionAccessPolicy, error) + RetrieveCollectionConfigPackage func(common.CollectionCriteria) (*common.CollectionConfigPackage, error) + RetrieveCollectionPersistenceConfigs func(common.CollectionCriteria) (CollectionPersistenceConfigs, error) + func NewSimpleCollectionStore(s Support) CollectionStore + type Filter func(common.SignedData) bool + type MembershipProvider struct + IdentityDeserializerFactory func(chainID string) msp.IdentityDeserializer + func NewMembershipInfoProvider(mspID string, selfSignedData common.SignedData, ...) *MembershipProvider + func (m *MembershipProvider) AmMemberOf(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (bool, error) + type NoSuchCollectionError common.CollectionCriteria + func (f NoSuchCollectionError) Error() string + type SimpleCollection struct + func (sc *SimpleCollection) AccessFilter() Filter + func (sc *SimpleCollection) CollectionID() string + func (sc *SimpleCollection) IsMemberOnlyRead() bool + func (sc *SimpleCollection) MaximumPeerCount() int + func (sc *SimpleCollection) MemberOrgs() []string + func (sc *SimpleCollection) RequiredPeerCount() int + func (sc *SimpleCollection) Setup(collectionConfig *common.StaticCollectionConfig, ...) error + type SimpleCollectionPersistenceConfigs struct + func (s *SimpleCollectionPersistenceConfigs) BlockToLive() uint64 + type State interface + GetState func(namespace string, key string) ([]byte, error) + type Support interface + GetIdentityDeserializer func(chainID string) msp.IdentityDeserializer + GetQueryExecutorForLedger func(cid string) (ledger.QueryExecutor, error)