Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ImplicitOrg is used in the collection policy to indicate that the // collection policy is for the local peer's MSP ImplicitOrg = "IMPLICIT-ORG" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct { privdata.CollectionAccessPolicy // contains filtered or unexported fields }
Resolver wraps a collection policy and resolves any occurrence of 'IMPLICIT-ORG' to the local MSP
func NewResolver ¶
func NewResolver(localMSP string, policy privdata.CollectionAccessPolicy) *Resolver
NewResolver returns a new implicit collection policy resolver
func (*Resolver) MemberOrgs ¶
MemberOrgs returns the collection's members as MSP IDs. If any of the orgs is set to 'IMPLICIT-ORG' then it is replaced with the ID of the local MSP.
Click to show internal directories.
Click to hide internal directories.