mocks

package
v0.0.0-...-adac428 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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 Signer

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

func (fake *Signer) Anonymous() bool

func (*Signer) AnonymousCallCount

func (fake *Signer) AnonymousCallCount() int

func (*Signer) AnonymousReturns

func (fake *Signer) AnonymousReturns(result1 bool)

func (*Signer) AnonymousReturnsOnCall

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

func (*Signer) ExpiresAt

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

func (*Signer) ExpiresAtCallCount

func (fake *Signer) ExpiresAtCallCount() int

func (*Signer) ExpiresAtReturns

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

func (*Signer) ExpiresAtReturnsOnCall

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

func (*Signer) GetIdentifier

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

func (*Signer) GetIdentifierCallCount

func (fake *Signer) GetIdentifierCallCount() int

func (*Signer) GetIdentifierReturns

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

func (*Signer) GetIdentifierReturnsOnCall

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

func (*Signer) GetMSPIdentifier

func (fake *Signer) GetMSPIdentifier() string

func (*Signer) GetMSPIdentifierCallCount

func (fake *Signer) GetMSPIdentifierCallCount() int

func (*Signer) GetMSPIdentifierReturns

func (fake *Signer) GetMSPIdentifierReturns(result1 string)

func (*Signer) GetMSPIdentifierReturnsOnCall

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

func (*Signer) GetOrganizationalUnits

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

func (*Signer) GetOrganizationalUnitsCallCount

func (fake *Signer) GetOrganizationalUnitsCallCount() int

func (*Signer) GetOrganizationalUnitsReturns

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

func (*Signer) GetOrganizationalUnitsReturnsOnCall

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

func (*Signer) GetPublicVersion

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

func (*Signer) GetPublicVersionCallCount

func (fake *Signer) GetPublicVersionCallCount() int

func (*Signer) GetPublicVersionReturns

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

func (*Signer) GetPublicVersionReturnsOnCall

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

func (*Signer) Invocations

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

func (*Signer) SatisfiesPrincipal

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

func (*Signer) SatisfiesPrincipalArgsForCall

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

func (*Signer) SatisfiesPrincipalCallCount

func (fake *Signer) SatisfiesPrincipalCallCount() int

func (*Signer) SatisfiesPrincipalReturns

func (fake *Signer) SatisfiesPrincipalReturns(result1 error)

func (*Signer) SatisfiesPrincipalReturnsOnCall

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

func (*Signer) Serialize

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

func (*Signer) SerializeCallCount

func (fake *Signer) SerializeCallCount() int

func (*Signer) SerializeReturns

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

func (*Signer) SerializeReturnsOnCall

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

func (*Signer) Sign

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

func (*Signer) SignArgsForCall

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

func (*Signer) SignCallCount

func (fake *Signer) SignCallCount() int

func (*Signer) SignReturns

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

func (*Signer) SignReturnsOnCall

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

func (*Signer) Validate

func (fake *Signer) Validate() error

func (*Signer) ValidateCallCount

func (fake *Signer) ValidateCallCount() int

func (*Signer) ValidateReturns

func (fake *Signer) ValidateReturns(result1 error)

func (*Signer) ValidateReturnsOnCall

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

func (*Signer) Verify

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

func (*Signer) VerifyArgsForCall

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

func (*Signer) VerifyCallCount

func (fake *Signer) VerifyCallCount() int

func (*Signer) VerifyReturns

func (fake *Signer) VerifyReturns(result1 error)

func (*Signer) VerifyReturnsOnCall

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

Jump to

Keyboard shortcuts

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