fabric: github.com/hyperledger/fabric/core/ledger/mock Index | Files

package mock

import "github.com/hyperledger/fabric/core/ledger/mock"

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

deployed_ccinfo_provider.go health_check_registry.go membership_info_provider.go state_listener.go

type DeployedChaincodeInfoProvider Uses

type DeployedChaincodeInfoProvider struct {
    NamespacesStub func() []string

    UpdatedChaincodesStub func(stateUpdates map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error)

    ChaincodeInfoStub func(chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)

    CollectionInfoStub func(chaincodeName, collectionName string, qe ledger.SimpleQueryExecutor) (*common.StaticCollectionConfig, error)
    // contains filtered or unexported fields
}

func (*DeployedChaincodeInfoProvider) ChaincodeInfo Uses

func (fake *DeployedChaincodeInfoProvider) ChaincodeInfo(chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)

func (*DeployedChaincodeInfoProvider) ChaincodeInfoArgsForCall Uses

func (fake *DeployedChaincodeInfoProvider) ChaincodeInfoArgsForCall(i int) (string, ledger.SimpleQueryExecutor)

func (*DeployedChaincodeInfoProvider) ChaincodeInfoCallCount Uses

func (fake *DeployedChaincodeInfoProvider) ChaincodeInfoCallCount() int

func (*DeployedChaincodeInfoProvider) ChaincodeInfoReturns Uses

func (fake *DeployedChaincodeInfoProvider) ChaincodeInfoReturns(result1 *ledger.DeployedChaincodeInfo, result2 error)

func (*DeployedChaincodeInfoProvider) ChaincodeInfoReturnsOnCall Uses

func (fake *DeployedChaincodeInfoProvider) ChaincodeInfoReturnsOnCall(i int, result1 *ledger.DeployedChaincodeInfo, result2 error)

func (*DeployedChaincodeInfoProvider) CollectionInfo Uses

func (fake *DeployedChaincodeInfoProvider) CollectionInfo(chaincodeName string, collectionName string, qe ledger.SimpleQueryExecutor) (*common.StaticCollectionConfig, error)

func (*DeployedChaincodeInfoProvider) CollectionInfoArgsForCall Uses

func (fake *DeployedChaincodeInfoProvider) CollectionInfoArgsForCall(i int) (string, string, ledger.SimpleQueryExecutor)

func (*DeployedChaincodeInfoProvider) CollectionInfoCallCount Uses

func (fake *DeployedChaincodeInfoProvider) CollectionInfoCallCount() int

func (*DeployedChaincodeInfoProvider) CollectionInfoReturns Uses

func (fake *DeployedChaincodeInfoProvider) CollectionInfoReturns(result1 *common.StaticCollectionConfig, result2 error)

func (*DeployedChaincodeInfoProvider) CollectionInfoReturnsOnCall Uses

func (fake *DeployedChaincodeInfoProvider) CollectionInfoReturnsOnCall(i int, result1 *common.StaticCollectionConfig, result2 error)

func (*DeployedChaincodeInfoProvider) Invocations Uses

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

func (*DeployedChaincodeInfoProvider) Namespaces Uses

func (fake *DeployedChaincodeInfoProvider) Namespaces() []string

func (*DeployedChaincodeInfoProvider) NamespacesCallCount Uses

func (fake *DeployedChaincodeInfoProvider) NamespacesCallCount() int

func (*DeployedChaincodeInfoProvider) NamespacesReturns Uses

func (fake *DeployedChaincodeInfoProvider) NamespacesReturns(result1 []string)

func (*DeployedChaincodeInfoProvider) NamespacesReturnsOnCall Uses

func (fake *DeployedChaincodeInfoProvider) NamespacesReturnsOnCall(i int, result1 []string)

func (*DeployedChaincodeInfoProvider) UpdatedChaincodes Uses

func (fake *DeployedChaincodeInfoProvider) UpdatedChaincodes(stateUpdates map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error)

func (*DeployedChaincodeInfoProvider) UpdatedChaincodesArgsForCall Uses

func (fake *DeployedChaincodeInfoProvider) UpdatedChaincodesArgsForCall(i int) map[string][]*kvrwset.KVWrite

func (*DeployedChaincodeInfoProvider) UpdatedChaincodesCallCount Uses

func (fake *DeployedChaincodeInfoProvider) UpdatedChaincodesCallCount() int

func (*DeployedChaincodeInfoProvider) UpdatedChaincodesReturns Uses

func (fake *DeployedChaincodeInfoProvider) UpdatedChaincodesReturns(result1 []*ledger.ChaincodeLifecycleInfo, result2 error)

func (*DeployedChaincodeInfoProvider) UpdatedChaincodesReturnsOnCall Uses

func (fake *DeployedChaincodeInfoProvider) UpdatedChaincodesReturnsOnCall(i int, result1 []*ledger.ChaincodeLifecycleInfo, result2 error)

type HealthCheckRegistry Uses

type HealthCheckRegistry struct {
    RegisterCheckerStub func(string, healthz.HealthChecker) error
    // contains filtered or unexported fields
}

func (*HealthCheckRegistry) Invocations Uses

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

func (*HealthCheckRegistry) RegisterChecker Uses

func (fake *HealthCheckRegistry) RegisterChecker(arg1 string, arg2 healthz.HealthChecker) error

func (*HealthCheckRegistry) RegisterCheckerArgsForCall Uses

func (fake *HealthCheckRegistry) RegisterCheckerArgsForCall(i int) (string, healthz.HealthChecker)

func (*HealthCheckRegistry) RegisterCheckerCallCount Uses

func (fake *HealthCheckRegistry) RegisterCheckerCallCount() int

func (*HealthCheckRegistry) RegisterCheckerCalls Uses

func (fake *HealthCheckRegistry) RegisterCheckerCalls(stub func(string, healthz.HealthChecker) error)

func (*HealthCheckRegistry) RegisterCheckerReturns Uses

func (fake *HealthCheckRegistry) RegisterCheckerReturns(result1 error)

func (*HealthCheckRegistry) RegisterCheckerReturnsOnCall Uses

func (fake *HealthCheckRegistry) RegisterCheckerReturnsOnCall(i int, result1 error)

type MembershipInfoProvider Uses

type MembershipInfoProvider struct {
    AmMemberOfStub func(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (bool, error)
    // contains filtered or unexported fields
}

func (*MembershipInfoProvider) AmMemberOf Uses

func (fake *MembershipInfoProvider) AmMemberOf(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (bool, error)

func (*MembershipInfoProvider) AmMemberOfArgsForCall Uses

func (fake *MembershipInfoProvider) AmMemberOfArgsForCall(i int) (string, *common.CollectionPolicyConfig)

func (*MembershipInfoProvider) AmMemberOfCallCount Uses

func (fake *MembershipInfoProvider) AmMemberOfCallCount() int

func (*MembershipInfoProvider) AmMemberOfReturns Uses

func (fake *MembershipInfoProvider) AmMemberOfReturns(result1 bool, result2 error)

func (*MembershipInfoProvider) AmMemberOfReturnsOnCall Uses

func (fake *MembershipInfoProvider) AmMemberOfReturnsOnCall(i int, result1 bool, result2 error)

func (*MembershipInfoProvider) Invocations Uses

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

type StateListener Uses

type StateListener struct {
    InterestedInNamespacesStub func() []string

    HandleStateUpdatesStub func(trigger *ledger.StateUpdateTrigger) error

    StateCommitDoneStub func(channelID string)
    // contains filtered or unexported fields
}

func (*StateListener) HandleStateUpdates Uses

func (fake *StateListener) HandleStateUpdates(trigger *ledger.StateUpdateTrigger) error

func (*StateListener) HandleStateUpdatesArgsForCall Uses

func (fake *StateListener) HandleStateUpdatesArgsForCall(i int) *ledger.StateUpdateTrigger

func (*StateListener) HandleStateUpdatesCallCount Uses

func (fake *StateListener) HandleStateUpdatesCallCount() int

func (*StateListener) HandleStateUpdatesReturns Uses

func (fake *StateListener) HandleStateUpdatesReturns(result1 error)

func (*StateListener) HandleStateUpdatesReturnsOnCall Uses

func (fake *StateListener) HandleStateUpdatesReturnsOnCall(i int, result1 error)

func (*StateListener) InterestedInNamespaces Uses

func (fake *StateListener) InterestedInNamespaces() []string

func (*StateListener) InterestedInNamespacesCallCount Uses

func (fake *StateListener) InterestedInNamespacesCallCount() int

func (*StateListener) InterestedInNamespacesReturns Uses

func (fake *StateListener) InterestedInNamespacesReturns(result1 []string)

func (*StateListener) InterestedInNamespacesReturnsOnCall Uses

func (fake *StateListener) InterestedInNamespacesReturnsOnCall(i int, result1 []string)

func (*StateListener) Invocations Uses

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

func (*StateListener) StateCommitDone Uses

func (fake *StateListener) StateCommitDone(channelID string)

func (*StateListener) StateCommitDoneArgsForCall Uses

func (fake *StateListener) StateCommitDoneArgsForCall(i int) string

func (*StateListener) StateCommitDoneCallCount Uses

func (fake *StateListener) StateCommitDoneCallCount() int

Package mock imports 5 packages (graph) and is imported by 2 packages. Updated 2019-01-21. Refresh now. Tools for package owners.