fabric: github.com/hyperledger/fabric/common/ledger/testutil/fakes Index | Files

package fakes

import "github.com/hyperledger/fabric/common/ledger/testutil/fakes"

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

signing_identity.go

type SigningIdentity Uses

type SigningIdentity struct {
    AnonymousStub func() bool

    ExpiresAtStub func() time.Time

    GetIdentifierStub func() *msp.IdentityIdentifier

    GetMSPIdentifierStub func() string

    GetOrganizationalUnitsStub func() []*msp.OUIdentifier

    GetPublicVersionStub func() msp.Identity

    SatisfiesPrincipalStub func(*mspa.MSPPrincipal) error

    SerializeStub func() ([]byte, error)

    SignStub func([]byte) ([]byte, error)

    ValidateStub func() error

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

func (*SigningIdentity) Anonymous Uses

func (fake *SigningIdentity) Anonymous() bool

func (*SigningIdentity) AnonymousCallCount Uses

func (fake *SigningIdentity) AnonymousCallCount() int

func (*SigningIdentity) AnonymousCalls Uses

func (fake *SigningIdentity) AnonymousCalls(stub func() bool)

func (*SigningIdentity) AnonymousReturns Uses

func (fake *SigningIdentity) AnonymousReturns(result1 bool)

func (*SigningIdentity) AnonymousReturnsOnCall Uses

func (fake *SigningIdentity) AnonymousReturnsOnCall(i int, result1 bool)

func (*SigningIdentity) ExpiresAt Uses

func (fake *SigningIdentity) ExpiresAt() time.Time

func (*SigningIdentity) ExpiresAtCallCount Uses

func (fake *SigningIdentity) ExpiresAtCallCount() int

func (*SigningIdentity) ExpiresAtCalls Uses

func (fake *SigningIdentity) ExpiresAtCalls(stub func() time.Time)

func (*SigningIdentity) ExpiresAtReturns Uses

func (fake *SigningIdentity) ExpiresAtReturns(result1 time.Time)

func (*SigningIdentity) ExpiresAtReturnsOnCall Uses

func (fake *SigningIdentity) ExpiresAtReturnsOnCall(i int, result1 time.Time)

func (*SigningIdentity) GetIdentifier Uses

func (fake *SigningIdentity) GetIdentifier() *msp.IdentityIdentifier

func (*SigningIdentity) GetIdentifierCallCount Uses

func (fake *SigningIdentity) GetIdentifierCallCount() int

func (*SigningIdentity) GetIdentifierCalls Uses

func (fake *SigningIdentity) GetIdentifierCalls(stub func() *msp.IdentityIdentifier)

func (*SigningIdentity) GetIdentifierReturns Uses

func (fake *SigningIdentity) GetIdentifierReturns(result1 *msp.IdentityIdentifier)

func (*SigningIdentity) GetIdentifierReturnsOnCall Uses

func (fake *SigningIdentity) GetIdentifierReturnsOnCall(i int, result1 *msp.IdentityIdentifier)

func (*SigningIdentity) GetMSPIdentifier Uses

func (fake *SigningIdentity) GetMSPIdentifier() string

func (*SigningIdentity) GetMSPIdentifierCallCount Uses

func (fake *SigningIdentity) GetMSPIdentifierCallCount() int

func (*SigningIdentity) GetMSPIdentifierCalls Uses

func (fake *SigningIdentity) GetMSPIdentifierCalls(stub func() string)

func (*SigningIdentity) GetMSPIdentifierReturns Uses

func (fake *SigningIdentity) GetMSPIdentifierReturns(result1 string)

func (*SigningIdentity) GetMSPIdentifierReturnsOnCall Uses

func (fake *SigningIdentity) GetMSPIdentifierReturnsOnCall(i int, result1 string)

func (*SigningIdentity) GetOrganizationalUnits Uses

func (fake *SigningIdentity) GetOrganizationalUnits() []*msp.OUIdentifier

func (*SigningIdentity) GetOrganizationalUnitsCallCount Uses

func (fake *SigningIdentity) GetOrganizationalUnitsCallCount() int

func (*SigningIdentity) GetOrganizationalUnitsCalls Uses

func (fake *SigningIdentity) GetOrganizationalUnitsCalls(stub func() []*msp.OUIdentifier)

func (*SigningIdentity) GetOrganizationalUnitsReturns Uses

func (fake *SigningIdentity) GetOrganizationalUnitsReturns(result1 []*msp.OUIdentifier)

func (*SigningIdentity) GetOrganizationalUnitsReturnsOnCall Uses

func (fake *SigningIdentity) GetOrganizationalUnitsReturnsOnCall(i int, result1 []*msp.OUIdentifier)

func (*SigningIdentity) GetPublicVersion Uses

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

func (*SigningIdentity) GetPublicVersionCallCount Uses

func (fake *SigningIdentity) GetPublicVersionCallCount() int

func (*SigningIdentity) GetPublicVersionCalls Uses

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

func (*SigningIdentity) GetPublicVersionReturns Uses

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

func (*SigningIdentity) GetPublicVersionReturnsOnCall Uses

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

func (*SigningIdentity) Invocations Uses

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

func (*SigningIdentity) SatisfiesPrincipal Uses

func (fake *SigningIdentity) SatisfiesPrincipal(arg1 *mspa.MSPPrincipal) error

func (*SigningIdentity) SatisfiesPrincipalArgsForCall Uses

func (fake *SigningIdentity) SatisfiesPrincipalArgsForCall(i int) *mspa.MSPPrincipal

func (*SigningIdentity) SatisfiesPrincipalCallCount Uses

func (fake *SigningIdentity) SatisfiesPrincipalCallCount() int

func (*SigningIdentity) SatisfiesPrincipalCalls Uses

func (fake *SigningIdentity) SatisfiesPrincipalCalls(stub func(*mspa.MSPPrincipal) error)

func (*SigningIdentity) SatisfiesPrincipalReturns Uses

func (fake *SigningIdentity) SatisfiesPrincipalReturns(result1 error)

func (*SigningIdentity) SatisfiesPrincipalReturnsOnCall Uses

func (fake *SigningIdentity) SatisfiesPrincipalReturnsOnCall(i int, result1 error)

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)

func (*SigningIdentity) Validate Uses

func (fake *SigningIdentity) Validate() error

func (*SigningIdentity) ValidateCallCount Uses

func (fake *SigningIdentity) ValidateCallCount() int

func (*SigningIdentity) ValidateCalls Uses

func (fake *SigningIdentity) ValidateCalls(stub func() error)

func (*SigningIdentity) ValidateReturns Uses

func (fake *SigningIdentity) ValidateReturns(result1 error)

func (*SigningIdentity) ValidateReturnsOnCall Uses

func (fake *SigningIdentity) ValidateReturnsOnCall(i int, result1 error)

func (*SigningIdentity) Verify Uses

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

func (*SigningIdentity) VerifyArgsForCall Uses

func (fake *SigningIdentity) VerifyArgsForCall(i int) ([]byte, []byte)

func (*SigningIdentity) VerifyCallCount Uses

func (fake *SigningIdentity) VerifyCallCount() int

func (*SigningIdentity) VerifyCalls Uses

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

func (*SigningIdentity) VerifyReturns Uses

func (fake *SigningIdentity) VerifyReturns(result1 error)

func (*SigningIdentity) VerifyReturnsOnCall Uses

func (fake *SigningIdentity) VerifyReturnsOnCall(i int, result1 error)

Package fakes imports 4 packages (graph) and is imported by 1 packages. Updated 2019-11-18. Refresh now. Tools for package owners.