Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + type ChannelPolicyManager struct + Policy policies.Policy + func (m *ChannelPolicyManager) GetPolicy(id string) (policies.Policy, bool) + func (m *ChannelPolicyManager) Manager(path []string) (policies.Manager, bool) + type ChannelPolicyManagerGetter struct + func (c *ChannelPolicyManagerGetter) Manager(channelID string) policies.Manager + type ChannelPolicyManagerGetterWithManager struct + Managers map[string]policies.Manager + func (c *ChannelPolicyManagerGetterWithManager) Manager(channelID string) policies.Manager + type DeserializersManager struct + ChannelDeserializers map[string]msp.IdentityDeserializer + LocalDeserializer msp.IdentityDeserializer + func (m *DeserializersManager) Deserialize(raw []byte) (*mspproto.SerializedIdentity, error) + func (m *DeserializersManager) GetChannelDeserializers() map[string]msp.IdentityDeserializer + func (m *DeserializersManager) GetLocalDeserializer() msp.IdentityDeserializer + func (m *DeserializersManager) GetLocalMSPIdentifier() string + type Identity struct + Msg []byte + func (id *Identity) Anonymous() bool + func (id *Identity) ExpiresAt() time.Time + func (id *Identity) GetIdentifier() *msp.IdentityIdentifier + func (id *Identity) GetMSPIdentifier() string + func (id *Identity) GetOrganizationalUnits() []*msp.OUIdentifier + func (id *Identity) SatisfiesPrincipal(*mspproto.MSPPrincipal) error + func (id *Identity) Serialize() ([]byte, error) + func (id *Identity) Validate() error + func (id *Identity) Verify(msg []byte, sig []byte) error + type IdentityDeserializer struct + Identity []byte + Msg []byte + func (d *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error) + func (d *IdentityDeserializer) IsWellFormed(identity *mspproto.SerializedIdentity) error + type IdentityDeserializerWithExpiration struct + Expiration time.Time + func (d *IdentityDeserializerWithExpiration) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error) + type Policy struct + Deserializer msp.IdentityDeserializer + func (m *Policy) EvaluateIdentities(identities []msp.Identity) error + func (m *Policy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error + type PolicyManager struct + GetPolicyStub func(string) (policies.Policy, bool) + ManagerStub func([]string) (policies.Manager, bool) + func (fake *PolicyManager) GetPolicy(arg1 string) (policies.Policy, bool) + func (fake *PolicyManager) GetPolicyArgsForCall(i int) string + func (fake *PolicyManager) GetPolicyCallCount() int + func (fake *PolicyManager) GetPolicyCalls(stub func(string) (policies.Policy, bool)) + func (fake *PolicyManager) GetPolicyReturns(result1 policies.Policy, result2 bool) + func (fake *PolicyManager) GetPolicyReturnsOnCall(i int, result1 policies.Policy, result2 bool) + func (fake *PolicyManager) Invocations() map[string][][]interface{} + func (fake *PolicyManager) Manager(arg1 []string) (policies.Manager, bool) + func (fake *PolicyManager) ManagerArgsForCall(i int) []string + func (fake *PolicyManager) ManagerCallCount() int + func (fake *PolicyManager) ManagerCalls(stub func([]string) (policies.Manager, bool)) + func (fake *PolicyManager) ManagerReturns(result1 policies.Manager, result2 bool) + func (fake *PolicyManager) ManagerReturnsOnCall(i int, result1 policies.Manager, result2 bool) + type SignerSerializer struct + SerializeStub func() ([]byte, error) + SignStub func([]byte) ([]byte, error) + func (fake *SignerSerializer) Invocations() map[string][][]interface{} + func (fake *SignerSerializer) Serialize() ([]byte, error) + func (fake *SignerSerializer) SerializeCallCount() int + func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error)) + func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error) + func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error) + func (fake *SignerSerializer) SignArgsForCall(i int) []byte + func (fake *SignerSerializer) SignCallCount() int + func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error)) + func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error) + func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error) Other modules containing this package github.com/waszqt/fabric