fabric: github.com/hyperledger/fabric/msp/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/msp/mocks"

Index

Package Files

mocks.go

type MockIdentity Uses

type MockIdentity struct {
    mock.Mock

    ID  string
}

func (*MockIdentity) Anonymous Uses

func (m *MockIdentity) Anonymous() bool

func (*MockIdentity) ExpiresAt Uses

func (m *MockIdentity) ExpiresAt() time.Time

func (*MockIdentity) GetIdentifier Uses

func (m *MockIdentity) GetIdentifier() *msp.IdentityIdentifier

func (*MockIdentity) GetMSPIdentifier Uses

func (*MockIdentity) GetMSPIdentifier() string

func (*MockIdentity) GetOrganizationalUnits Uses

func (*MockIdentity) GetOrganizationalUnits() []*msp.OUIdentifier

func (*MockIdentity) SatisfiesPrincipal Uses

func (m *MockIdentity) SatisfiesPrincipal(principal *pmsp.MSPPrincipal) error

func (*MockIdentity) Serialize Uses

func (*MockIdentity) Serialize() ([]byte, error)

func (*MockIdentity) Validate Uses

func (m *MockIdentity) Validate() error

func (*MockIdentity) Verify Uses

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

type MockMSP Uses

type MockMSP struct {
    mock.Mock
}

func (*MockMSP) DeserializeIdentity Uses

func (m *MockMSP) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)

func (*MockMSP) GetDefaultSigningIdentity Uses

func (m *MockMSP) GetDefaultSigningIdentity() (msp.SigningIdentity, error)

func (*MockMSP) GetIdentifier Uses

func (m *MockMSP) GetIdentifier() (string, error)

func (*MockMSP) GetSigningIdentity Uses

func (m *MockMSP) GetSigningIdentity(identifier *msp.IdentityIdentifier) (msp.SigningIdentity, error)

func (*MockMSP) GetTLSIntermediateCerts Uses

func (m *MockMSP) GetTLSIntermediateCerts() [][]byte

func (*MockMSP) GetTLSRootCerts Uses

func (m *MockMSP) GetTLSRootCerts() [][]byte

func (*MockMSP) GetType Uses

func (m *MockMSP) GetType() msp.ProviderType

func (*MockMSP) GetVersion Uses

func (m *MockMSP) GetVersion() msp.MSPVersion

func (*MockMSP) IsWellFormed Uses

func (m *MockMSP) IsWellFormed(_ *pmsp.SerializedIdentity) error

func (*MockMSP) SatisfiesPrincipal Uses

func (m *MockMSP) SatisfiesPrincipal(id msp.Identity, principal *pmsp.MSPPrincipal) error

func (*MockMSP) Setup Uses

func (m *MockMSP) Setup(config *pmsp.MSPConfig) error

func (*MockMSP) Validate Uses

func (m *MockMSP) Validate(id msp.Identity) error

type MockSigningIdentity Uses

type MockSigningIdentity struct {
    mock.Mock
    *MockIdentity
}

func (*MockSigningIdentity) GetPublicVersion Uses

func (*MockSigningIdentity) GetPublicVersion() msp.Identity

func (*MockSigningIdentity) Sign Uses

func (*MockSigningIdentity) Sign(msg []byte) ([]byte, error)

Package mocks imports 4 packages (graph). Updated 2018-07-10. Refresh now. Tools for package owners.