fabric: github.com/hyperledger/fabric/core/cclifecycle/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/core/cclifecycle/mocks"

Index

Package Files

enumerator.go metadata_change_listener.go query.go query_creator.go

type Enumerator Uses

type Enumerator struct {
    mock.Mock
}

Enumerator is an autogenerated mock type for the Enumerator type

func (*Enumerator) Enumerate Uses

func (_m *Enumerator) Enumerate() ([]chaincode.InstalledChaincode, error)

Enumerate provides a mock function with given fields:

type MetadataChangeListener Uses

type MetadataChangeListener struct {
    mock.Mock
}

MetadataChangeListener is an autogenerated mock type for the MetadataChangeListener type

func (*MetadataChangeListener) HandleMetadataUpdate Uses

func (_m *MetadataChangeListener) HandleMetadataUpdate(channel string, chaincodes chaincode.MetadataSet)

HandleMetadataUpdate provides a mock function with given fields: channel, chaincodes

type Query Uses

type Query struct {
    mock.Mock
}

Query is an autogenerated mock type for the Query type

func (*Query) Done Uses

func (_m *Query) Done()

Done provides a mock function with given fields:

func (*Query) GetState Uses

func (_m *Query) GetState(namespace string, key string) ([]byte, error)

GetState provides a mock function with given fields: namespace, key

type QueryCreator Uses

type QueryCreator struct {
    mock.Mock
}

QueryCreator is an autogenerated mock type for the QueryCreator type

func (*QueryCreator) NewQuery Uses

func (_m *QueryCreator) NewQuery() (cclifecycle.Query, error)

NewQuery provides a mock function with given fields:

Package mocks imports 3 packages (graph). Updated 2019-11-14. Refresh now. Tools for package owners.