fabric: github.com/hyperledger/fabric/peer/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/peer/mocks"

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

signer.go

type Signer Uses

type Signer struct {
    ExpiresAtStub func() time.Time

    GetIdentifierStub func() *msp.IdentityIdentifier

    GetMSPIdentifierStub func() string

    ValidateStub func() error

    GetOrganizationalUnitsStub func() []*msp.OUIdentifier

    AnonymousStub func() bool

    VerifyStub func(msg []byte, sig []byte) error

    SerializeStub func() ([]byte, error)

    SatisfiesPrincipalStub func(principal *mspprotos.MSPPrincipal) error

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

    GetPublicVersionStub func() msp.Identity
    // contains filtered or unexported fields
}

func (*Signer) Anonymous Uses

func (fake *Signer) Anonymous() bool

func (*Signer) AnonymousCallCount Uses

func (fake *Signer) AnonymousCallCount() int

func (*Signer) AnonymousReturns Uses

func (fake *Signer) AnonymousReturns(result1 bool)

func (*Signer) AnonymousReturnsOnCall Uses

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

func (*Signer) ExpiresAt Uses

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

func (*Signer) ExpiresAtCallCount Uses

func (fake *Signer) ExpiresAtCallCount() int

func (*Signer) ExpiresAtReturns Uses

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

func (*Signer) ExpiresAtReturnsOnCall Uses

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

func (*Signer) GetIdentifier Uses

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

func (*Signer) GetIdentifierCallCount Uses

func (fake *Signer) GetIdentifierCallCount() int

func (*Signer) GetIdentifierReturns Uses

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

func (*Signer) GetIdentifierReturnsOnCall Uses

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

func (*Signer) GetMSPIdentifier Uses

func (fake *Signer) GetMSPIdentifier() string

func (*Signer) GetMSPIdentifierCallCount Uses

func (fake *Signer) GetMSPIdentifierCallCount() int

func (*Signer) GetMSPIdentifierReturns Uses

func (fake *Signer) GetMSPIdentifierReturns(result1 string)

func (*Signer) GetMSPIdentifierReturnsOnCall Uses

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

func (*Signer) GetOrganizationalUnits Uses

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

func (*Signer) GetOrganizationalUnitsCallCount Uses

func (fake *Signer) GetOrganizationalUnitsCallCount() int

func (*Signer) GetOrganizationalUnitsReturns Uses

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

func (*Signer) GetOrganizationalUnitsReturnsOnCall Uses

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

func (*Signer) GetPublicVersion Uses

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

func (*Signer) GetPublicVersionCallCount Uses

func (fake *Signer) GetPublicVersionCallCount() int

func (*Signer) GetPublicVersionReturns Uses

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

func (*Signer) GetPublicVersionReturnsOnCall Uses

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

func (*Signer) Invocations Uses

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

func (*Signer) SatisfiesPrincipal Uses

func (fake *Signer) SatisfiesPrincipal(principal *mspprotos.MSPPrincipal) error

func (*Signer) SatisfiesPrincipalArgsForCall Uses

func (fake *Signer) SatisfiesPrincipalArgsForCall(i int) *mspprotos.MSPPrincipal

func (*Signer) SatisfiesPrincipalCallCount Uses

func (fake *Signer) SatisfiesPrincipalCallCount() int

func (*Signer) SatisfiesPrincipalReturns Uses

func (fake *Signer) SatisfiesPrincipalReturns(result1 error)

func (*Signer) SatisfiesPrincipalReturnsOnCall Uses

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

func (*Signer) Serialize Uses

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

func (*Signer) SerializeCallCount Uses

func (fake *Signer) SerializeCallCount() int

func (*Signer) SerializeReturns Uses

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

func (*Signer) SerializeReturnsOnCall Uses

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

func (*Signer) Sign Uses

func (fake *Signer) Sign(msg []byte) ([]byte, error)

func (*Signer) SignArgsForCall Uses

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

func (*Signer) SignCallCount Uses

func (fake *Signer) SignCallCount() int

func (*Signer) SignReturns Uses

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

func (*Signer) SignReturnsOnCall Uses

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

func (*Signer) Validate Uses

func (fake *Signer) Validate() error

func (*Signer) ValidateCallCount Uses

func (fake *Signer) ValidateCallCount() int

func (*Signer) ValidateReturns Uses

func (fake *Signer) ValidateReturns(result1 error)

func (*Signer) ValidateReturnsOnCall Uses

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

func (*Signer) Verify Uses

func (fake *Signer) Verify(msg []byte, sig []byte) error

func (*Signer) VerifyArgsForCall Uses

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

func (*Signer) VerifyCallCount Uses

func (fake *Signer) VerifyCallCount() int

func (*Signer) VerifyReturns Uses

func (fake *Signer) VerifyReturns(result1 error)

func (*Signer) VerifyReturnsOnCall Uses

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

Package mocks imports 4 packages (graph). Updated 2018-07-06. Refresh now. Tools for package owners.