mocks

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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 Identity

type Identity struct {
	AnonymousStub func() bool

	ExpiresAtStub func() time.Time

	GetIdentifierStub func() *msp.IdentityIdentifier

	GetMSPIdentifierStub func() string

	GetOrganizationalUnitsStub func() []*msp.OUIdentifier

	SatisfiesPrincipalStub func(*mspa.MSPPrincipal) error

	SerializeStub func() ([]byte, error)

	ValidateStub func() error

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

func (*Identity) Anonymous

func (fake *Identity) Anonymous() bool

func (*Identity) AnonymousCallCount

func (fake *Identity) AnonymousCallCount() int

func (*Identity) AnonymousCalls

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

func (*Identity) AnonymousReturns

func (fake *Identity) AnonymousReturns(result1 bool)

func (*Identity) AnonymousReturnsOnCall

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

func (*Identity) ExpiresAt

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

func (*Identity) ExpiresAtCallCount

func (fake *Identity) ExpiresAtCallCount() int

func (*Identity) ExpiresAtCalls

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

func (*Identity) ExpiresAtReturns

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

func (*Identity) ExpiresAtReturnsOnCall

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

func (*Identity) GetIdentifier

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

func (*Identity) GetIdentifierCallCount

func (fake *Identity) GetIdentifierCallCount() int

func (*Identity) GetIdentifierCalls

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

func (*Identity) GetIdentifierReturns

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

func (*Identity) GetIdentifierReturnsOnCall

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

func (*Identity) GetMSPIdentifier

func (fake *Identity) GetMSPIdentifier() string

func (*Identity) GetMSPIdentifierCallCount

func (fake *Identity) GetMSPIdentifierCallCount() int

func (*Identity) GetMSPIdentifierCalls

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

func (*Identity) GetMSPIdentifierReturns

func (fake *Identity) GetMSPIdentifierReturns(result1 string)

func (*Identity) GetMSPIdentifierReturnsOnCall

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

func (*Identity) GetOrganizationalUnits

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

func (*Identity) GetOrganizationalUnitsCallCount

func (fake *Identity) GetOrganizationalUnitsCallCount() int

func (*Identity) GetOrganizationalUnitsCalls

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

func (*Identity) GetOrganizationalUnitsReturns

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

func (*Identity) GetOrganizationalUnitsReturnsOnCall

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

func (*Identity) Invocations

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

func (*Identity) SatisfiesPrincipal

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

func (*Identity) SatisfiesPrincipalArgsForCall

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

func (*Identity) SatisfiesPrincipalCallCount

func (fake *Identity) SatisfiesPrincipalCallCount() int

func (*Identity) SatisfiesPrincipalCalls

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

func (*Identity) SatisfiesPrincipalReturns

func (fake *Identity) SatisfiesPrincipalReturns(result1 error)

func (*Identity) SatisfiesPrincipalReturnsOnCall

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

func (*Identity) Serialize

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

func (*Identity) SerializeCallCount

func (fake *Identity) SerializeCallCount() int

func (*Identity) SerializeCalls

func (fake *Identity) SerializeCalls(stub func() ([]byte, error))

func (*Identity) SerializeReturns

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

func (*Identity) SerializeReturnsOnCall

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

func (*Identity) Validate

func (fake *Identity) Validate() error

func (*Identity) ValidateCallCount

func (fake *Identity) ValidateCallCount() int

func (*Identity) ValidateCalls

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

func (*Identity) ValidateReturns

func (fake *Identity) ValidateReturns(result1 error)

func (*Identity) ValidateReturnsOnCall

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

func (*Identity) Verify

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

func (*Identity) VerifyArgsForCall

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

func (*Identity) VerifyCallCount

func (fake *Identity) VerifyCallCount() int

func (*Identity) VerifyCalls

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

func (*Identity) VerifyReturns

func (fake *Identity) VerifyReturns(result1 error)

func (*Identity) VerifyReturnsOnCall

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

type IdentityDeserializer

type IdentityDeserializer struct {
	DeserializeIdentityStub func([]byte) (msp.Identity, error)

	IsWellFormedStub func(*mspa.SerializedIdentity) error
	// contains filtered or unexported fields
}

func (*IdentityDeserializer) DeserializeIdentity

func (fake *IdentityDeserializer) DeserializeIdentity(arg1 []byte) (msp.Identity, error)

func (*IdentityDeserializer) DeserializeIdentityArgsForCall

func (fake *IdentityDeserializer) DeserializeIdentityArgsForCall(i int) []byte

func (*IdentityDeserializer) DeserializeIdentityCallCount

func (fake *IdentityDeserializer) DeserializeIdentityCallCount() int

func (*IdentityDeserializer) DeserializeIdentityCalls

func (fake *IdentityDeserializer) DeserializeIdentityCalls(stub func([]byte) (msp.Identity, error))

func (*IdentityDeserializer) DeserializeIdentityReturns

func (fake *IdentityDeserializer) DeserializeIdentityReturns(result1 msp.Identity, result2 error)

func (*IdentityDeserializer) DeserializeIdentityReturnsOnCall

func (fake *IdentityDeserializer) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error)

func (*IdentityDeserializer) Invocations

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

func (*IdentityDeserializer) IsWellFormed

func (fake *IdentityDeserializer) IsWellFormed(arg1 *mspa.SerializedIdentity) error

func (*IdentityDeserializer) IsWellFormedArgsForCall

func (fake *IdentityDeserializer) IsWellFormedArgsForCall(i int) *mspa.SerializedIdentity

func (*IdentityDeserializer) IsWellFormedCallCount

func (fake *IdentityDeserializer) IsWellFormedCallCount() int

func (*IdentityDeserializer) IsWellFormedCalls

func (fake *IdentityDeserializer) IsWellFormedCalls(stub func(*mspa.SerializedIdentity) error)

func (*IdentityDeserializer) IsWellFormedReturns

func (fake *IdentityDeserializer) IsWellFormedReturns(result1 error)

func (*IdentityDeserializer) IsWellFormedReturnsOnCall

func (fake *IdentityDeserializer) IsWellFormedReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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