fabric: github.com/hyperledger/fabric/token/identity/mock Index | Files

package mock

import "github.com/hyperledger/fabric/token/identity/mock"

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

Package Files

deserializer.go deserializer_manager.go identity.go issuing_validator.go public_info.go

type Deserializer Uses

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

func (*Deserializer) DeserializeIdentity Uses

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

func (*Deserializer) DeserializeIdentityArgsForCall Uses

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

func (*Deserializer) DeserializeIdentityCallCount Uses

func (fake *Deserializer) DeserializeIdentityCallCount() int

func (*Deserializer) DeserializeIdentityReturns Uses

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

func (*Deserializer) DeserializeIdentityReturnsOnCall Uses

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

func (*Deserializer) Invocations Uses

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

type DeserializerManager Uses

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

func (*DeserializerManager) Deserializer Uses

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

func (*DeserializerManager) DeserializerArgsForCall Uses

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

func (*DeserializerManager) DeserializerCallCount Uses

func (fake *DeserializerManager) DeserializerCallCount() int

func (*DeserializerManager) DeserializerReturns Uses

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

func (*DeserializerManager) DeserializerReturnsOnCall Uses

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

func (*DeserializerManager) Invocations Uses

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

type Identity Uses

type Identity 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
    // contains filtered or unexported fields
}

func (*Identity) Anonymous Uses

func (fake *Identity) Anonymous() bool

func (*Identity) AnonymousCallCount Uses

func (fake *Identity) AnonymousCallCount() int

func (*Identity) AnonymousReturns Uses

func (fake *Identity) AnonymousReturns(result1 bool)

func (*Identity) AnonymousReturnsOnCall Uses

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

func (*Identity) ExpiresAt Uses

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

func (*Identity) ExpiresAtCallCount Uses

func (fake *Identity) ExpiresAtCallCount() int

func (*Identity) ExpiresAtReturns Uses

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

func (*Identity) ExpiresAtReturnsOnCall Uses

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

func (*Identity) GetIdentifier Uses

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

func (*Identity) GetIdentifierCallCount Uses

func (fake *Identity) GetIdentifierCallCount() int

func (*Identity) GetIdentifierReturns Uses

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

func (*Identity) GetIdentifierReturnsOnCall Uses

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

func (*Identity) GetMSPIdentifier Uses

func (fake *Identity) GetMSPIdentifier() string

func (*Identity) GetMSPIdentifierCallCount Uses

func (fake *Identity) GetMSPIdentifierCallCount() int

func (*Identity) GetMSPIdentifierReturns Uses

func (fake *Identity) GetMSPIdentifierReturns(result1 string)

func (*Identity) GetMSPIdentifierReturnsOnCall Uses

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

func (*Identity) GetOrganizationalUnits Uses

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

func (*Identity) GetOrganizationalUnitsCallCount Uses

func (fake *Identity) GetOrganizationalUnitsCallCount() int

func (*Identity) GetOrganizationalUnitsReturns Uses

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

func (*Identity) GetOrganizationalUnitsReturnsOnCall Uses

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

func (*Identity) Invocations Uses

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

func (*Identity) SatisfiesPrincipal Uses

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

func (*Identity) SatisfiesPrincipalArgsForCall Uses

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

func (*Identity) SatisfiesPrincipalCallCount Uses

func (fake *Identity) SatisfiesPrincipalCallCount() int

func (*Identity) SatisfiesPrincipalReturns Uses

func (fake *Identity) SatisfiesPrincipalReturns(result1 error)

func (*Identity) SatisfiesPrincipalReturnsOnCall Uses

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

func (*Identity) Serialize Uses

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

func (*Identity) SerializeCallCount Uses

func (fake *Identity) SerializeCallCount() int

func (*Identity) SerializeReturns Uses

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

func (*Identity) SerializeReturnsOnCall Uses

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

func (*Identity) Validate Uses

func (fake *Identity) Validate() error

func (*Identity) ValidateCallCount Uses

func (fake *Identity) ValidateCallCount() int

func (*Identity) ValidateReturns Uses

func (fake *Identity) ValidateReturns(result1 error)

func (*Identity) ValidateReturnsOnCall Uses

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

func (*Identity) Verify Uses

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

func (*Identity) VerifyArgsForCall Uses

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

func (*Identity) VerifyCallCount Uses

func (fake *Identity) VerifyCallCount() int

func (*Identity) VerifyReturns Uses

func (fake *Identity) VerifyReturns(result1 error)

func (*Identity) VerifyReturnsOnCall Uses

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

type IssuingValidator Uses

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

func (*IssuingValidator) Invocations Uses

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

func (*IssuingValidator) Validate Uses

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

func (*IssuingValidator) ValidateArgsForCall Uses

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

func (*IssuingValidator) ValidateCallCount Uses

func (fake *IssuingValidator) ValidateCallCount() int

func (*IssuingValidator) ValidateReturns Uses

func (fake *IssuingValidator) ValidateReturns(result1 error)

func (*IssuingValidator) ValidateReturnsOnCall Uses

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

type PublicInfo Uses

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

func (*PublicInfo) Invocations Uses

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

func (*PublicInfo) Public Uses

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

func (*PublicInfo) PublicCallCount Uses

func (fake *PublicInfo) PublicCallCount() int

func (*PublicInfo) PublicReturns Uses

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

func (*PublicInfo) PublicReturnsOnCall Uses

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

Package mock imports 5 packages (graph). Updated 2018-12-11. Refresh now. Tools for package owners.