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

package mock

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

Index

Package Files

access_control.go acl_provider.go capability_checker.go issuer.go marshaler.go signer_identity.go tms_manager.go transactor.go

type ACLProvider Uses

type ACLProvider struct {
    CheckACLStub func(resName string, channelID string, idinfo interface{}) error
    // contains filtered or unexported fields
}

func (*ACLProvider) CheckACL Uses

func (fake *ACLProvider) CheckACL(resName string, channelID string, idinfo interface{}) error

func (*ACLProvider) CheckACLArgsForCall Uses

func (fake *ACLProvider) CheckACLArgsForCall(i int) (string, string, interface{})

func (*ACLProvider) CheckACLCallCount Uses

func (fake *ACLProvider) CheckACLCallCount() int

func (*ACLProvider) CheckACLReturns Uses

func (fake *ACLProvider) CheckACLReturns(result1 error)

func (*ACLProvider) CheckACLReturnsOnCall Uses

func (fake *ACLProvider) CheckACLReturnsOnCall(i int, result1 error)

func (*ACLProvider) Invocations Uses

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

type CapabilityChecker Uses

type CapabilityChecker struct {
    FabTokenStub func(channelId string) (bool, error)
    // contains filtered or unexported fields
}

func (*CapabilityChecker) FabToken Uses

func (fake *CapabilityChecker) FabToken(channelId string) (bool, error)

func (*CapabilityChecker) FabTokenArgsForCall Uses

func (fake *CapabilityChecker) FabTokenArgsForCall(i int) string

func (*CapabilityChecker) FabTokenCallCount Uses

func (fake *CapabilityChecker) FabTokenCallCount() int

func (*CapabilityChecker) FabTokenReturns Uses

func (fake *CapabilityChecker) FabTokenReturns(result1 bool, result2 error)

func (*CapabilityChecker) FabTokenReturnsOnCall Uses

func (fake *CapabilityChecker) FabTokenReturnsOnCall(i int, result1 bool, result2 error)

func (*CapabilityChecker) Invocations Uses

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

type Issuer Uses

type Issuer struct {
    RequestExpectationStub func(*token.ExpectationRequest) (*token.TokenTransaction, error)

    RequestImportStub func([]*token.TokenToIssue) (*token.TokenTransaction, error)
    // contains filtered or unexported fields
}

func (*Issuer) Invocations Uses

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

func (*Issuer) RequestExpectation Uses

func (fake *Issuer) RequestExpectation(arg1 *token.ExpectationRequest) (*token.TokenTransaction, error)

func (*Issuer) RequestExpectationArgsForCall Uses

func (fake *Issuer) RequestExpectationArgsForCall(i int) *token.ExpectationRequest

func (*Issuer) RequestExpectationCallCount Uses

func (fake *Issuer) RequestExpectationCallCount() int

func (*Issuer) RequestExpectationCalls Uses

func (fake *Issuer) RequestExpectationCalls(stub func(*token.ExpectationRequest) (*token.TokenTransaction, error))

func (*Issuer) RequestExpectationReturns Uses

func (fake *Issuer) RequestExpectationReturns(result1 *token.TokenTransaction, result2 error)

func (*Issuer) RequestExpectationReturnsOnCall Uses

func (fake *Issuer) RequestExpectationReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Issuer) RequestImport Uses

func (fake *Issuer) RequestImport(arg1 []*token.TokenToIssue) (*token.TokenTransaction, error)

func (*Issuer) RequestImportArgsForCall Uses

func (fake *Issuer) RequestImportArgsForCall(i int) []*token.TokenToIssue

func (*Issuer) RequestImportCallCount Uses

func (fake *Issuer) RequestImportCallCount() int

func (*Issuer) RequestImportCalls Uses

func (fake *Issuer) RequestImportCalls(stub func([]*token.TokenToIssue) (*token.TokenTransaction, error))

func (*Issuer) RequestImportReturns Uses

func (fake *Issuer) RequestImportReturns(result1 *token.TokenTransaction, result2 error)

func (*Issuer) RequestImportReturnsOnCall Uses

func (fake *Issuer) RequestImportReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

type Marshaler Uses

type Marshaler struct {
    MarshalCommandResponseStub func(command []byte, responsePayload interface{}) (*token.SignedCommandResponse, error)
    // contains filtered or unexported fields
}

func (*Marshaler) Invocations Uses

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

func (*Marshaler) MarshalCommandResponse Uses

func (fake *Marshaler) MarshalCommandResponse(command []byte, responsePayload interface{}) (*token.SignedCommandResponse, error)

func (*Marshaler) MarshalCommandResponseArgsForCall Uses

func (fake *Marshaler) MarshalCommandResponseArgsForCall(i int) ([]byte, interface{})

func (*Marshaler) MarshalCommandResponseCallCount Uses

func (fake *Marshaler) MarshalCommandResponseCallCount() int

func (*Marshaler) MarshalCommandResponseReturns Uses

func (fake *Marshaler) MarshalCommandResponseReturns(result1 *token.SignedCommandResponse, result2 error)

func (*Marshaler) MarshalCommandResponseReturnsOnCall Uses

func (fake *Marshaler) MarshalCommandResponseReturnsOnCall(i int, result1 *token.SignedCommandResponse, result2 error)

type PolicyChecker Uses

type PolicyChecker struct {
    CheckStub func(sc *token.SignedCommand, c *token.Command) error
    // contains filtered or unexported fields
}

func (*PolicyChecker) Check Uses

func (fake *PolicyChecker) Check(sc *token.SignedCommand, c *token.Command) error

func (*PolicyChecker) CheckArgsForCall Uses

func (fake *PolicyChecker) CheckArgsForCall(i int) (*token.SignedCommand, *token.Command)

func (*PolicyChecker) CheckCallCount Uses

func (fake *PolicyChecker) CheckCallCount() int

func (*PolicyChecker) CheckReturns Uses

func (fake *PolicyChecker) CheckReturns(result1 error)

func (*PolicyChecker) CheckReturnsOnCall Uses

func (fake *PolicyChecker) CheckReturnsOnCall(i int, result1 error)

func (*PolicyChecker) Invocations Uses

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

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 TMSManager Uses

type TMSManager struct {
    GetIssuerStub func(string, []byte, []byte) (server.Issuer, error)

    GetTransactorStub func(string, []byte, []byte) (server.Transactor, error)
    // contains filtered or unexported fields
}

func (*TMSManager) GetIssuer Uses

func (fake *TMSManager) GetIssuer(arg1 string, arg2 []byte, arg3 []byte) (server.Issuer, error)

func (*TMSManager) GetIssuerArgsForCall Uses

func (fake *TMSManager) GetIssuerArgsForCall(i int) (string, []byte, []byte)

func (*TMSManager) GetIssuerCallCount Uses

func (fake *TMSManager) GetIssuerCallCount() int

func (*TMSManager) GetIssuerCalls Uses

func (fake *TMSManager) GetIssuerCalls(stub func(string, []byte, []byte) (server.Issuer, error))

func (*TMSManager) GetIssuerReturns Uses

func (fake *TMSManager) GetIssuerReturns(result1 server.Issuer, result2 error)

func (*TMSManager) GetIssuerReturnsOnCall Uses

func (fake *TMSManager) GetIssuerReturnsOnCall(i int, result1 server.Issuer, result2 error)

func (*TMSManager) GetTransactor Uses

func (fake *TMSManager) GetTransactor(arg1 string, arg2 []byte, arg3 []byte) (server.Transactor, error)

func (*TMSManager) GetTransactorArgsForCall Uses

func (fake *TMSManager) GetTransactorArgsForCall(i int) (string, []byte, []byte)

func (*TMSManager) GetTransactorCallCount Uses

func (fake *TMSManager) GetTransactorCallCount() int

func (*TMSManager) GetTransactorCalls Uses

func (fake *TMSManager) GetTransactorCalls(stub func(string, []byte, []byte) (server.Transactor, error))

func (*TMSManager) GetTransactorReturns Uses

func (fake *TMSManager) GetTransactorReturns(result1 server.Transactor, result2 error)

func (*TMSManager) GetTransactorReturnsOnCall Uses

func (fake *TMSManager) GetTransactorReturnsOnCall(i int, result1 server.Transactor, result2 error)

func (*TMSManager) Invocations Uses

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

type Transactor Uses

type Transactor struct {
    DoneStub func()

    ListTokensStub func() (*token.UnspentTokens, error)

    RequestApproveStub func(*token.ApproveRequest) (*token.TokenTransaction, error)

    RequestExpectationStub func(*token.ExpectationRequest) (*token.TokenTransaction, error)

    RequestRedeemStub func(*token.RedeemRequest) (*token.TokenTransaction, error)

    RequestTransferStub func(*token.TransferRequest) (*token.TokenTransaction, error)

    RequestTransferFromStub func(*token.TransferRequest) (*token.TokenTransaction, error)
    // contains filtered or unexported fields
}

func (*Transactor) Done Uses

func (fake *Transactor) Done()

func (*Transactor) DoneCallCount Uses

func (fake *Transactor) DoneCallCount() int

func (*Transactor) DoneCalls Uses

func (fake *Transactor) DoneCalls(stub func())

func (*Transactor) Invocations Uses

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

func (*Transactor) ListTokens Uses

func (fake *Transactor) ListTokens() (*token.UnspentTokens, error)

func (*Transactor) ListTokensCallCount Uses

func (fake *Transactor) ListTokensCallCount() int

func (*Transactor) ListTokensCalls Uses

func (fake *Transactor) ListTokensCalls(stub func() (*token.UnspentTokens, error))

func (*Transactor) ListTokensReturns Uses

func (fake *Transactor) ListTokensReturns(result1 *token.UnspentTokens, result2 error)

func (*Transactor) ListTokensReturnsOnCall Uses

func (fake *Transactor) ListTokensReturnsOnCall(i int, result1 *token.UnspentTokens, result2 error)

func (*Transactor) RequestApprove Uses

func (fake *Transactor) RequestApprove(arg1 *token.ApproveRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestApproveArgsForCall Uses

func (fake *Transactor) RequestApproveArgsForCall(i int) *token.ApproveRequest

func (*Transactor) RequestApproveCallCount Uses

func (fake *Transactor) RequestApproveCallCount() int

func (*Transactor) RequestApproveCalls Uses

func (fake *Transactor) RequestApproveCalls(stub func(*token.ApproveRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestApproveReturns Uses

func (fake *Transactor) RequestApproveReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestApproveReturnsOnCall Uses

func (fake *Transactor) RequestApproveReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestExpectation Uses

func (fake *Transactor) RequestExpectation(arg1 *token.ExpectationRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestExpectationArgsForCall Uses

func (fake *Transactor) RequestExpectationArgsForCall(i int) *token.ExpectationRequest

func (*Transactor) RequestExpectationCallCount Uses

func (fake *Transactor) RequestExpectationCallCount() int

func (*Transactor) RequestExpectationCalls Uses

func (fake *Transactor) RequestExpectationCalls(stub func(*token.ExpectationRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestExpectationReturns Uses

func (fake *Transactor) RequestExpectationReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestExpectationReturnsOnCall Uses

func (fake *Transactor) RequestExpectationReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestRedeem Uses

func (fake *Transactor) RequestRedeem(arg1 *token.RedeemRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestRedeemArgsForCall Uses

func (fake *Transactor) RequestRedeemArgsForCall(i int) *token.RedeemRequest

func (*Transactor) RequestRedeemCallCount Uses

func (fake *Transactor) RequestRedeemCallCount() int

func (*Transactor) RequestRedeemCalls Uses

func (fake *Transactor) RequestRedeemCalls(stub func(*token.RedeemRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestRedeemReturns Uses

func (fake *Transactor) RequestRedeemReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestRedeemReturnsOnCall Uses

func (fake *Transactor) RequestRedeemReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestTransfer Uses

func (fake *Transactor) RequestTransfer(arg1 *token.TransferRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestTransferArgsForCall Uses

func (fake *Transactor) RequestTransferArgsForCall(i int) *token.TransferRequest

func (*Transactor) RequestTransferCallCount Uses

func (fake *Transactor) RequestTransferCallCount() int

func (*Transactor) RequestTransferCalls Uses

func (fake *Transactor) RequestTransferCalls(stub func(*token.TransferRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestTransferFrom Uses

func (fake *Transactor) RequestTransferFrom(arg1 *token.TransferRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestTransferFromArgsForCall Uses

func (fake *Transactor) RequestTransferFromArgsForCall(i int) *token.TransferRequest

func (*Transactor) RequestTransferFromCallCount Uses

func (fake *Transactor) RequestTransferFromCallCount() int

func (*Transactor) RequestTransferFromCalls Uses

func (fake *Transactor) RequestTransferFromCalls(stub func(*token.TransferRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestTransferFromReturns Uses

func (fake *Transactor) RequestTransferFromReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestTransferFromReturnsOnCall Uses

func (fake *Transactor) RequestTransferFromReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestTransferReturns Uses

func (fake *Transactor) RequestTransferReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestTransferReturnsOnCall Uses

func (fake *Transactor) RequestTransferReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

Package mock imports 3 packages (graph). Updated 2019-01-31. Refresh now. Tools for package owners.