Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChannelPolicyManager ¶
type MockIdentity ¶
type MockIdentity struct {
// contains filtered or unexported fields
}
func (*MockIdentity) Anonymous ¶
func (id *MockIdentity) Anonymous() bool
func (*MockIdentity) ExpiresAt ¶
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 ¶
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 []*common.SignedData) error
Evaluate takes a set of SignedData and evaluates whether this set of signatures satisfies the policy
Click to show internal directories.
Click to hide internal directories.