fabric: github.com/hyperledger/fabric/discovery/support/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/discovery/support/mocks"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by mockery v1.0.0. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by mockery v1.0.0

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

chanconfig.go channel_policy_manager_getter.go config.go configtxvalidator.go evaluator.go gossip.go gossip_support.go identity.go mspmgr.go resources.go verifier.go

type ChanConfig Uses

type ChanConfig struct {
    GetChannelConfigStub func(cid string) channelconfig.Resources
    // contains filtered or unexported fields
}

func (*ChanConfig) GetChannelConfig Uses

func (fake *ChanConfig) GetChannelConfig(cid string) channelconfig.Resources

func (*ChanConfig) GetChannelConfigArgsForCall Uses

func (fake *ChanConfig) GetChannelConfigArgsForCall(i int) string

func (*ChanConfig) GetChannelConfigCallCount Uses

func (fake *ChanConfig) GetChannelConfigCallCount() int

func (*ChanConfig) GetChannelConfigReturns Uses

func (fake *ChanConfig) GetChannelConfigReturns(result1 channelconfig.Resources)

func (*ChanConfig) GetChannelConfigReturnsOnCall Uses

func (fake *ChanConfig) GetChannelConfigReturnsOnCall(i int, result1 channelconfig.Resources)

func (*ChanConfig) Invocations Uses

func (fake *ChanConfig) Invocations() map[string][][]interface{}

type ChannelPolicyManagerGetter Uses

type ChannelPolicyManagerGetter struct {
    mock.Mock
}

ChannelPolicyManagerGetter is an autogenerated mock type for the ChannelPolicyManagerGetter type

func (*ChannelPolicyManagerGetter) Manager Uses

func (_m *ChannelPolicyManagerGetter) Manager(channelID string) (policies.Manager, bool)

Manager provides a mock function with given fields: channelID

type ConfigBlockGetter Uses

type ConfigBlockGetter struct {
    GetCurrConfigBlockStub func(channel string) *common.Block
    // contains filtered or unexported fields
}

func (*ConfigBlockGetter) GetCurrConfigBlock Uses

func (fake *ConfigBlockGetter) GetCurrConfigBlock(channel string) *common.Block

func (*ConfigBlockGetter) GetCurrConfigBlockArgsForCall Uses

func (fake *ConfigBlockGetter) GetCurrConfigBlockArgsForCall(i int) string

func (*ConfigBlockGetter) GetCurrConfigBlockCallCount Uses

func (fake *ConfigBlockGetter) GetCurrConfigBlockCallCount() int

func (*ConfigBlockGetter) GetCurrConfigBlockReturns Uses

func (fake *ConfigBlockGetter) GetCurrConfigBlockReturns(result1 *common.Block)

func (*ConfigBlockGetter) GetCurrConfigBlockReturnsOnCall Uses

func (fake *ConfigBlockGetter) GetCurrConfigBlockReturnsOnCall(i int, result1 *common.Block)

func (*ConfigBlockGetter) Invocations Uses

func (fake *ConfigBlockGetter) Invocations() map[string][][]interface{}

type ConfigtxValidator Uses

type ConfigtxValidator struct {
    ValidateStub func(configEnv *cb.ConfigEnvelope) error

    ProposeConfigUpdateStub func(configtx *cb.Envelope) (*cb.ConfigEnvelope, error)

    ChainIDStub func() string

    ConfigProtoStub func() *cb.Config

    SequenceStub func() uint64
    // contains filtered or unexported fields
}

func (*ConfigtxValidator) ChainID Uses

func (fake *ConfigtxValidator) ChainID() string

func (*ConfigtxValidator) ChainIDCallCount Uses

func (fake *ConfigtxValidator) ChainIDCallCount() int

func (*ConfigtxValidator) ChainIDReturns Uses

func (fake *ConfigtxValidator) ChainIDReturns(result1 string)

func (*ConfigtxValidator) ChainIDReturnsOnCall Uses

func (fake *ConfigtxValidator) ChainIDReturnsOnCall(i int, result1 string)

func (*ConfigtxValidator) ConfigProto Uses

func (fake *ConfigtxValidator) ConfigProto() *cb.Config

func (*ConfigtxValidator) ConfigProtoCallCount Uses

func (fake *ConfigtxValidator) ConfigProtoCallCount() int

func (*ConfigtxValidator) ConfigProtoReturns Uses

func (fake *ConfigtxValidator) ConfigProtoReturns(result1 *cb.Config)

func (*ConfigtxValidator) ConfigProtoReturnsOnCall Uses

func (fake *ConfigtxValidator) ConfigProtoReturnsOnCall(i int, result1 *cb.Config)

func (*ConfigtxValidator) Invocations Uses

func (fake *ConfigtxValidator) Invocations() map[string][][]interface{}

func (*ConfigtxValidator) ProposeConfigUpdate Uses

func (fake *ConfigtxValidator) ProposeConfigUpdate(configtx *cb.Envelope) (*cb.ConfigEnvelope, error)

func (*ConfigtxValidator) ProposeConfigUpdateArgsForCall Uses

func (fake *ConfigtxValidator) ProposeConfigUpdateArgsForCall(i int) *cb.Envelope

func (*ConfigtxValidator) ProposeConfigUpdateCallCount Uses

func (fake *ConfigtxValidator) ProposeConfigUpdateCallCount() int

func (*ConfigtxValidator) ProposeConfigUpdateReturns Uses

func (fake *ConfigtxValidator) ProposeConfigUpdateReturns(result1 *cb.ConfigEnvelope, result2 error)

func (*ConfigtxValidator) ProposeConfigUpdateReturnsOnCall Uses

func (fake *ConfigtxValidator) ProposeConfigUpdateReturnsOnCall(i int, result1 *cb.ConfigEnvelope, result2 error)

func (*ConfigtxValidator) Sequence Uses

func (fake *ConfigtxValidator) Sequence() uint64

func (*ConfigtxValidator) SequenceCallCount Uses

func (fake *ConfigtxValidator) SequenceCallCount() int

func (*ConfigtxValidator) SequenceReturns Uses

func (fake *ConfigtxValidator) SequenceReturns(result1 uint64)

func (*ConfigtxValidator) SequenceReturnsOnCall Uses

func (fake *ConfigtxValidator) SequenceReturnsOnCall(i int, result1 uint64)

func (*ConfigtxValidator) Validate Uses

func (fake *ConfigtxValidator) Validate(configEnv *cb.ConfigEnvelope) error

func (*ConfigtxValidator) ValidateArgsForCall Uses

func (fake *ConfigtxValidator) ValidateArgsForCall(i int) *cb.ConfigEnvelope

func (*ConfigtxValidator) ValidateCallCount Uses

func (fake *ConfigtxValidator) ValidateCallCount() int

func (*ConfigtxValidator) ValidateReturns Uses

func (fake *ConfigtxValidator) ValidateReturns(result1 error)

func (*ConfigtxValidator) ValidateReturnsOnCall Uses

func (fake *ConfigtxValidator) ValidateReturnsOnCall(i int, result1 error)

type Evaluator Uses

type Evaluator struct {
    EvaluateStub func(signatureSet []*common2.SignedData) error
    // contains filtered or unexported fields
}

func (*Evaluator) Evaluate Uses

func (fake *Evaluator) Evaluate(signatureSet []*common2.SignedData) error

func (*Evaluator) EvaluateArgsForCall Uses

func (fake *Evaluator) EvaluateArgsForCall(i int) []*common2.SignedData

func (*Evaluator) EvaluateCallCount Uses

func (fake *Evaluator) EvaluateCallCount() int

func (*Evaluator) EvaluateReturns Uses

func (fake *Evaluator) EvaluateReturns(result1 error)

func (*Evaluator) EvaluateReturnsOnCall Uses

func (fake *Evaluator) EvaluateReturnsOnCall(i int, result1 error)

func (*Evaluator) Invocations Uses

func (fake *Evaluator) Invocations() map[string][][]interface{}

type Gossip Uses

type Gossip struct {
    SelfMembershipInfoStub func() discovery.NetworkMember

    SelfChannelInfoStub func(common.ChainID) *proto.SignedGossipMessage

    SendStub func(msg *proto.GossipMessage, peers ...*comm.RemotePeer)

    SendByCriteriaStub func(*proto.SignedGossipMessage, gossip.SendCriteria) error

    PeersStub func() []discovery.NetworkMember

    PeersOfChannelStub func(common.ChainID) []discovery.NetworkMember

    UpdateMetadataStub func(metadata []byte)

    UpdateLedgerHeightStub func(height uint64, chainID common.ChainID)

    UpdateChaincodesStub func(chaincode []*proto.Chaincode, chainID common.ChainID)

    GossipStub func(msg *proto.GossipMessage)

    PeerFilterStub func(channel common.ChainID, messagePredicate api.SubChannelSelectionCriteria) (filter.RoutingFilter, error)

    AcceptStub func(acceptor common.MessageAcceptor, passThrough bool) (<-chan *proto.GossipMessage, <-chan proto.ReceivedMessage)

    JoinChanStub func(joinMsg api.JoinChannelMessage, chainID common.ChainID)

    LeaveChanStub func(chainID common.ChainID)

    SuspectPeersStub func(s api.PeerSuspector)

    IdentityInfoStub func() api.PeerIdentitySet

    StopStub func()
    // contains filtered or unexported fields
}

func (*Gossip) Accept Uses

func (fake *Gossip) Accept(acceptor common.MessageAcceptor, passThrough bool) (<-chan *proto.GossipMessage, <-chan proto.ReceivedMessage)

func (*Gossip) AcceptArgsForCall Uses

func (fake *Gossip) AcceptArgsForCall(i int) (common.MessageAcceptor, bool)

func (*Gossip) AcceptCallCount Uses

func (fake *Gossip) AcceptCallCount() int

func (*Gossip) AcceptReturns Uses

func (fake *Gossip) AcceptReturns(result1 <-chan *proto.GossipMessage, result2 <-chan proto.ReceivedMessage)

func (*Gossip) AcceptReturnsOnCall Uses

func (fake *Gossip) AcceptReturnsOnCall(i int, result1 <-chan *proto.GossipMessage, result2 <-chan proto.ReceivedMessage)

func (*Gossip) Gossip Uses

func (fake *Gossip) Gossip(msg *proto.GossipMessage)

func (*Gossip) GossipArgsForCall Uses

func (fake *Gossip) GossipArgsForCall(i int) *proto.GossipMessage

func (*Gossip) GossipCallCount Uses

func (fake *Gossip) GossipCallCount() int

func (*Gossip) IdentityInfo Uses

func (fake *Gossip) IdentityInfo() api.PeerIdentitySet

func (*Gossip) IdentityInfoCallCount Uses

func (fake *Gossip) IdentityInfoCallCount() int

func (*Gossip) IdentityInfoReturns Uses

func (fake *Gossip) IdentityInfoReturns(result1 api.PeerIdentitySet)

func (*Gossip) IdentityInfoReturnsOnCall Uses

func (fake *Gossip) IdentityInfoReturnsOnCall(i int, result1 api.PeerIdentitySet)

func (*Gossip) Invocations Uses

func (fake *Gossip) Invocations() map[string][][]interface{}

func (*Gossip) JoinChan Uses

func (fake *Gossip) JoinChan(joinMsg api.JoinChannelMessage, chainID common.ChainID)

func (*Gossip) JoinChanArgsForCall Uses

func (fake *Gossip) JoinChanArgsForCall(i int) (api.JoinChannelMessage, common.ChainID)

func (*Gossip) JoinChanCallCount Uses

func (fake *Gossip) JoinChanCallCount() int

func (*Gossip) LeaveChan Uses

func (fake *Gossip) LeaveChan(chainID common.ChainID)

func (*Gossip) LeaveChanArgsForCall Uses

func (fake *Gossip) LeaveChanArgsForCall(i int) common.ChainID

func (*Gossip) LeaveChanCallCount Uses

func (fake *Gossip) LeaveChanCallCount() int

func (*Gossip) PeerFilter Uses

func (fake *Gossip) PeerFilter(channel common.ChainID, messagePredicate api.SubChannelSelectionCriteria) (filter.RoutingFilter, error)

func (*Gossip) PeerFilterArgsForCall Uses

func (fake *Gossip) PeerFilterArgsForCall(i int) (common.ChainID, api.SubChannelSelectionCriteria)

func (*Gossip) PeerFilterCallCount Uses

func (fake *Gossip) PeerFilterCallCount() int

func (*Gossip) PeerFilterReturns Uses

func (fake *Gossip) PeerFilterReturns(result1 filter.RoutingFilter, result2 error)

func (*Gossip) PeerFilterReturnsOnCall Uses

func (fake *Gossip) PeerFilterReturnsOnCall(i int, result1 filter.RoutingFilter, result2 error)

func (*Gossip) Peers Uses

func (fake *Gossip) Peers() []discovery.NetworkMember

func (*Gossip) PeersCallCount Uses

func (fake *Gossip) PeersCallCount() int

func (*Gossip) PeersOfChannel Uses

func (fake *Gossip) PeersOfChannel(arg1 common.ChainID) []discovery.NetworkMember

func (*Gossip) PeersOfChannelArgsForCall Uses

func (fake *Gossip) PeersOfChannelArgsForCall(i int) common.ChainID

func (*Gossip) PeersOfChannelCallCount Uses

func (fake *Gossip) PeersOfChannelCallCount() int

func (*Gossip) PeersOfChannelReturns Uses

func (fake *Gossip) PeersOfChannelReturns(result1 []discovery.NetworkMember)

func (*Gossip) PeersOfChannelReturnsOnCall Uses

func (fake *Gossip) PeersOfChannelReturnsOnCall(i int, result1 []discovery.NetworkMember)

func (*Gossip) PeersReturns Uses

func (fake *Gossip) PeersReturns(result1 []discovery.NetworkMember)

func (*Gossip) PeersReturnsOnCall Uses

func (fake *Gossip) PeersReturnsOnCall(i int, result1 []discovery.NetworkMember)

func (*Gossip) SelfChannelInfo Uses

func (fake *Gossip) SelfChannelInfo(arg1 common.ChainID) *proto.SignedGossipMessage

func (*Gossip) SelfChannelInfoArgsForCall Uses

func (fake *Gossip) SelfChannelInfoArgsForCall(i int) common.ChainID

func (*Gossip) SelfChannelInfoCallCount Uses

func (fake *Gossip) SelfChannelInfoCallCount() int

func (*Gossip) SelfChannelInfoReturns Uses

func (fake *Gossip) SelfChannelInfoReturns(result1 *proto.SignedGossipMessage)

func (*Gossip) SelfChannelInfoReturnsOnCall Uses

func (fake *Gossip) SelfChannelInfoReturnsOnCall(i int, result1 *proto.SignedGossipMessage)

func (*Gossip) SelfMembershipInfo Uses

func (fake *Gossip) SelfMembershipInfo() discovery.NetworkMember

func (*Gossip) SelfMembershipInfoCallCount Uses

func (fake *Gossip) SelfMembershipInfoCallCount() int

func (*Gossip) SelfMembershipInfoReturns Uses

func (fake *Gossip) SelfMembershipInfoReturns(result1 discovery.NetworkMember)

func (*Gossip) SelfMembershipInfoReturnsOnCall Uses

func (fake *Gossip) SelfMembershipInfoReturnsOnCall(i int, result1 discovery.NetworkMember)

func (*Gossip) Send Uses

func (fake *Gossip) Send(msg *proto.GossipMessage, peers ...*comm.RemotePeer)

func (*Gossip) SendArgsForCall Uses

func (fake *Gossip) SendArgsForCall(i int) (*proto.GossipMessage, []*comm.RemotePeer)

func (*Gossip) SendByCriteria Uses

func (fake *Gossip) SendByCriteria(arg1 *proto.SignedGossipMessage, arg2 gossip.SendCriteria) error

func (*Gossip) SendByCriteriaArgsForCall Uses

func (fake *Gossip) SendByCriteriaArgsForCall(i int) (*proto.SignedGossipMessage, gossip.SendCriteria)

func (*Gossip) SendByCriteriaCallCount Uses

func (fake *Gossip) SendByCriteriaCallCount() int

func (*Gossip) SendByCriteriaReturns Uses

func (fake *Gossip) SendByCriteriaReturns(result1 error)

func (*Gossip) SendByCriteriaReturnsOnCall Uses

func (fake *Gossip) SendByCriteriaReturnsOnCall(i int, result1 error)

func (*Gossip) SendCallCount Uses

func (fake *Gossip) SendCallCount() int

func (*Gossip) Stop Uses

func (fake *Gossip) Stop()

func (*Gossip) StopCallCount Uses

func (fake *Gossip) StopCallCount() int

func (*Gossip) SuspectPeers Uses

func (fake *Gossip) SuspectPeers(s api.PeerSuspector)

func (*Gossip) SuspectPeersArgsForCall Uses

func (fake *Gossip) SuspectPeersArgsForCall(i int) api.PeerSuspector

func (*Gossip) SuspectPeersCallCount Uses

func (fake *Gossip) SuspectPeersCallCount() int

func (*Gossip) UpdateChaincodes Uses

func (fake *Gossip) UpdateChaincodes(chaincode []*proto.Chaincode, chainID common.ChainID)

func (*Gossip) UpdateChaincodesArgsForCall Uses

func (fake *Gossip) UpdateChaincodesArgsForCall(i int) ([]*proto.Chaincode, common.ChainID)

func (*Gossip) UpdateChaincodesCallCount Uses

func (fake *Gossip) UpdateChaincodesCallCount() int

func (*Gossip) UpdateLedgerHeight Uses

func (fake *Gossip) UpdateLedgerHeight(height uint64, chainID common.ChainID)

func (*Gossip) UpdateLedgerHeightArgsForCall Uses

func (fake *Gossip) UpdateLedgerHeightArgsForCall(i int) (uint64, common.ChainID)

func (*Gossip) UpdateLedgerHeightCallCount Uses

func (fake *Gossip) UpdateLedgerHeightCallCount() int

func (*Gossip) UpdateMetadata Uses

func (fake *Gossip) UpdateMetadata(metadata []byte)

func (*Gossip) UpdateMetadataArgsForCall Uses

func (fake *Gossip) UpdateMetadataArgsForCall(i int) []byte

func (*Gossip) UpdateMetadataCallCount Uses

func (fake *Gossip) UpdateMetadataCallCount() int

type GossipSupport Uses

type GossipSupport struct {
    mock.Mock
}

GossipSupport is an autogenerated mock type for the GossipSupport type

func (*GossipSupport) ChannelExists Uses

func (_m *GossipSupport) ChannelExists(channel string) bool

ChannelExists provides a mock function with given fields: channel

func (*GossipSupport) IdentityInfo Uses

func (_m *GossipSupport) IdentityInfo() api.PeerIdentitySet

IdentityInfo provides a mock function with given fields:

func (*GossipSupport) Peers Uses

func (_m *GossipSupport) Peers() gossipdiscovery.Members

Peers provides a mock function with given fields:

func (*GossipSupport) PeersOfChannel Uses

func (_m *GossipSupport) PeersOfChannel(_a0 common.ChainID) gossipdiscovery.Members

PeersOfChannel provides a mock function with given fields: _a0

type Identity Uses

type Identity struct {
    ExpiresAtStub func() time.Time

    GetIdentifierStub func() *msp.IdentityIdentifier

    GetMSPIdentifierStub func() string

    ValidateStub func() error

    GetOrganizationalUnitsStub func() []*msp.OUIdentifier

    AnonymousStub func() bool

    VerifyStub func(msg []byte, sig []byte) error

    SerializeStub func() ([]byte, error)

    SatisfiesPrincipalStub func(principal *mspprotos.MSPPrincipal) error
    // contains filtered or unexported fields
}

func (*Identity) Anonymous Uses

func (fake *Identity) Anonymous() bool

func (*Identity) AnonymousCallCount Uses

func (fake *Identity) AnonymousCallCount() int

func (*Identity) AnonymousReturns Uses

func (fake *Identity) AnonymousReturns(result1 bool)

func (*Identity) AnonymousReturnsOnCall Uses

func (fake *Identity) AnonymousReturnsOnCall(i int, result1 bool)

func (*Identity) ExpiresAt Uses

func (fake *Identity) ExpiresAt() time.Time

func (*Identity) ExpiresAtCallCount Uses

func (fake *Identity) ExpiresAtCallCount() int

func (*Identity) ExpiresAtReturns Uses

func (fake *Identity) ExpiresAtReturns(result1 time.Time)

func (*Identity) ExpiresAtReturnsOnCall Uses

func (fake *Identity) ExpiresAtReturnsOnCall(i int, result1 time.Time)

func (*Identity) GetIdentifier Uses

func (fake *Identity) GetIdentifier() *msp.IdentityIdentifier

func (*Identity) GetIdentifierCallCount Uses

func (fake *Identity) GetIdentifierCallCount() int

func (*Identity) GetIdentifierReturns Uses

func (fake *Identity) GetIdentifierReturns(result1 *msp.IdentityIdentifier)

func (*Identity) GetIdentifierReturnsOnCall Uses

func (fake *Identity) GetIdentifierReturnsOnCall(i int, result1 *msp.IdentityIdentifier)

func (*Identity) GetMSPIdentifier Uses

func (fake *Identity) GetMSPIdentifier() string

func (*Identity) GetMSPIdentifierCallCount Uses

func (fake *Identity) GetMSPIdentifierCallCount() int

func (*Identity) GetMSPIdentifierReturns Uses

func (fake *Identity) GetMSPIdentifierReturns(result1 string)

func (*Identity) GetMSPIdentifierReturnsOnCall Uses

func (fake *Identity) GetMSPIdentifierReturnsOnCall(i int, result1 string)

func (*Identity) GetOrganizationalUnits Uses

func (fake *Identity) GetOrganizationalUnits() []*msp.OUIdentifier

func (*Identity) GetOrganizationalUnitsCallCount Uses

func (fake *Identity) GetOrganizationalUnitsCallCount() int

func (*Identity) GetOrganizationalUnitsReturns Uses

func (fake *Identity) GetOrganizationalUnitsReturns(result1 []*msp.OUIdentifier)

func (*Identity) GetOrganizationalUnitsReturnsOnCall Uses

func (fake *Identity) GetOrganizationalUnitsReturnsOnCall(i int, result1 []*msp.OUIdentifier)

func (*Identity) Invocations Uses

func (fake *Identity) Invocations() map[string][][]interface{}

func (*Identity) SatisfiesPrincipal Uses

func (fake *Identity) SatisfiesPrincipal(principal *mspprotos.MSPPrincipal) error

func (*Identity) SatisfiesPrincipalArgsForCall Uses

func (fake *Identity) SatisfiesPrincipalArgsForCall(i int) *mspprotos.MSPPrincipal

func (*Identity) SatisfiesPrincipalCallCount Uses

func (fake *Identity) SatisfiesPrincipalCallCount() int

func (*Identity) SatisfiesPrincipalReturns Uses

func (fake *Identity) SatisfiesPrincipalReturns(result1 error)

func (*Identity) SatisfiesPrincipalReturnsOnCall Uses

func (fake *Identity) SatisfiesPrincipalReturnsOnCall(i int, result1 error)

func (*Identity) Serialize Uses

func (fake *Identity) Serialize() ([]byte, error)

func (*Identity) SerializeCallCount Uses

func (fake *Identity) SerializeCallCount() int

func (*Identity) SerializeReturns Uses

func (fake *Identity) SerializeReturns(result1 []byte, result2 error)

func (*Identity) SerializeReturnsOnCall Uses

func (fake *Identity) SerializeReturnsOnCall(i int, result1 []byte, result2 error)

func (*Identity) Validate Uses

func (fake *Identity) Validate() error

func (*Identity) ValidateCallCount Uses

func (fake *Identity) ValidateCallCount() int

func (*Identity) ValidateReturns Uses

func (fake *Identity) ValidateReturns(result1 error)

func (*Identity) ValidateReturnsOnCall Uses

func (fake *Identity) ValidateReturnsOnCall(i int, result1 error)

func (*Identity) Verify Uses

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

func (*Identity) VerifyArgsForCall Uses

func (fake *Identity) VerifyArgsForCall(i int) ([]byte, []byte)

func (*Identity) VerifyCallCount Uses

func (fake *Identity) VerifyCallCount() int

func (*Identity) VerifyReturns Uses

func (fake *Identity) VerifyReturns(result1 error)

func (*Identity) VerifyReturnsOnCall Uses

func (fake *Identity) VerifyReturnsOnCall(i int, result1 error)

type MSPManager Uses

type MSPManager struct {
    DeserializeIdentityStub func(serializedIdentity []byte) (msp.Identity, error)

    IsWellFormedStub func(identity *mspprotos.SerializedIdentity) error

    SetupStub func(msps []msp.MSP) error

    GetMSPsStub func() (map[string]msp.MSP, error)
    // contains filtered or unexported fields
}

func (*MSPManager) DeserializeIdentity Uses

func (fake *MSPManager) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)

func (*MSPManager) DeserializeIdentityArgsForCall Uses

func (fake *MSPManager) DeserializeIdentityArgsForCall(i int) []byte

func (*MSPManager) DeserializeIdentityCallCount Uses

func (fake *MSPManager) DeserializeIdentityCallCount() int

func (*MSPManager) DeserializeIdentityReturns Uses

func (fake *MSPManager) DeserializeIdentityReturns(result1 msp.Identity, result2 error)

func (*MSPManager) DeserializeIdentityReturnsOnCall Uses

func (fake *MSPManager) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error)

func (*MSPManager) GetMSPs Uses

func (fake *MSPManager) GetMSPs() (map[string]msp.MSP, error)

func (*MSPManager) GetMSPsCallCount Uses

func (fake *MSPManager) GetMSPsCallCount() int

func (*MSPManager) GetMSPsReturns Uses

func (fake *MSPManager) GetMSPsReturns(result1 map[string]msp.MSP, result2 error)

func (*MSPManager) GetMSPsReturnsOnCall Uses

func (fake *MSPManager) GetMSPsReturnsOnCall(i int, result1 map[string]msp.MSP, result2 error)

func (*MSPManager) Invocations Uses

func (fake *MSPManager) Invocations() map[string][][]interface{}

func (*MSPManager) IsWellFormed Uses

func (fake *MSPManager) IsWellFormed(identity *mspprotos.SerializedIdentity) error

func (*MSPManager) IsWellFormedArgsForCall Uses

func (fake *MSPManager) IsWellFormedArgsForCall(i int) *mspprotos.SerializedIdentity

func (*MSPManager) IsWellFormedCallCount Uses

func (fake *MSPManager) IsWellFormedCallCount() int

func (*MSPManager) IsWellFormedReturns Uses

func (fake *MSPManager) IsWellFormedReturns(result1 error)

func (*MSPManager) IsWellFormedReturnsOnCall Uses

func (fake *MSPManager) IsWellFormedReturnsOnCall(i int, result1 error)

func (*MSPManager) Setup Uses

func (fake *MSPManager) Setup(msps []msp.MSP) error

func (*MSPManager) SetupArgsForCall Uses

func (fake *MSPManager) SetupArgsForCall(i int) []msp.MSP

func (*MSPManager) SetupCallCount Uses

func (fake *MSPManager) SetupCallCount() int

func (*MSPManager) SetupReturns Uses

func (fake *MSPManager) SetupReturns(result1 error)

func (*MSPManager) SetupReturnsOnCall Uses

func (fake *MSPManager) SetupReturnsOnCall(i int, result1 error)

type Resources Uses

type Resources struct {
    ConfigtxValidatorStub func() configtx.Validator

    PolicyManagerStub func() policies.Manager

    ChannelConfigStub func() channelconfig.Channel

    OrdererConfigStub func() (channelconfig.Orderer, bool)

    ConsortiumsConfigStub func() (channelconfig.Consortiums, bool)

    ApplicationConfigStub func() (channelconfig.Application, bool)

    MSPManagerStub func() msp.MSPManager

    ValidateNewStub func(resources channelconfig.Resources) error
    // contains filtered or unexported fields
}

func (*Resources) ApplicationConfig Uses

func (fake *Resources) ApplicationConfig() (channelconfig.Application, bool)

func (*Resources) ApplicationConfigCallCount Uses

func (fake *Resources) ApplicationConfigCallCount() int

func (*Resources) ApplicationConfigReturns Uses

func (fake *Resources) ApplicationConfigReturns(result1 channelconfig.Application, result2 bool)

func (*Resources) ApplicationConfigReturnsOnCall Uses

func (fake *Resources) ApplicationConfigReturnsOnCall(i int, result1 channelconfig.Application, result2 bool)

func (*Resources) ChannelConfig Uses

func (fake *Resources) ChannelConfig() channelconfig.Channel

func (*Resources) ChannelConfigCallCount Uses

func (fake *Resources) ChannelConfigCallCount() int

func (*Resources) ChannelConfigReturns Uses

func (fake *Resources) ChannelConfigReturns(result1 channelconfig.Channel)

func (*Resources) ChannelConfigReturnsOnCall Uses

func (fake *Resources) ChannelConfigReturnsOnCall(i int, result1 channelconfig.Channel)

func (*Resources) ConfigtxValidator Uses

func (fake *Resources) ConfigtxValidator() configtx.Validator

func (*Resources) ConfigtxValidatorCallCount Uses

func (fake *Resources) ConfigtxValidatorCallCount() int

func (*Resources) ConfigtxValidatorReturns Uses

func (fake *Resources) ConfigtxValidatorReturns(result1 configtx.Validator)

func (*Resources) ConfigtxValidatorReturnsOnCall Uses

func (fake *Resources) ConfigtxValidatorReturnsOnCall(i int, result1 configtx.Validator)

func (*Resources) ConsortiumsConfig Uses

func (fake *Resources) ConsortiumsConfig() (channelconfig.Consortiums, bool)

func (*Resources) ConsortiumsConfigCallCount Uses

func (fake *Resources) ConsortiumsConfigCallCount() int

func (*Resources) ConsortiumsConfigReturns Uses

func (fake *Resources) ConsortiumsConfigReturns(result1 channelconfig.Consortiums, result2 bool)

func (*Resources) ConsortiumsConfigReturnsOnCall Uses

func (fake *Resources) ConsortiumsConfigReturnsOnCall(i int, result1 channelconfig.Consortiums, result2 bool)

func (*Resources) Invocations Uses

func (fake *Resources) Invocations() map[string][][]interface{}

func (*Resources) MSPManager Uses

func (fake *Resources) MSPManager() msp.MSPManager

func (*Resources) MSPManagerCallCount Uses

func (fake *Resources) MSPManagerCallCount() int

func (*Resources) MSPManagerReturns Uses

func (fake *Resources) MSPManagerReturns(result1 msp.MSPManager)

func (*Resources) MSPManagerReturnsOnCall Uses

func (fake *Resources) MSPManagerReturnsOnCall(i int, result1 msp.MSPManager)

func (*Resources) OrdererConfig Uses

func (fake *Resources) OrdererConfig() (channelconfig.Orderer, bool)

func (*Resources) OrdererConfigCallCount Uses

func (fake *Resources) OrdererConfigCallCount() int

func (*Resources) OrdererConfigReturns Uses

func (fake *Resources) OrdererConfigReturns(result1 channelconfig.Orderer, result2 bool)

func (*Resources) OrdererConfigReturnsOnCall Uses

func (fake *Resources) OrdererConfigReturnsOnCall(i int, result1 channelconfig.Orderer, result2 bool)

func (*Resources) PolicyManager Uses

func (fake *Resources) PolicyManager() policies.Manager

func (*Resources) PolicyManagerCallCount Uses

func (fake *Resources) PolicyManagerCallCount() int

func (*Resources) PolicyManagerReturns Uses

func (fake *Resources) PolicyManagerReturns(result1 policies.Manager)

func (*Resources) PolicyManagerReturnsOnCall Uses

func (fake *Resources) PolicyManagerReturnsOnCall(i int, result1 policies.Manager)

func (*Resources) ValidateNew Uses

func (fake *Resources) ValidateNew(resources channelconfig.Resources) error

func (*Resources) ValidateNewArgsForCall Uses

func (fake *Resources) ValidateNewArgsForCall(i int) channelconfig.Resources

func (*Resources) ValidateNewCallCount Uses

func (fake *Resources) ValidateNewCallCount() int

func (*Resources) ValidateNewReturns Uses

func (fake *Resources) ValidateNewReturns(result1 error)

func (*Resources) ValidateNewReturnsOnCall Uses

func (fake *Resources) ValidateNewReturnsOnCall(i int, result1 error)

type Verifier Uses

type Verifier struct {
    VerifyByChannelStub func(channel string, sd *cb.SignedData) error
    // contains filtered or unexported fields
}

func (*Verifier) Invocations Uses

func (fake *Verifier) Invocations() map[string][][]interface{}

func (*Verifier) VerifyByChannel Uses

func (fake *Verifier) VerifyByChannel(channel string, sd *cb.SignedData) error

func (*Verifier) VerifyByChannelArgsForCall Uses

func (fake *Verifier) VerifyByChannelArgsForCall(i int) (string, *cb.SignedData)

func (*Verifier) VerifyByChannelCallCount Uses

func (fake *Verifier) VerifyByChannelCallCount() int

func (*Verifier) VerifyByChannelReturns Uses

func (fake *Verifier) VerifyByChannelReturns(result1 error)

func (*Verifier) VerifyByChannelReturnsOnCall Uses

func (fake *Verifier) VerifyByChannelReturnsOnCall(i int, result1 error)

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