Documentation
¶
Index ¶
- type IdentityDeserializerMock
- type IdentityMock
- func (_m *IdentityMock) Anonymous() bool
- func (_m *IdentityMock) ExpiresAt() time.Time
- func (_m *IdentityMock) GetIdentifier() *msp.IdentityIdentifier
- func (_m *IdentityMock) GetMSPIdentifier() string
- func (_m *IdentityMock) GetOrganizationalUnits() []*msp.OUIdentifier
- func (_m *IdentityMock) SatisfiesPrincipal(principal *protosmsp.MSPPrincipal) error
- func (_m *IdentityMock) Serialize() ([]byte, error)
- func (_m *IdentityMock) Validate() error
- func (_m *IdentityMock) Verify(msg []byte, sig []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityDeserializerMock ¶
IdentityDeserializerMock is an autogenerated mock type for the IdentityDeserializerMock type
func (*IdentityDeserializerMock) DeserializeIdentity ¶
func (_m *IdentityDeserializerMock) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
DeserializeIdentity provides a mock function with given fields: serializedIdentity
func (*IdentityDeserializerMock) IsWellFormed ¶
func (_m *IdentityDeserializerMock) IsWellFormed(identity *protosmsp.SerializedIdentity) error
IsWellFormed provides a mock function with given fields: identity
type IdentityMock ¶
IdentityMock is an autogenerated mock type for the IdentityMock type
func (*IdentityMock) Anonymous ¶
func (_m *IdentityMock) Anonymous() bool
Anonymous provides a mock function with given fields:
func (*IdentityMock) ExpiresAt ¶
func (_m *IdentityMock) ExpiresAt() time.Time
ExpiresAt provides a mock function with given fields:
func (*IdentityMock) GetIdentifier ¶
func (_m *IdentityMock) GetIdentifier() *msp.IdentityIdentifier
GetIdentifier provides a mock function with given fields:
func (*IdentityMock) GetMSPIdentifier ¶
func (_m *IdentityMock) GetMSPIdentifier() string
GetMSPIdentifier provides a mock function with given fields:
func (*IdentityMock) GetOrganizationalUnits ¶
func (_m *IdentityMock) GetOrganizationalUnits() []*msp.OUIdentifier
GetOrganizationalUnits provides a mock function with given fields:
func (*IdentityMock) SatisfiesPrincipal ¶
func (_m *IdentityMock) SatisfiesPrincipal(principal *protosmsp.MSPPrincipal) error
SatisfiesPrincipal provides a mock function with given fields: principal
func (*IdentityMock) Serialize ¶
func (_m *IdentityMock) Serialize() ([]byte, error)
Serialize provides a mock function with given fields:
func (*IdentityMock) Validate ¶
func (_m *IdentityMock) Validate() error
Validate provides a mock function with given fields: