fabric: github.com/hyperledger/fabric/common/policies/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/common/policies/mocks"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

identity.go identity_deserializer.go

type Identity Uses

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 Uses

func (fake *Identity) Anonymous() bool

func (*Identity) AnonymousCallCount Uses

func (fake *Identity) AnonymousCallCount() int

func (*Identity) AnonymousCalls Uses

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

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) ExpiresAtCalls Uses

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

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) GetIdentifierCalls Uses

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

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) GetMSPIdentifierCalls Uses

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

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) GetOrganizationalUnitsCalls Uses

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

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(arg1 *mspa.MSPPrincipal) error

func (*Identity) SatisfiesPrincipalArgsForCall Uses

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

func (*Identity) SatisfiesPrincipalCallCount Uses

func (fake *Identity) SatisfiesPrincipalCallCount() int

func (*Identity) SatisfiesPrincipalCalls Uses

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

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) SerializeCalls Uses

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

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) ValidateCalls Uses

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

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(arg1 []byte, arg2 []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) VerifyCalls Uses

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

func (*Identity) VerifyReturns Uses

func (fake *Identity) VerifyReturns(result1 error)

func (*Identity) VerifyReturnsOnCall Uses

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

type IdentityDeserializer Uses

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

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

func (*IdentityDeserializer) DeserializeIdentity Uses

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

func (*IdentityDeserializer) DeserializeIdentityArgsForCall Uses

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

func (*IdentityDeserializer) DeserializeIdentityCallCount Uses

func (fake *IdentityDeserializer) DeserializeIdentityCallCount() int

func (*IdentityDeserializer) DeserializeIdentityCalls Uses

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

func (*IdentityDeserializer) DeserializeIdentityReturns Uses

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

func (*IdentityDeserializer) DeserializeIdentityReturnsOnCall Uses

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

func (*IdentityDeserializer) Invocations Uses

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

func (*IdentityDeserializer) IsWellFormed Uses

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

func (*IdentityDeserializer) IsWellFormedArgsForCall Uses

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

func (*IdentityDeserializer) IsWellFormedCallCount Uses

func (fake *IdentityDeserializer) IsWellFormedCallCount() int

func (*IdentityDeserializer) IsWellFormedCalls Uses

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

func (*IdentityDeserializer) IsWellFormedReturns Uses

func (fake *IdentityDeserializer) IsWellFormedReturns(result1 error)

func (*IdentityDeserializer) IsWellFormedReturnsOnCall Uses

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

Package mocks imports 4 packages (graph). Updated 2019-11-21. Refresh now. Tools for package owners.