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 ¶
- type Deserializer
- func (fake *Deserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
- func (fake *Deserializer) DeserializeIdentityArgsForCall(i int) []byte
- func (fake *Deserializer) DeserializeIdentityCallCount() int
- func (fake *Deserializer) DeserializeIdentityReturns(result1 msp.Identity, result2 error)
- func (fake *Deserializer) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error)
- func (fake *Deserializer) Invocations() map[string][][]interface{}
- type DeserializerManager
- func (fake *DeserializerManager) Deserializer(channel string) (identity.Deserializer, error)
- func (fake *DeserializerManager) DeserializerArgsForCall(i int) string
- func (fake *DeserializerManager) DeserializerCallCount() int
- func (fake *DeserializerManager) DeserializerReturns(result1 identity.Deserializer, result2 error)
- func (fake *DeserializerManager) DeserializerReturnsOnCall(i int, result1 identity.Deserializer, result2 error)
- func (fake *DeserializerManager) Invocations() map[string][][]interface{}
- type Identity
- func (fake *Identity) Anonymous() bool
- func (fake *Identity) AnonymousCallCount() int
- func (fake *Identity) AnonymousReturns(result1 bool)
- func (fake *Identity) AnonymousReturnsOnCall(i int, result1 bool)
- func (fake *Identity) ExpiresAt() time.Time
- func (fake *Identity) ExpiresAtCallCount() int
- func (fake *Identity) ExpiresAtReturns(result1 time.Time)
- func (fake *Identity) ExpiresAtReturnsOnCall(i int, result1 time.Time)
- func (fake *Identity) GetIdentifier() *mspfabric.IdentityIdentifier
- func (fake *Identity) GetIdentifierCallCount() int
- func (fake *Identity) GetIdentifierReturns(result1 *mspfabric.IdentityIdentifier)
- func (fake *Identity) GetIdentifierReturnsOnCall(i int, result1 *mspfabric.IdentityIdentifier)
- func (fake *Identity) GetMSPIdentifier() string
- func (fake *Identity) GetMSPIdentifierCallCount() int
- func (fake *Identity) GetMSPIdentifierReturns(result1 string)
- func (fake *Identity) GetMSPIdentifierReturnsOnCall(i int, result1 string)
- func (fake *Identity) GetOrganizationalUnits() []*mspfabric.OUIdentifier
- func (fake *Identity) GetOrganizationalUnitsCallCount() int
- func (fake *Identity) GetOrganizationalUnitsReturns(result1 []*mspfabric.OUIdentifier)
- func (fake *Identity) GetOrganizationalUnitsReturnsOnCall(i int, result1 []*mspfabric.OUIdentifier)
- func (fake *Identity) Invocations() map[string][][]interface{}
- func (fake *Identity) SatisfiesPrincipal(principal *msp.MSPPrincipal) error
- func (fake *Identity) SatisfiesPrincipalArgsForCall(i int) *msp.MSPPrincipal
- func (fake *Identity) SatisfiesPrincipalCallCount() int
- func (fake *Identity) SatisfiesPrincipalReturns(result1 error)
- func (fake *Identity) SatisfiesPrincipalReturnsOnCall(i int, result1 error)
- func (fake *Identity) Serialize() ([]byte, error)
- func (fake *Identity) SerializeCallCount() int
- func (fake *Identity) SerializeReturns(result1 []byte, result2 error)
- func (fake *Identity) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *Identity) Validate() error
- func (fake *Identity) ValidateCallCount() int
- func (fake *Identity) ValidateReturns(result1 error)
- func (fake *Identity) ValidateReturnsOnCall(i int, result1 error)
- func (fake *Identity) Verify(msg []byte, sig []byte) error
- func (fake *Identity) VerifyArgsForCall(i int) ([]byte, []byte)
- func (fake *Identity) VerifyCallCount() int
- func (fake *Identity) VerifyReturns(result1 error)
- func (fake *Identity) VerifyReturnsOnCall(i int, result1 error)
- type IssuingValidator
- func (fake *IssuingValidator) Invocations() map[string][][]interface{}
- func (fake *IssuingValidator) Validate(creator identity.PublicInfo, tokenType string) error
- func (fake *IssuingValidator) ValidateArgsForCall(i int) (identity.PublicInfo, string)
- func (fake *IssuingValidator) ValidateCallCount() int
- func (fake *IssuingValidator) ValidateReturns(result1 error)
- func (fake *IssuingValidator) ValidateReturnsOnCall(i int, result1 error)
- type PublicInfo
- type TokenOwnerValidator
- func (fake *TokenOwnerValidator) Invocations() map[string][][]interface{}
- func (fake *TokenOwnerValidator) Validate(owner *token.TokenOwner) error
- func (fake *TokenOwnerValidator) ValidateArgsForCall(i int) *token.TokenOwner
- func (fake *TokenOwnerValidator) ValidateCallCount() int
- func (fake *TokenOwnerValidator) ValidateReturns(result1 error)
- func (fake *TokenOwnerValidator) ValidateReturnsOnCall(i int, result1 error)
- type TokenOwnerValidatorManager
- func (fake *TokenOwnerValidatorManager) Get(channel string) (identity.TokenOwnerValidator, error)
- func (fake *TokenOwnerValidatorManager) GetArgsForCall(i int) string
- func (fake *TokenOwnerValidatorManager) GetCallCount() int
- func (fake *TokenOwnerValidatorManager) GetReturns(result1 identity.TokenOwnerValidator, result2 error)
- func (fake *TokenOwnerValidatorManager) GetReturnsOnCall(i int, result1 identity.TokenOwnerValidator, result2 error)
- func (fake *TokenOwnerValidatorManager) Invocations() map[string][][]interface{}
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) AnonymousCallCount ¶
func (*Identity) AnonymousReturns ¶
func (*Identity) AnonymousReturnsOnCall ¶
func (*Identity) ExpiresAtCallCount ¶
func (*Identity) ExpiresAtReturns ¶
func (*Identity) ExpiresAtReturnsOnCall ¶
func (*Identity) GetIdentifier ¶
func (fake *Identity) GetIdentifier() *mspfabric.IdentityIdentifier
func (*Identity) GetIdentifierCallCount ¶
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 (*Identity) GetMSPIdentifierCallCount ¶
func (*Identity) GetMSPIdentifierReturns ¶
func (*Identity) GetMSPIdentifierReturnsOnCall ¶
func (*Identity) GetOrganizationalUnits ¶
func (fake *Identity) GetOrganizationalUnits() []*mspfabric.OUIdentifier
func (*Identity) GetOrganizationalUnitsCallCount ¶
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 (*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 (*Identity) SatisfiesPrincipalReturns ¶
func (*Identity) SatisfiesPrincipalReturnsOnCall ¶
func (*Identity) SerializeCallCount ¶
func (*Identity) SerializeReturns ¶
func (*Identity) SerializeReturnsOnCall ¶
func (*Identity) ValidateCallCount ¶
func (*Identity) ValidateReturns ¶
func (*Identity) ValidateReturnsOnCall ¶
func (*Identity) VerifyArgsForCall ¶
func (*Identity) VerifyCallCount ¶
func (*Identity) VerifyReturns ¶
func (*Identity) VerifyReturnsOnCall ¶
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 (fake *TokenOwnerValidatorManager) Get(channel string) (identity.TokenOwnerValidator, error)
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{}
Click to show internal directories.
Click to hide internal directories.