Versions in this module Expand all Collapse all v1 v1.4.4 Nov 14, 2019 Changes in this version + type ACLProvider struct + CheckACLStub func(resName string, channelID string, idinfo interface{}) error + func (fake *ACLProvider) CheckACL(resName string, channelID string, idinfo interface{}) error + func (fake *ACLProvider) CheckACLArgsForCall(i int) (string, string, interface{}) + func (fake *ACLProvider) CheckACLCallCount() int + func (fake *ACLProvider) CheckACLReturns(result1 error) + func (fake *ACLProvider) CheckACLReturnsOnCall(i int, result1 error) + func (fake *ACLProvider) Invocations() map[string][][]interface{} + type CapabilityChecker struct + FabTokenStub func(channelId string) (bool, error) + func (fake *CapabilityChecker) FabToken(channelId string) (bool, error) + func (fake *CapabilityChecker) FabTokenArgsForCall(i int) string + func (fake *CapabilityChecker) FabTokenCallCount() int + func (fake *CapabilityChecker) FabTokenReturns(result1 bool, result2 error) + func (fake *CapabilityChecker) FabTokenReturnsOnCall(i int, result1 bool, result2 error) + func (fake *CapabilityChecker) Invocations() map[string][][]interface{} + type Issuer struct + RequestExpectationStub func(*token.ExpectationRequest) (*token.TokenTransaction, error) + RequestImportStub func([]*token.TokenToIssue) (*token.TokenTransaction, error) + func (fake *Issuer) Invocations() map[string][][]interface{} + func (fake *Issuer) RequestExpectation(arg1 *token.ExpectationRequest) (*token.TokenTransaction, error) + func (fake *Issuer) RequestExpectationArgsForCall(i int) *token.ExpectationRequest + func (fake *Issuer) RequestExpectationCallCount() int + func (fake *Issuer) RequestExpectationCalls(stub func(*token.ExpectationRequest) (*token.TokenTransaction, error)) + func (fake *Issuer) RequestExpectationReturns(result1 *token.TokenTransaction, result2 error) + func (fake *Issuer) RequestExpectationReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error) + func (fake *Issuer) RequestImport(arg1 []*token.TokenToIssue) (*token.TokenTransaction, error) + func (fake *Issuer) RequestImportArgsForCall(i int) []*token.TokenToIssue + func (fake *Issuer) RequestImportCallCount() int + func (fake *Issuer) RequestImportCalls(stub func([]*token.TokenToIssue) (*token.TokenTransaction, error)) + func (fake *Issuer) RequestImportReturns(result1 *token.TokenTransaction, result2 error) + func (fake *Issuer) RequestImportReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error) + type Marshaler struct + MarshalCommandResponseStub func(command []byte, responsePayload interface{}) (*token.SignedCommandResponse, error) + func (fake *Marshaler) Invocations() map[string][][]interface{} + func (fake *Marshaler) MarshalCommandResponse(command []byte, responsePayload interface{}) (*token.SignedCommandResponse, error) + func (fake *Marshaler) MarshalCommandResponseArgsForCall(i int) ([]byte, interface{}) + func (fake *Marshaler) MarshalCommandResponseCallCount() int + func (fake *Marshaler) MarshalCommandResponseReturns(result1 *token.SignedCommandResponse, result2 error) + func (fake *Marshaler) MarshalCommandResponseReturnsOnCall(i int, result1 *token.SignedCommandResponse, result2 error) + type PolicyChecker struct + CheckStub func(sc *token.SignedCommand, c *token.Command) error + func (fake *PolicyChecker) Check(sc *token.SignedCommand, c *token.Command) error + func (fake *PolicyChecker) CheckArgsForCall(i int) (*token.SignedCommand, *token.Command) + func (fake *PolicyChecker) CheckCallCount() int + func (fake *PolicyChecker) CheckReturns(result1 error) + func (fake *PolicyChecker) CheckReturnsOnCall(i int, result1 error) + func (fake *PolicyChecker) Invocations() map[string][][]interface{} + type SignerIdentity struct + SerializeStub func() ([]byte, error) + SignStub func([]byte) ([]byte, error) + func (fake *SignerIdentity) Invocations() map[string][][]interface{} + func (fake *SignerIdentity) Serialize() ([]byte, error) + func (fake *SignerIdentity) SerializeCallCount() int + func (fake *SignerIdentity) SerializeReturns(result1 []byte, result2 error) + func (fake *SignerIdentity) SerializeReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *SignerIdentity) Sign(arg1 []byte) ([]byte, error) + func (fake *SignerIdentity) SignArgsForCall(i int) []byte + func (fake *SignerIdentity) SignCallCount() int + func (fake *SignerIdentity) SignReturns(result1 []byte, result2 error) + func (fake *SignerIdentity) SignReturnsOnCall(i int, result1 []byte, result2 error) + type TMSManager struct + GetIssuerStub func(string, []byte, []byte) (server.Issuer, error) + GetTransactorStub func(string, []byte, []byte) (server.Transactor, error) + func (fake *TMSManager) GetIssuer(arg1 string, arg2 []byte, arg3 []byte) (server.Issuer, error) + func (fake *TMSManager) GetIssuerArgsForCall(i int) (string, []byte, []byte) + func (fake *TMSManager) GetIssuerCallCount() int + func (fake *TMSManager) GetIssuerCalls(stub func(string, []byte, []byte) (server.Issuer, error)) + func (fake *TMSManager) GetIssuerReturns(result1 server.Issuer, result2 error) + func (fake *TMSManager) GetIssuerReturnsOnCall(i int, result1 server.Issuer, result2 error) + func (fake *TMSManager) GetTransactor(arg1 string, arg2 []byte, arg3 []byte) (server.Transactor, error) + func (fake *TMSManager) GetTransactorArgsForCall(i int) (string, []byte, []byte) + func (fake *TMSManager) GetTransactorCallCount() int + func (fake *TMSManager) GetTransactorCalls(stub func(string, []byte, []byte) (server.Transactor, error)) + func (fake *TMSManager) GetTransactorReturns(result1 server.Transactor, result2 error) + func (fake *TMSManager) GetTransactorReturnsOnCall(i int, result1 server.Transactor, result2 error) + func (fake *TMSManager) Invocations() map[string][][]interface{} + 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) + RequestTransferFromStub func(*token.TransferRequest) (*token.TokenTransaction, error) + RequestTransferStub func(*token.TransferRequest) (*token.TokenTransaction, error) + func (fake *Transactor) Done() + func (fake *Transactor) DoneCallCount() int + func (fake *Transactor) DoneCalls(stub func()) + func (fake *Transactor) Invocations() map[string][][]interface{} + func (fake *Transactor) ListTokens() (*token.UnspentTokens, error) + func (fake *Transactor) ListTokensCallCount() int + func (fake *Transactor) ListTokensCalls(stub func() (*token.UnspentTokens, error)) + func (fake *Transactor) ListTokensReturns(result1 *token.UnspentTokens, result2 error) + func (fake *Transactor) ListTokensReturnsOnCall(i int, result1 *token.UnspentTokens, result2 error) + func (fake *Transactor) RequestApprove(arg1 *token.ApproveRequest) (*token.TokenTransaction, error) + func (fake *Transactor) RequestApproveArgsForCall(i int) *token.ApproveRequest + func (fake *Transactor) RequestApproveCallCount() int + func (fake *Transactor) RequestApproveCalls(stub func(*token.ApproveRequest) (*token.TokenTransaction, error)) + func (fake *Transactor) RequestApproveReturns(result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestApproveReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestExpectation(arg1 *token.ExpectationRequest) (*token.TokenTransaction, error) + func (fake *Transactor) RequestExpectationArgsForCall(i int) *token.ExpectationRequest + func (fake *Transactor) RequestExpectationCallCount() int + func (fake *Transactor) RequestExpectationCalls(stub func(*token.ExpectationRequest) (*token.TokenTransaction, error)) + func (fake *Transactor) RequestExpectationReturns(result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestExpectationReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestRedeem(arg1 *token.RedeemRequest) (*token.TokenTransaction, error) + func (fake *Transactor) RequestRedeemArgsForCall(i int) *token.RedeemRequest + func (fake *Transactor) RequestRedeemCallCount() int + func (fake *Transactor) RequestRedeemCalls(stub func(*token.RedeemRequest) (*token.TokenTransaction, error)) + func (fake *Transactor) RequestRedeemReturns(result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestRedeemReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestTransfer(arg1 *token.TransferRequest) (*token.TokenTransaction, error) + func (fake *Transactor) RequestTransferArgsForCall(i int) *token.TransferRequest + func (fake *Transactor) RequestTransferCallCount() int + func (fake *Transactor) RequestTransferCalls(stub func(*token.TransferRequest) (*token.TokenTransaction, error)) + func (fake *Transactor) RequestTransferFrom(arg1 *token.TransferRequest) (*token.TokenTransaction, error) + func (fake *Transactor) RequestTransferFromArgsForCall(i int) *token.TransferRequest + func (fake *Transactor) RequestTransferFromCallCount() int + func (fake *Transactor) RequestTransferFromCalls(stub func(*token.TransferRequest) (*token.TokenTransaction, error)) + func (fake *Transactor) RequestTransferFromReturns(result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestTransferFromReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestTransferReturns(result1 *token.TokenTransaction, result2 error) + func (fake *Transactor) RequestTransferReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)