mock

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。不要编辑。

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() *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

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

func (*Identity) GetIdentifierCallCount

func (fake *Identity) GetIdentifierCallCount() int

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) 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) 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(principal *mspprotos.MSPPrincipal) error

func (*Identity) SatisfiesPrincipalArgsForCall

func (fake *Identity) SatisfiesPrincipalArgsForCall(i int) *mspprotos.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)

Jump to

Keyboard shortcuts

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