type ChanConfig struct { GetChannelConfigStub func(cid string) channelconfig.Resources // contains filtered or unexported fields }
func (fake *ChanConfig) GetChannelConfig(cid string) channelconfig.Resources
func (fake *ChanConfig) GetChannelConfigArgsForCall(i int) string
func (fake *ChanConfig) GetChannelConfigCallCount() int
func (fake *ChanConfig) GetChannelConfigReturns(result1 channelconfig.Resources)
func (fake *ChanConfig) GetChannelConfigReturnsOnCall(i int, result1 channelconfig.Resources)
func (fake *ChanConfig) Invocations() map[string][][]interface{}
ChannelPolicyManagerGetter is an autogenerated mock type for the ChannelPolicyManagerGetter type
type ChannelPolicyManagerGetter struct { mock.Mock }
func (_m *ChannelPolicyManagerGetter) Manager(channelID string) (policies.Manager, bool)
Manager provides a mock function with given fields: channelID
type ConfigBlockGetter struct { GetCurrConfigBlockStub func(channel string) *common.Block // contains filtered or unexported fields }
func (fake *ConfigBlockGetter) GetCurrConfigBlock(channel string) *common.Block
func (fake *ConfigBlockGetter) GetCurrConfigBlockArgsForCall(i int) string
func (fake *ConfigBlockGetter) GetCurrConfigBlockCallCount() int
func (fake *ConfigBlockGetter) GetCurrConfigBlockReturns(result1 *common.Block)
func (fake *ConfigBlockGetter) GetCurrConfigBlockReturnsOnCall(i int, result1 *common.Block)
func (fake *ConfigBlockGetter) Invocations() map[string][][]interface{}
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 (fake *ConfigtxValidator) ChainID() string
func (fake *ConfigtxValidator) ChainIDCallCount() int
func (fake *ConfigtxValidator) ChainIDReturns(result1 string)
func (fake *ConfigtxValidator) ChainIDReturnsOnCall(i int, result1 string)
func (fake *ConfigtxValidator) ConfigProto() *cb.Config
func (fake *ConfigtxValidator) ConfigProtoCallCount() int
func (fake *ConfigtxValidator) ConfigProtoReturns(result1 *cb.Config)
func (fake *ConfigtxValidator) ConfigProtoReturnsOnCall(i int, result1 *cb.Config)
func (fake *ConfigtxValidator) Invocations() map[string][][]interface{}
func (fake *ConfigtxValidator) ProposeConfigUpdate(configtx *cb.Envelope) (*cb.ConfigEnvelope, error)
func (fake *ConfigtxValidator) ProposeConfigUpdateArgsForCall(i int) *cb.Envelope
func (fake *ConfigtxValidator) ProposeConfigUpdateCallCount() int
func (fake *ConfigtxValidator) ProposeConfigUpdateReturns(result1 *cb.ConfigEnvelope, result2 error)
func (fake *ConfigtxValidator) ProposeConfigUpdateReturnsOnCall(i int, result1 *cb.ConfigEnvelope, result2 error)
func (fake *ConfigtxValidator) Sequence() uint64
func (fake *ConfigtxValidator) SequenceCallCount() int
func (fake *ConfigtxValidator) SequenceReturns(result1 uint64)
func (fake *ConfigtxValidator) SequenceReturnsOnCall(i int, result1 uint64)
func (fake *ConfigtxValidator) Validate(configEnv *cb.ConfigEnvelope) error
func (fake *ConfigtxValidator) ValidateArgsForCall(i int) *cb.ConfigEnvelope
func (fake *ConfigtxValidator) ValidateCallCount() int
func (fake *ConfigtxValidator) ValidateReturns(result1 error)
func (fake *ConfigtxValidator) ValidateReturnsOnCall(i int, result1 error)
type Evaluator struct { EvaluateStub func(signatureSet []*common2.SignedData) error // contains filtered or unexported fields }
func (fake *Evaluator) Evaluate(signatureSet []*common2.SignedData) error
func (fake *Evaluator) EvaluateArgsForCall(i int) []*common2.SignedData
func (fake *Evaluator) EvaluateCallCount() int
func (fake *Evaluator) EvaluateReturns(result1 error)
func (fake *Evaluator) EvaluateReturnsOnCall(i int, result1 error)
func (fake *Evaluator) Invocations() map[string][][]interface{}
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 (fake *Gossip) Accept(acceptor common.MessageAcceptor, passThrough bool) (<-chan *proto.GossipMessage, <-chan proto.ReceivedMessage)
func (fake *Gossip) AcceptArgsForCall(i int) (common.MessageAcceptor, bool)
func (fake *Gossip) AcceptCallCount() int
func (fake *Gossip) AcceptReturns(result1 <-chan *proto.GossipMessage, result2 <-chan proto.ReceivedMessage)
func (fake *Gossip) AcceptReturnsOnCall(i int, result1 <-chan *proto.GossipMessage, result2 <-chan proto.ReceivedMessage)
func (fake *Gossip) Gossip(msg *proto.GossipMessage)
func (fake *Gossip) GossipArgsForCall(i int) *proto.GossipMessage
func (fake *Gossip) GossipCallCount() int
func (fake *Gossip) IdentityInfo() api.PeerIdentitySet
func (fake *Gossip) IdentityInfoCallCount() int
func (fake *Gossip) IdentityInfoReturns(result1 api.PeerIdentitySet)
func (fake *Gossip) IdentityInfoReturnsOnCall(i int, result1 api.PeerIdentitySet)
func (fake *Gossip) Invocations() map[string][][]interface{}
func (fake *Gossip) JoinChan(joinMsg api.JoinChannelMessage, chainID common.ChainID)
func (fake *Gossip) JoinChanArgsForCall(i int) (api.JoinChannelMessage, common.ChainID)
func (fake *Gossip) JoinChanCallCount() int
func (fake *Gossip) LeaveChan(chainID common.ChainID)
func (fake *Gossip) LeaveChanArgsForCall(i int) common.ChainID
func (fake *Gossip) LeaveChanCallCount() int
func (fake *Gossip) PeerFilter(channel common.ChainID, messagePredicate api.SubChannelSelectionCriteria) (filter.RoutingFilter, error)
func (fake *Gossip) PeerFilterArgsForCall(i int) (common.ChainID, api.SubChannelSelectionCriteria)
func (fake *Gossip) PeerFilterCallCount() int
func (fake *Gossip) PeerFilterReturns(result1 filter.RoutingFilter, result2 error)
func (fake *Gossip) PeerFilterReturnsOnCall(i int, result1 filter.RoutingFilter, result2 error)
func (fake *Gossip) Peers() []discovery.NetworkMember
func (fake *Gossip) PeersCallCount() int
func (fake *Gossip) PeersOfChannel(arg1 common.ChainID) []discovery.NetworkMember
func (fake *Gossip) PeersOfChannelArgsForCall(i int) common.ChainID
func (fake *Gossip) PeersOfChannelCallCount() int
func (fake *Gossip) PeersOfChannelReturns(result1 []discovery.NetworkMember)
func (fake *Gossip) PeersOfChannelReturnsOnCall(i int, result1 []discovery.NetworkMember)
func (fake *Gossip) PeersReturns(result1 []discovery.NetworkMember)
func (fake *Gossip) PeersReturnsOnCall(i int, result1 []discovery.NetworkMember)
func (fake *Gossip) SelfChannelInfo(arg1 common.ChainID) *proto.SignedGossipMessage
func (fake *Gossip) SelfChannelInfoArgsForCall(i int) common.ChainID
func (fake *Gossip) SelfChannelInfoCallCount() int
func (fake *Gossip) SelfChannelInfoReturns(result1 *proto.SignedGossipMessage)
func (fake *Gossip) SelfChannelInfoReturnsOnCall(i int, result1 *proto.SignedGossipMessage)
func (fake *Gossip) SelfMembershipInfo() discovery.NetworkMember
func (fake *Gossip) SelfMembershipInfoCallCount() int
func (fake *Gossip) SelfMembershipInfoReturns(result1 discovery.NetworkMember)
func (fake *Gossip) SelfMembershipInfoReturnsOnCall(i int, result1 discovery.NetworkMember)
func (fake *Gossip) Send(msg *proto.GossipMessage, peers ...*comm.RemotePeer)
func (fake *Gossip) SendArgsForCall(i int) (*proto.GossipMessage, []*comm.RemotePeer)
func (fake *Gossip) SendByCriteria(arg1 *proto.SignedGossipMessage, arg2 gossip.SendCriteria) error
func (fake *Gossip) SendByCriteriaArgsForCall(i int) (*proto.SignedGossipMessage, gossip.SendCriteria)
func (fake *Gossip) SendByCriteriaCallCount() int
func (fake *Gossip) SendByCriteriaReturns(result1 error)
func (fake *Gossip) SendByCriteriaReturnsOnCall(i int, result1 error)
func (fake *Gossip) SendCallCount() int
func (fake *Gossip) Stop()
func (fake *Gossip) StopCallCount() int
func (fake *Gossip) SuspectPeers(s api.PeerSuspector)
func (fake *Gossip) SuspectPeersArgsForCall(i int) api.PeerSuspector
func (fake *Gossip) SuspectPeersCallCount() int
func (fake *Gossip) UpdateChaincodes(chaincode []*proto.Chaincode, chainID common.ChainID)
func (fake *Gossip) UpdateChaincodesArgsForCall(i int) ([]*proto.Chaincode, common.ChainID)
func (fake *Gossip) UpdateChaincodesCallCount() int
func (fake *Gossip) UpdateLedgerHeight(height uint64, chainID common.ChainID)
func (fake *Gossip) UpdateLedgerHeightArgsForCall(i int) (uint64, common.ChainID)
func (fake *Gossip) UpdateLedgerHeightCallCount() int
func (fake *Gossip) UpdateMetadata(metadata []byte)
func (fake *Gossip) UpdateMetadataArgsForCall(i int) []byte
func (fake *Gossip) UpdateMetadataCallCount() int
GossipSupport is an autogenerated mock type for the GossipSupport type
type GossipSupport struct { mock.Mock }
func (_m *GossipSupport) ChannelExists(channel string) bool
ChannelExists provides a mock function with given fields: channel
func (_m *GossipSupport) IdentityInfo() api.PeerIdentitySet
IdentityInfo provides a mock function with given fields:
func (_m *GossipSupport) Peers() gossipdiscovery.Members
Peers provides a mock function with given fields:
func (_m *GossipSupport) PeersOfChannel(_a0 common.ChainID) gossipdiscovery.Members
PeersOfChannel provides a mock function with given fields: _a0
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 (fake *Identity) Anonymous() bool
func (fake *Identity) AnonymousCallCount() int
func (fake *Identity) AnonymousReturns(result1 bool)
func (fake *Identity) AnonymousReturnsOnCall(i int, result1 bool)
func (fake *Identity) ExpiresAt() time.Time
func (fake *Identity) ExpiresAtCallCount() int
func (fake *Identity) ExpiresAtReturns(result1 time.Time)
func (fake *Identity) ExpiresAtReturnsOnCall(i int, result1 time.Time)
func (fake *Identity) GetIdentifier() *msp.IdentityIdentifier
func (fake *Identity) GetIdentifierCallCount() int
func (fake *Identity) GetIdentifierReturns(result1 *msp.IdentityIdentifier)
func (fake *Identity) GetIdentifierReturnsOnCall(i int, result1 *msp.IdentityIdentifier)
func (fake *Identity) GetMSPIdentifier() string
func (fake *Identity) GetMSPIdentifierCallCount() int
func (fake *Identity) GetMSPIdentifierReturns(result1 string)
func (fake *Identity) GetMSPIdentifierReturnsOnCall(i int, result1 string)
func (fake *Identity) GetOrganizationalUnits() []*msp.OUIdentifier
func (fake *Identity) GetOrganizationalUnitsCallCount() int
func (fake *Identity) GetOrganizationalUnitsReturns(result1 []*msp.OUIdentifier)
func (fake *Identity) GetOrganizationalUnitsReturnsOnCall(i int, result1 []*msp.OUIdentifier)
func (fake *Identity) Invocations() map[string][][]interface{}
func (fake *Identity) SatisfiesPrincipal(principal *mspprotos.MSPPrincipal) error
func (fake *Identity) SatisfiesPrincipalArgsForCall(i int) *mspprotos.MSPPrincipal
func (fake *Identity) SatisfiesPrincipalCallCount() int
func (fake *Identity) SatisfiesPrincipalReturns(result1 error)
func (fake *Identity) SatisfiesPrincipalReturnsOnCall(i int, result1 error)
func (fake *Identity) Serialize() ([]byte, error)
func (fake *Identity) SerializeCallCount() int
func (fake *Identity) SerializeReturns(result1 []byte, result2 error)
func (fake *Identity) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
func (fake *Identity) Validate() error
func (fake *Identity) ValidateCallCount() int
func (fake *Identity) ValidateReturns(result1 error)
func (fake *Identity) ValidateReturnsOnCall(i int, result1 error)
func (fake *Identity) Verify(msg []byte, sig []byte) error
func (fake *Identity) VerifyArgsForCall(i int) ([]byte, []byte)
func (fake *Identity) VerifyCallCount() int
func (fake *Identity) VerifyReturns(result1 error)
func (fake *Identity) VerifyReturnsOnCall(i int, result1 error)
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 (fake *MSPManager) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
func (fake *MSPManager) DeserializeIdentityArgsForCall(i int) []byte
func (fake *MSPManager) DeserializeIdentityCallCount() int
func (fake *MSPManager) DeserializeIdentityReturns(result1 msp.Identity, result2 error)
func (fake *MSPManager) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error)
func (fake *MSPManager) GetMSPs() (map[string]msp.MSP, error)
func (fake *MSPManager) GetMSPsCallCount() int
func (fake *MSPManager) GetMSPsReturns(result1 map[string]msp.MSP, result2 error)
func (fake *MSPManager) GetMSPsReturnsOnCall(i int, result1 map[string]msp.MSP, result2 error)
func (fake *MSPManager) Invocations() map[string][][]interface{}
func (fake *MSPManager) IsWellFormed(identity *mspprotos.SerializedIdentity) error
func (fake *MSPManager) IsWellFormedArgsForCall(i int) *mspprotos.SerializedIdentity
func (fake *MSPManager) IsWellFormedCallCount() int
func (fake *MSPManager) IsWellFormedReturns(result1 error)
func (fake *MSPManager) IsWellFormedReturnsOnCall(i int, result1 error)
func (fake *MSPManager) Setup(msps []msp.MSP) error
func (fake *MSPManager) SetupArgsForCall(i int) []msp.MSP
func (fake *MSPManager) SetupCallCount() int
func (fake *MSPManager) SetupReturns(result1 error)
func (fake *MSPManager) SetupReturnsOnCall(i int, result1 error)
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 (fake *Resources) ApplicationConfig() (channelconfig.Application, bool)
func (fake *Resources) ApplicationConfigCallCount() int
func (fake *Resources) ApplicationConfigReturns(result1 channelconfig.Application, result2 bool)
func (fake *Resources) ApplicationConfigReturnsOnCall(i int, result1 channelconfig.Application, result2 bool)
func (fake *Resources) ChannelConfig() channelconfig.Channel
func (fake *Resources) ChannelConfigCallCount() int
func (fake *Resources) ChannelConfigReturns(result1 channelconfig.Channel)
func (fake *Resources) ChannelConfigReturnsOnCall(i int, result1 channelconfig.Channel)
func (fake *Resources) ConfigtxValidator() configtx.Validator
func (fake *Resources) ConfigtxValidatorCallCount() int
func (fake *Resources) ConfigtxValidatorReturns(result1 configtx.Validator)
func (fake *Resources) ConfigtxValidatorReturnsOnCall(i int, result1 configtx.Validator)
func (fake *Resources) ConsortiumsConfig() (channelconfig.Consortiums, bool)
func (fake *Resources) ConsortiumsConfigCallCount() int
func (fake *Resources) ConsortiumsConfigReturns(result1 channelconfig.Consortiums, result2 bool)
func (fake *Resources) ConsortiumsConfigReturnsOnCall(i int, result1 channelconfig.Consortiums, result2 bool)
func (fake *Resources) Invocations() map[string][][]interface{}
func (fake *Resources) MSPManager() msp.MSPManager
func (fake *Resources) MSPManagerCallCount() int
func (fake *Resources) MSPManagerReturns(result1 msp.MSPManager)
func (fake *Resources) MSPManagerReturnsOnCall(i int, result1 msp.MSPManager)
func (fake *Resources) OrdererConfig() (channelconfig.Orderer, bool)
func (fake *Resources) OrdererConfigCallCount() int
func (fake *Resources) OrdererConfigReturns(result1 channelconfig.Orderer, result2 bool)
func (fake *Resources) OrdererConfigReturnsOnCall(i int, result1 channelconfig.Orderer, result2 bool)
func (fake *Resources) PolicyManager() policies.Manager
func (fake *Resources) PolicyManagerCallCount() int
func (fake *Resources) PolicyManagerReturns(result1 policies.Manager)
func (fake *Resources) PolicyManagerReturnsOnCall(i int, result1 policies.Manager)
func (fake *Resources) ValidateNew(resources channelconfig.Resources) error
func (fake *Resources) ValidateNewArgsForCall(i int) channelconfig.Resources
func (fake *Resources) ValidateNewCallCount() int
func (fake *Resources) ValidateNewReturns(result1 error)
func (fake *Resources) ValidateNewReturnsOnCall(i int, result1 error)
type Verifier struct { VerifyByChannelStub func(channel string, sd *cb.SignedData) error // contains filtered or unexported fields }
func (fake *Verifier) Invocations() map[string][][]interface{}
func (fake *Verifier) VerifyByChannel(channel string, sd *cb.SignedData) error
func (fake *Verifier) VerifyByChannelArgsForCall(i int) (string, *cb.SignedData)
func (fake *Verifier) VerifyByChannelCallCount() int
func (fake *Verifier) VerifyByChannelReturns(result1 error)
func (fake *Verifier) VerifyByChannelReturnsOnCall(i int, result1 error)