mock

package
v2.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 Deserializer

type Deserializer struct {
	DeserializeIdentityStub func(serializedIdentity []byte) (msp.Identity, error)
	// contains filtered or unexported fields
}

func (*Deserializer) DeserializeIdentity

func (fake *Deserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)

func (*Deserializer) DeserializeIdentityArgsForCall

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

func (*Deserializer) DeserializeIdentityCallCount

func (fake *Deserializer) DeserializeIdentityCallCount() int

func (*Deserializer) DeserializeIdentityReturns

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

func (*Deserializer) DeserializeIdentityReturnsOnCall

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

func (*Deserializer) Invocations

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

type DeserializerManager

type DeserializerManager struct {
	DeserializerStub func(channel string) (identity.Deserializer, error)
	// contains filtered or unexported fields
}

func (*DeserializerManager) Deserializer

func (fake *DeserializerManager) Deserializer(channel string) (identity.Deserializer, error)

func (*DeserializerManager) DeserializerArgsForCall

func (fake *DeserializerManager) DeserializerArgsForCall(i int) string

func (*DeserializerManager) DeserializerCallCount

func (fake *DeserializerManager) DeserializerCallCount() int

func (*DeserializerManager) DeserializerReturns

func (fake *DeserializerManager) DeserializerReturns(result1 identity.Deserializer, result2 error)

func (*DeserializerManager) DeserializerReturnsOnCall

func (fake *DeserializerManager) DeserializerReturnsOnCall(i int, result1 identity.Deserializer, result2 error)

func (*DeserializerManager) Invocations

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

type Identity

type Identity struct {
	ExpiresAtStub func() time.Time

	GetIdentifierStub func() *mspfabric.IdentityIdentifier

	GetMSPIdentifierStub func() string

	ValidateStub func() error

	GetOrganizationalUnitsStub func() []*mspfabric.OUIdentifier

	AnonymousStub func() bool

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

	SerializeStub func() ([]byte, error)

	SatisfiesPrincipalStub func(principal *msp.MSPPrincipal) error
	// contains filtered or unexported fields
}

func (*Identity) Anonymous

func (fake *Identity) Anonymous() bool

func (*Identity) AnonymousCallCount

func (fake *Identity) AnonymousCallCount() int

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) 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() *mspfabric.IdentityIdentifier

func (*Identity) GetIdentifierCallCount

func (fake *Identity) GetIdentifierCallCount() int

func (*Identity) GetIdentifierReturns

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

func (*Identity) GetIdentifierReturnsOnCall

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

func (*Identity) GetMSPIdentifier

func (fake *Identity) GetMSPIdentifier() string

func (*Identity) GetMSPIdentifierCallCount

func (fake *Identity) GetMSPIdentifierCallCount() int

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() []*mspfabric.OUIdentifier

func (*Identity) GetOrganizationalUnitsCallCount

func (fake *Identity) GetOrganizationalUnitsCallCount() int

func (*Identity) GetOrganizationalUnitsReturns

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

func (*Identity) GetOrganizationalUnitsReturnsOnCall

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

func (*Identity) Invocations

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

func (*Identity) SatisfiesPrincipal

func (fake *Identity) SatisfiesPrincipal(principal *msp.MSPPrincipal) error

func (*Identity) SatisfiesPrincipalArgsForCall

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

func (*Identity) SatisfiesPrincipalCallCount

func (fake *Identity) SatisfiesPrincipalCallCount() int

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) 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) 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(msg []byte, sig []byte) error

func (*Identity) VerifyArgsForCall

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

func (*Identity) VerifyCallCount

func (fake *Identity) VerifyCallCount() int

func (*Identity) VerifyReturns

func (fake *Identity) VerifyReturns(result1 error)

func (*Identity) VerifyReturnsOnCall

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

type IssuingValidator

type IssuingValidator struct {
	ValidateStub func(creator identity.PublicInfo, tokenType string) error
	// contains filtered or unexported fields
}

func (*IssuingValidator) Invocations

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

func (*IssuingValidator) Validate

func (fake *IssuingValidator) Validate(creator identity.PublicInfo, tokenType string) error

func (*IssuingValidator) ValidateArgsForCall

func (fake *IssuingValidator) ValidateArgsForCall(i int) (identity.PublicInfo, string)

func (*IssuingValidator) ValidateCallCount

func (fake *IssuingValidator) ValidateCallCount() int

func (*IssuingValidator) ValidateReturns

func (fake *IssuingValidator) ValidateReturns(result1 error)

func (*IssuingValidator) ValidateReturnsOnCall

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

type PublicInfo

type PublicInfo struct {
	PublicStub func() []byte
	// contains filtered or unexported fields
}

func (*PublicInfo) Invocations

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

func (*PublicInfo) Public

func (fake *PublicInfo) Public() []byte

func (*PublicInfo) PublicCallCount

func (fake *PublicInfo) PublicCallCount() int

func (*PublicInfo) PublicReturns

func (fake *PublicInfo) PublicReturns(result1 []byte)

func (*PublicInfo) PublicReturnsOnCall

func (fake *PublicInfo) PublicReturnsOnCall(i int, result1 []byte)

type TokenOwnerValidator

type TokenOwnerValidator struct {
	ValidateStub func(owner *token.TokenOwner) error
	// contains filtered or unexported fields
}

func (*TokenOwnerValidator) Invocations

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

func (*TokenOwnerValidator) Validate

func (fake *TokenOwnerValidator) Validate(owner *token.TokenOwner) error

func (*TokenOwnerValidator) ValidateArgsForCall

func (fake *TokenOwnerValidator) ValidateArgsForCall(i int) *token.TokenOwner

func (*TokenOwnerValidator) ValidateCallCount

func (fake *TokenOwnerValidator) ValidateCallCount() int

func (*TokenOwnerValidator) ValidateReturns

func (fake *TokenOwnerValidator) ValidateReturns(result1 error)

func (*TokenOwnerValidator) ValidateReturnsOnCall

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

type TokenOwnerValidatorManager

type TokenOwnerValidatorManager struct {
	GetStub func(channel string) (identity.TokenOwnerValidator, error)
	// contains filtered or unexported fields
}

func (*TokenOwnerValidatorManager) Get

func (*TokenOwnerValidatorManager) GetArgsForCall

func (fake *TokenOwnerValidatorManager) GetArgsForCall(i int) string

func (*TokenOwnerValidatorManager) GetCallCount

func (fake *TokenOwnerValidatorManager) GetCallCount() int

func (*TokenOwnerValidatorManager) GetReturns

func (fake *TokenOwnerValidatorManager) GetReturns(result1 identity.TokenOwnerValidator, result2 error)

func (*TokenOwnerValidatorManager) GetReturnsOnCall

func (fake *TokenOwnerValidatorManager) GetReturnsOnCall(i int, result1 identity.TokenOwnerValidator, result2 error)

func (*TokenOwnerValidatorManager) Invocations

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

Jump to

Keyboard shortcuts

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