Documentation ¶
Index ¶
- type ChannelPolicyManagerGetter
- type ChannelPolicyReferenceProvider
- type Identity
- func (_m *Identity) Anonymous() bool
- func (_m *Identity) ExpiresAt() time.Time
- func (_m *Identity) GetIdentifier() *msp.IdentityIdentifier
- func (_m *Identity) GetMSPIdentifier() string
- func (_m *Identity) GetOrganizationalUnits() []*msp.OUIdentifier
- func (_m *Identity) SatisfiesPrincipal(principal *protosmsp.MSPPrincipal) error
- func (_m *Identity) Serialize() ([]byte, error)
- func (_m *Identity) Validate() error
- func (_m *Identity) Verify(msg []byte, sig []byte) error
- type IdentityDeserializer
- type Manager
- type MockChannelPolicyManager
- type MockChannelPolicyManagerGetter
- type MockIdentity
- 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
- type MockMSPPrincipalGetter
- type MockPolicy
- type Policy
- type SignaturePolicyProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelPolicyManagerGetter ¶
ChannelPolicyManagerGetter is an autogenerated mock type for the ChannelPolicyManagerGetter type
type ChannelPolicyReferenceProvider ¶
ChannelPolicyReferenceProvider is an autogenerated mock type for the ChannelPolicyReferenceProvider type
type Identity ¶
Identity is an autogenerated mock type for the Identity type
func (*Identity) GetIdentifier ¶
func (_m *Identity) GetIdentifier() *msp.IdentityIdentifier
GetIdentifier provides a mock function with given fields:
func (*Identity) GetMSPIdentifier ¶
GetMSPIdentifier provides a mock function with given fields:
func (*Identity) GetOrganizationalUnits ¶
func (_m *Identity) GetOrganizationalUnits() []*msp.OUIdentifier
GetOrganizationalUnits provides a mock function with given fields:
func (*Identity) SatisfiesPrincipal ¶
func (_m *Identity) SatisfiesPrincipal(principal *protosmsp.MSPPrincipal) error
SatisfiesPrincipal provides a mock function with given fields: principal
type IdentityDeserializer ¶
IdentityDeserializer is an autogenerated mock type for the IdentityDeserializer type
func (*IdentityDeserializer) DeserializeIdentity ¶
func (_m *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
DeserializeIdentity provides a mock function with given fields: serializedIdentity
func (*IdentityDeserializer) IsWellFormed ¶
func (_m *IdentityDeserializer) IsWellFormed(identity *protosmsp.SerializedIdentity) error
IsWellFormed provides a mock function with given fields: identity
type Manager ¶
Manager is an autogenerated mock type for the Manager type
type MockChannelPolicyManager ¶
type MockIdentity ¶
type MockIdentity struct {
// contains filtered or unexported fields
}
func (*MockIdentity) Anonymous ¶ added in v1.2.0
func (id *MockIdentity) Anonymous() bool
func (*MockIdentity) ExpiresAt ¶ added in v1.1.0
func (id *MockIdentity) ExpiresAt() time.Time
func (*MockIdentity) GetIdentifier ¶
func (id *MockIdentity) GetIdentifier() *msp.IdentityIdentifier
func (*MockIdentity) GetMSPIdentifier ¶
func (id *MockIdentity) GetMSPIdentifier() string
func (*MockIdentity) GetOrganizationalUnits ¶
func (id *MockIdentity) GetOrganizationalUnits() []*msp.OUIdentifier
func (*MockIdentity) SatisfiesPrincipal ¶
func (id *MockIdentity) SatisfiesPrincipal(p *mspproto.MSPPrincipal) error
func (*MockIdentity) Serialize ¶
func (id *MockIdentity) Serialize() ([]byte, error)
func (*MockIdentity) Validate ¶
func (id *MockIdentity) Validate() error
type MockIdentityDeserializer ¶
func (*MockIdentityDeserializer) DeserializeIdentity ¶
func (d *MockIdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
func (*MockIdentityDeserializer) IsWellFormed ¶ added in v1.1.0
func (d *MockIdentityDeserializer) IsWellFormed(_ *mspproto.SerializedIdentity) error
type MockMSPPrincipalGetter ¶
type MockMSPPrincipalGetter struct {
Principal []byte
}
func (*MockMSPPrincipalGetter) Get ¶
func (m *MockMSPPrincipalGetter) Get(role string) (*mspproto.MSPPrincipal, error)
type MockPolicy ¶
type MockPolicy struct {
Deserializer msp.IdentityDeserializer
}
func (*MockPolicy) Evaluate ¶
func (m *MockPolicy) Evaluate(signatureSet []*protoutil.SignedData) error
Evaluate takes a set of SignedData and evaluates whether this set of signatures satisfies the policy
type SignaturePolicyProvider ¶
SignaturePolicyProvider is an autogenerated mock type for the SignaturePolicyProvider type
func (*SignaturePolicyProvider) NewPolicy ¶
func (_m *SignaturePolicyProvider) NewPolicy(signaturePolicy *common.SignaturePolicyEnvelope) (policies.Policy, error)
NewPolicy provides a mock function with given fields: signaturePolicy