fabric: github.com/hyperledger/fabric/token/client/mock Index | Files

package mock

import "github.com/hyperledger/fabric/token/client/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.

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 counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

broadcast.go deliver_client.go deliver_filtered.go fabric_tx_submitter.go identity.go orderer_client.go prover.go prover_client.go signer_identity.go signing_identity.go

type Broadcast Uses

type Broadcast struct {
    SendStub func(m *common.Envelope) error

    RecvStub func() (*ab.BroadcastResponse, error)

    CloseSendStub func() error
    // contains filtered or unexported fields
}

func (*Broadcast) CloseSend Uses

func (fake *Broadcast) CloseSend() error

func (*Broadcast) CloseSendCallCount Uses

func (fake *Broadcast) CloseSendCallCount() int

func (*Broadcast) CloseSendReturns Uses

func (fake *Broadcast) CloseSendReturns(result1 error)

func (*Broadcast) CloseSendReturnsOnCall Uses

func (fake *Broadcast) CloseSendReturnsOnCall(i int, result1 error)

func (*Broadcast) Invocations Uses

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

func (*Broadcast) Recv Uses

func (fake *Broadcast) Recv() (*ab.BroadcastResponse, error)

func (*Broadcast) RecvCallCount Uses

func (fake *Broadcast) RecvCallCount() int

func (*Broadcast) RecvReturns Uses

func (fake *Broadcast) RecvReturns(result1 *ab.BroadcastResponse, result2 error)

func (*Broadcast) RecvReturnsOnCall Uses

func (fake *Broadcast) RecvReturnsOnCall(i int, result1 *ab.BroadcastResponse, result2 error)

func (*Broadcast) Send Uses

func (fake *Broadcast) Send(m *common.Envelope) error

func (*Broadcast) SendArgsForCall Uses

func (fake *Broadcast) SendArgsForCall(i int) *common.Envelope

func (*Broadcast) SendCallCount Uses

func (fake *Broadcast) SendCallCount() int

func (*Broadcast) SendReturns Uses

func (fake *Broadcast) SendReturns(result1 error)

func (*Broadcast) SendReturnsOnCall Uses

func (fake *Broadcast) SendReturnsOnCall(i int, result1 error)

type DeliverClient Uses

type DeliverClient struct {
    NewDeliverFilteredStub func(ctx context.Context, opts ...grpc.CallOption) (client.DeliverFiltered, error)

    CertificateStub func() *tls.Certificate
    // contains filtered or unexported fields
}

func (*DeliverClient) Certificate Uses

func (fake *DeliverClient) Certificate() *tls.Certificate

func (*DeliverClient) CertificateCallCount Uses

func (fake *DeliverClient) CertificateCallCount() int

func (*DeliverClient) CertificateReturns Uses

func (fake *DeliverClient) CertificateReturns(result1 *tls.Certificate)

func (*DeliverClient) CertificateReturnsOnCall Uses

func (fake *DeliverClient) CertificateReturnsOnCall(i int, result1 *tls.Certificate)

func (*DeliverClient) Invocations Uses

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

func (*DeliverClient) NewDeliverFiltered Uses

func (fake *DeliverClient) NewDeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (client.DeliverFiltered, error)

func (*DeliverClient) NewDeliverFilteredArgsForCall Uses

func (fake *DeliverClient) NewDeliverFilteredArgsForCall(i int) (context.Context, []grpc.CallOption)

func (*DeliverClient) NewDeliverFilteredCallCount Uses

func (fake *DeliverClient) NewDeliverFilteredCallCount() int

func (*DeliverClient) NewDeliverFilteredReturns Uses

func (fake *DeliverClient) NewDeliverFilteredReturns(result1 client.DeliverFiltered, result2 error)

func (*DeliverClient) NewDeliverFilteredReturnsOnCall Uses

func (fake *DeliverClient) NewDeliverFilteredReturnsOnCall(i int, result1 client.DeliverFiltered, result2 error)

type DeliverFiltered Uses

type DeliverFiltered struct {
    SendStub func(*common.Envelope) error

    RecvStub func() (*pb.DeliverResponse, error)

    CloseSendStub func() error
    // contains filtered or unexported fields
}

func (*DeliverFiltered) CloseSend Uses

func (fake *DeliverFiltered) CloseSend() error

func (*DeliverFiltered) CloseSendCallCount Uses

func (fake *DeliverFiltered) CloseSendCallCount() int

func (*DeliverFiltered) CloseSendReturns Uses

func (fake *DeliverFiltered) CloseSendReturns(result1 error)

func (*DeliverFiltered) CloseSendReturnsOnCall Uses

func (fake *DeliverFiltered) CloseSendReturnsOnCall(i int, result1 error)

func (*DeliverFiltered) Invocations Uses

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

func (*DeliverFiltered) Recv Uses

func (fake *DeliverFiltered) Recv() (*pb.DeliverResponse, error)

func (*DeliverFiltered) RecvCallCount Uses

func (fake *DeliverFiltered) RecvCallCount() int

func (*DeliverFiltered) RecvReturns Uses

func (fake *DeliverFiltered) RecvReturns(result1 *pb.DeliverResponse, result2 error)

func (*DeliverFiltered) RecvReturnsOnCall Uses

func (fake *DeliverFiltered) RecvReturnsOnCall(i int, result1 *pb.DeliverResponse, result2 error)

func (*DeliverFiltered) Send Uses

func (fake *DeliverFiltered) Send(arg1 *common.Envelope) error

func (*DeliverFiltered) SendArgsForCall Uses

func (fake *DeliverFiltered) SendArgsForCall(i int) *common.Envelope

func (*DeliverFiltered) SendCallCount Uses

func (fake *DeliverFiltered) SendCallCount() int

func (*DeliverFiltered) SendReturns Uses

func (fake *DeliverFiltered) SendReturns(result1 error)

func (*DeliverFiltered) SendReturnsOnCall Uses

func (fake *DeliverFiltered) SendReturnsOnCall(i int, result1 error)

type FabricTxSubmitter Uses

type FabricTxSubmitter struct {
    SubmitStub func([]byte) error
    // contains filtered or unexported fields
}

func (*FabricTxSubmitter) Invocations Uses

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

func (*FabricTxSubmitter) Submit Uses

func (fake *FabricTxSubmitter) Submit(arg1 []byte) error

func (*FabricTxSubmitter) SubmitArgsForCall Uses

func (fake *FabricTxSubmitter) SubmitArgsForCall(i int) []byte

func (*FabricTxSubmitter) SubmitCallCount Uses

func (fake *FabricTxSubmitter) SubmitCallCount() int

func (*FabricTxSubmitter) SubmitCalls Uses

func (fake *FabricTxSubmitter) SubmitCalls(stub func([]byte) error)

func (*FabricTxSubmitter) SubmitReturns Uses

func (fake *FabricTxSubmitter) SubmitReturns(result1 error)

func (*FabricTxSubmitter) SubmitReturnsOnCall Uses

func (fake *FabricTxSubmitter) SubmitReturnsOnCall(i int, result1 error)

type Identity Uses

type Identity struct {
    SerializeStub func() ([]byte, error)
    // contains filtered or unexported fields
}

func (*Identity) Invocations Uses

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

func (*Identity) Serialize Uses

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

func (*Identity) SerializeCallCount Uses

func (fake *Identity) SerializeCallCount() int

func (*Identity) SerializeCalls Uses

func (fake *Identity) SerializeCalls(stub func() ([]byte, error))

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)

type OrdererClient Uses

type OrdererClient struct {
    NewBroadcastStub func(ctx context.Context, opts ...grpc.CallOption) (client.Broadcast, error)

    CertificateStub func() *tls.Certificate
    // contains filtered or unexported fields
}

func (*OrdererClient) Certificate Uses

func (fake *OrdererClient) Certificate() *tls.Certificate

func (*OrdererClient) CertificateCallCount Uses

func (fake *OrdererClient) CertificateCallCount() int

func (*OrdererClient) CertificateReturns Uses

func (fake *OrdererClient) CertificateReturns(result1 *tls.Certificate)

func (*OrdererClient) CertificateReturnsOnCall Uses

func (fake *OrdererClient) CertificateReturnsOnCall(i int, result1 *tls.Certificate)

func (*OrdererClient) Invocations Uses

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

func (*OrdererClient) NewBroadcast Uses

func (fake *OrdererClient) NewBroadcast(ctx context.Context, opts ...grpc.CallOption) (client.Broadcast, error)

func (*OrdererClient) NewBroadcastArgsForCall Uses

func (fake *OrdererClient) NewBroadcastArgsForCall(i int) (context.Context, []grpc.CallOption)

func (*OrdererClient) NewBroadcastCallCount Uses

func (fake *OrdererClient) NewBroadcastCallCount() int

func (*OrdererClient) NewBroadcastReturns Uses

func (fake *OrdererClient) NewBroadcastReturns(result1 client.Broadcast, result2 error)

func (*OrdererClient) NewBroadcastReturnsOnCall Uses

func (fake *OrdererClient) NewBroadcastReturnsOnCall(i int, result1 client.Broadcast, result2 error)

type Prover Uses

type Prover struct {
    RequestImportStub func([]*token.TokenToIssue, tokena.SigningIdentity) ([]byte, error)

    RequestTransferStub func([][]byte, []*token.RecipientTransferShare, tokena.SigningIdentity) ([]byte, error)
    // contains filtered or unexported fields
}

func (*Prover) Invocations Uses

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

func (*Prover) RequestImport Uses

func (fake *Prover) RequestImport(arg1 []*token.TokenToIssue, arg2 tokena.SigningIdentity) ([]byte, error)

func (*Prover) RequestImportArgsForCall Uses

func (fake *Prover) RequestImportArgsForCall(i int) ([]*token.TokenToIssue, tokena.SigningIdentity)

func (*Prover) RequestImportCallCount Uses

func (fake *Prover) RequestImportCallCount() int

func (*Prover) RequestImportCalls Uses

func (fake *Prover) RequestImportCalls(stub func([]*token.TokenToIssue, tokena.SigningIdentity) ([]byte, error))

func (*Prover) RequestImportReturns Uses

func (fake *Prover) RequestImportReturns(result1 []byte, result2 error)

func (*Prover) RequestImportReturnsOnCall Uses

func (fake *Prover) RequestImportReturnsOnCall(i int, result1 []byte, result2 error)

func (*Prover) RequestTransfer Uses

func (fake *Prover) RequestTransfer(arg1 [][]byte, arg2 []*token.RecipientTransferShare, arg3 tokena.SigningIdentity) ([]byte, error)

func (*Prover) RequestTransferArgsForCall Uses

func (fake *Prover) RequestTransferArgsForCall(i int) ([][]byte, []*token.RecipientTransferShare, tokena.SigningIdentity)

func (*Prover) RequestTransferCallCount Uses

func (fake *Prover) RequestTransferCallCount() int

func (*Prover) RequestTransferCalls Uses

func (fake *Prover) RequestTransferCalls(stub func([][]byte, []*token.RecipientTransferShare, tokena.SigningIdentity) ([]byte, error))

func (*Prover) RequestTransferReturns Uses

func (fake *Prover) RequestTransferReturns(result1 []byte, result2 error)

func (*Prover) RequestTransferReturnsOnCall Uses

func (fake *Prover) RequestTransferReturnsOnCall(i int, result1 []byte, result2 error)

type ProverClient Uses

type ProverClient struct {
    ProcessCommandStub func(context.Context, *token.SignedCommand, ...grpc.CallOption) (*token.SignedCommandResponse, error)
    // contains filtered or unexported fields
}

func (*ProverClient) Invocations Uses

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

func (*ProverClient) ProcessCommand Uses

func (fake *ProverClient) ProcessCommand(arg1 context.Context, arg2 *token.SignedCommand, arg3 ...grpc.CallOption) (*token.SignedCommandResponse, error)

func (*ProverClient) ProcessCommandArgsForCall Uses

func (fake *ProverClient) ProcessCommandArgsForCall(i int) (context.Context, *token.SignedCommand, []grpc.CallOption)

func (*ProverClient) ProcessCommandCallCount Uses

func (fake *ProverClient) ProcessCommandCallCount() int

func (*ProverClient) ProcessCommandCalls Uses

func (fake *ProverClient) ProcessCommandCalls(stub func(context.Context, *token.SignedCommand, ...grpc.CallOption) (*token.SignedCommandResponse, error))

func (*ProverClient) ProcessCommandReturns Uses

func (fake *ProverClient) ProcessCommandReturns(result1 *token.SignedCommandResponse, result2 error)

func (*ProverClient) ProcessCommandReturnsOnCall Uses

func (fake *ProverClient) ProcessCommandReturnsOnCall(i int, result1 *token.SignedCommandResponse, result2 error)

type SignerIdentity Uses

type SignerIdentity struct {
    SignStub func([]byte) ([]byte, error)

    SerializeStub func() ([]byte, error)
    // contains filtered or unexported fields
}

func (*SignerIdentity) Invocations Uses

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

func (*SignerIdentity) Serialize Uses

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

func (*SignerIdentity) SerializeCallCount Uses

func (fake *SignerIdentity) SerializeCallCount() int

func (*SignerIdentity) SerializeReturns Uses

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

func (*SignerIdentity) SerializeReturnsOnCall Uses

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

func (*SignerIdentity) Sign Uses

func (fake *SignerIdentity) Sign(arg1 []byte) ([]byte, error)

func (*SignerIdentity) SignArgsForCall Uses

func (fake *SignerIdentity) SignArgsForCall(i int) []byte

func (*SignerIdentity) SignCallCount Uses

func (fake *SignerIdentity) SignCallCount() int

func (*SignerIdentity) SignReturns Uses

func (fake *SignerIdentity) SignReturns(result1 []byte, result2 error)

func (*SignerIdentity) SignReturnsOnCall Uses

func (fake *SignerIdentity) SignReturnsOnCall(i int, result1 []byte, result2 error)

type SigningIdentity Uses

type SigningIdentity struct {
    GetPublicVersionStub func() token.Identity

    SerializeStub func() ([]byte, error)

    SignStub func([]byte) ([]byte, error)
    // contains filtered or unexported fields
}

func (*SigningIdentity) GetPublicVersion Uses

func (fake *SigningIdentity) GetPublicVersion() token.Identity

func (*SigningIdentity) GetPublicVersionCallCount Uses

func (fake *SigningIdentity) GetPublicVersionCallCount() int

func (*SigningIdentity) GetPublicVersionCalls Uses

func (fake *SigningIdentity) GetPublicVersionCalls(stub func() token.Identity)

func (*SigningIdentity) GetPublicVersionReturns Uses

func (fake *SigningIdentity) GetPublicVersionReturns(result1 token.Identity)

func (*SigningIdentity) GetPublicVersionReturnsOnCall Uses

func (fake *SigningIdentity) GetPublicVersionReturnsOnCall(i int, result1 token.Identity)

func (*SigningIdentity) Invocations Uses

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

func (*SigningIdentity) Serialize Uses

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

func (*SigningIdentity) SerializeCallCount Uses

func (fake *SigningIdentity) SerializeCallCount() int

func (*SigningIdentity) SerializeCalls Uses

func (fake *SigningIdentity) SerializeCalls(stub func() ([]byte, error))

func (*SigningIdentity) SerializeReturns Uses

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

func (*SigningIdentity) SerializeReturnsOnCall Uses

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

func (*SigningIdentity) Sign Uses

func (fake *SigningIdentity) Sign(arg1 []byte) ([]byte, error)

func (*SigningIdentity) SignArgsForCall Uses

func (fake *SigningIdentity) SignArgsForCall(i int) []byte

func (*SigningIdentity) SignCallCount Uses

func (fake *SigningIdentity) SignCallCount() int

func (*SigningIdentity) SignCalls Uses

func (fake *SigningIdentity) SignCalls(stub func([]byte) ([]byte, error))

func (*SigningIdentity) SignReturns Uses

func (fake *SigningIdentity) SignReturns(result1 []byte, result2 error)

func (*SigningIdentity) SignReturnsOnCall Uses

func (fake *SigningIdentity) SignReturnsOnCall(i int, result1 []byte, result2 error)

Package mock imports 10 packages (graph). Updated 2018-12-13. Refresh now. Tools for package owners.