Versions in this module Expand all Collapse all v1 v1.4.9 Sep 30, 2020 Changes in this version + type MockChannelPolicyManager struct + MockPolicy policies.Policy + func (m *MockChannelPolicyManager) GetPolicy(id string) (policies.Policy, bool) + func (m *MockChannelPolicyManager) Manager(path []string) (policies.Manager, bool) + type MockChannelPolicyManagerGetter struct + Managers map[string]policies.Manager + func (c *MockChannelPolicyManagerGetter) Manager(channelID string) (policies.Manager, bool) + type MockIdentity struct + func (id *MockIdentity) Anonymous() bool + func (id *MockIdentity) ExpiresAt() time.Time + func (id *MockIdentity) GetIdentifier() *msp.IdentityIdentifier + func (id *MockIdentity) GetMSPIdentifier() string + func (id *MockIdentity) GetOrganizationalUnits() []*msp.OUIdentifier + func (id *MockIdentity) SatisfiesPrincipal(p *mspproto.MSPPrincipal) error + func (id *MockIdentity) Serialize() ([]byte, error) + func (id *MockIdentity) Validate() error + func (id *MockIdentity) Verify(msg []byte, sig []byte) error + type MockIdentityDeserializer struct + Identity []byte + Msg []byte + func (d *MockIdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error) + func (d *MockIdentityDeserializer) IsWellFormed(_ *mspproto.SerializedIdentity) error + type MockMSPPrincipalGetter struct + Principal []byte + func (m *MockMSPPrincipalGetter) Get(role string) (*mspproto.MSPPrincipal, error) + type MockPolicy struct + Deserializer msp.IdentityDeserializer + func (m *MockPolicy) Evaluate(signatureSet []*common.SignedData) error Incompatible versions in this module v2.1.1+incompatible Jun 1, 2020