mocks

package
v0.0.0-...-f69b815 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityDeserializerMock

type IdentityDeserializerMock struct {
	mock.Mock
}

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

type IdentityMock struct {
	mock.Mock
}

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:

func (*IdentityMock) Verify

func (_m *IdentityMock) Verify(msg []byte, sig []byte) error

Verify provides a mock function with given fields: msg, sig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL