mock

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLProvider added in v1.4.0

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

func (*ACLProvider) CheckACL added in v1.4.0

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

func (*ACLProvider) CheckACLArgsForCall added in v1.4.0

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

func (*ACLProvider) CheckACLCallCount added in v1.4.0

func (fake *ACLProvider) CheckACLCallCount() int

func (*ACLProvider) CheckACLReturns added in v1.4.0

func (fake *ACLProvider) CheckACLReturns(result1 error)

func (*ACLProvider) CheckACLReturnsOnCall added in v1.4.0

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

func (*ACLProvider) Invocations added in v1.4.0

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

type CapabilityChecker added in v1.4.0

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

func (*CapabilityChecker) FabToken added in v1.4.0

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

func (*CapabilityChecker) FabTokenArgsForCall added in v1.4.0

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

func (*CapabilityChecker) FabTokenCallCount added in v1.4.0

func (fake *CapabilityChecker) FabTokenCallCount() int

func (*CapabilityChecker) FabTokenReturns added in v1.4.0

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

func (*CapabilityChecker) FabTokenReturnsOnCall added in v1.4.0

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

func (*CapabilityChecker) Invocations added in v1.4.0

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

type Issuer

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

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

func (*Issuer) RequestExpectation added in v1.4.0

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

func (*Issuer) RequestExpectationArgsForCall added in v1.4.0

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

func (*Issuer) RequestExpectationCallCount added in v1.4.0

func (fake *Issuer) RequestExpectationCallCount() int

func (*Issuer) RequestExpectationCalls added in v1.4.0

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

func (*Issuer) RequestExpectationReturns added in v1.4.0

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

func (*Issuer) RequestExpectationReturnsOnCall added in v1.4.0

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

func (*Issuer) RequestImport

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

func (*Issuer) RequestImportArgsForCall

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

func (*Issuer) RequestImportCallCount

func (fake *Issuer) RequestImportCallCount() int

func (*Issuer) RequestImportCalls added in v1.4.0

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

func (*Issuer) RequestImportReturns

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

func (*Issuer) RequestImportReturnsOnCall

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

type Marshaler

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

func (*Marshaler) Invocations

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

func (*Marshaler) MarshalCommandResponse

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

func (*Marshaler) MarshalCommandResponseArgsForCall

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

func (*Marshaler) MarshalCommandResponseCallCount

func (fake *Marshaler) MarshalCommandResponseCallCount() int

func (*Marshaler) MarshalCommandResponseReturns

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

func (*Marshaler) MarshalCommandResponseReturnsOnCall

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

type PolicyChecker

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

func (*PolicyChecker) Check

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

func (*PolicyChecker) CheckArgsForCall

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

func (*PolicyChecker) CheckCallCount

func (fake *PolicyChecker) CheckCallCount() int

func (*PolicyChecker) CheckReturns

func (fake *PolicyChecker) CheckReturns(result1 error)

func (*PolicyChecker) CheckReturnsOnCall

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

func (*PolicyChecker) Invocations

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

type SignerIdentity

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

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

func (*SignerIdentity) Invocations

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

func (*SignerIdentity) Serialize

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

func (*SignerIdentity) SerializeCallCount

func (fake *SignerIdentity) SerializeCallCount() int

func (*SignerIdentity) SerializeReturns

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

func (*SignerIdentity) SerializeReturnsOnCall

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

func (*SignerIdentity) Sign

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

func (*SignerIdentity) SignArgsForCall

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

func (*SignerIdentity) SignCallCount

func (fake *SignerIdentity) SignCallCount() int

func (*SignerIdentity) SignReturns

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

func (*SignerIdentity) SignReturnsOnCall

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

type TMSManager

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

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

func (*TMSManager) GetIssuerArgsForCall

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

func (*TMSManager) GetIssuerCallCount

func (fake *TMSManager) GetIssuerCallCount() int

func (*TMSManager) GetIssuerCalls added in v1.4.0

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

func (*TMSManager) GetIssuerReturns

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

func (*TMSManager) GetIssuerReturnsOnCall

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

func (*TMSManager) GetTransactor added in v1.4.0

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

func (*TMSManager) GetTransactorArgsForCall added in v1.4.0

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

func (*TMSManager) GetTransactorCallCount added in v1.4.0

func (fake *TMSManager) GetTransactorCallCount() int

func (*TMSManager) GetTransactorCalls added in v1.4.0

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

func (*TMSManager) GetTransactorReturns added in v1.4.0

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

func (*TMSManager) GetTransactorReturnsOnCall added in v1.4.0

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

func (*TMSManager) Invocations

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

type Transactor added in v1.4.0

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 added in v1.4.0

func (fake *Transactor) Done()

func (*Transactor) DoneCallCount added in v1.4.0

func (fake *Transactor) DoneCallCount() int

func (*Transactor) DoneCalls added in v1.4.0

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

func (*Transactor) Invocations added in v1.4.0

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

func (*Transactor) ListTokens added in v1.4.0

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

func (*Transactor) ListTokensCallCount added in v1.4.0

func (fake *Transactor) ListTokensCallCount() int

func (*Transactor) ListTokensCalls added in v1.4.0

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

func (*Transactor) ListTokensReturns added in v1.4.0

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

func (*Transactor) ListTokensReturnsOnCall added in v1.4.0

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

func (*Transactor) RequestApprove added in v1.4.0

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

func (*Transactor) RequestApproveArgsForCall added in v1.4.0

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

func (*Transactor) RequestApproveCallCount added in v1.4.0

func (fake *Transactor) RequestApproveCallCount() int

func (*Transactor) RequestApproveCalls added in v1.4.0

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

func (*Transactor) RequestApproveReturns added in v1.4.0

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

func (*Transactor) RequestApproveReturnsOnCall added in v1.4.0

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

func (*Transactor) RequestExpectation added in v1.4.0

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

func (*Transactor) RequestExpectationArgsForCall added in v1.4.0

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

func (*Transactor) RequestExpectationCallCount added in v1.4.0

func (fake *Transactor) RequestExpectationCallCount() int

func (*Transactor) RequestExpectationCalls added in v1.4.0

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

func (*Transactor) RequestExpectationReturns added in v1.4.0

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

func (*Transactor) RequestExpectationReturnsOnCall added in v1.4.0

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

func (*Transactor) RequestRedeem added in v1.4.0

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

func (*Transactor) RequestRedeemArgsForCall added in v1.4.0

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

func (*Transactor) RequestRedeemCallCount added in v1.4.0

func (fake *Transactor) RequestRedeemCallCount() int

func (*Transactor) RequestRedeemCalls added in v1.4.0

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

func (*Transactor) RequestRedeemReturns added in v1.4.0

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

func (*Transactor) RequestRedeemReturnsOnCall added in v1.4.0

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

func (*Transactor) RequestTransfer added in v1.4.0

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

func (*Transactor) RequestTransferArgsForCall added in v1.4.0

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

func (*Transactor) RequestTransferCallCount added in v1.4.0

func (fake *Transactor) RequestTransferCallCount() int

func (*Transactor) RequestTransferCalls added in v1.4.0

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

func (*Transactor) RequestTransferFrom added in v1.4.0

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

func (*Transactor) RequestTransferFromArgsForCall added in v1.4.0

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

func (*Transactor) RequestTransferFromCallCount added in v1.4.0

func (fake *Transactor) RequestTransferFromCallCount() int

func (*Transactor) RequestTransferFromCalls added in v1.4.0

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

func (*Transactor) RequestTransferFromReturns added in v1.4.0

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

func (*Transactor) RequestTransferFromReturnsOnCall added in v1.4.0

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

func (*Transactor) RequestTransferReturns added in v1.4.0

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

func (*Transactor) RequestTransferReturnsOnCall added in v1.4.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL