Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type ChannelPolicyManager
- type ChannelPolicyManagerGetter
- type ChannelPolicyManagerGetterWithManager
- type DeserializersManager
- func (m *DeserializersManager) Deserialize(raw []byte) (*mspproto.SerializedIdentity, error)
- func (m *DeserializersManager) GetChannelDeserializers() map[string]msp.IdentityDeserializer
- func (m *DeserializersManager) GetLocalDeserializer() msp.IdentityDeserializer
- func (m *DeserializersManager) GetLocalMSPIdentifier() string
- type Identity
- func (id *Identity) Anonymous() bool
- func (id *Identity) ExpiresAt() time.Time
- func (id *Identity) GetIdentifier() *msp.IdentityIdentifier
- func (id *Identity) GetMSPIdentifier() string
- func (id *Identity) GetOrganizationalUnits() []*msp.OUIdentifier
- func (id *Identity) SatisfiesPrincipal(*mspproto.MSPPrincipal) error
- func (id *Identity) Serialize() ([]byte, error)
- func (id *Identity) Validate() error
- func (id *Identity) Verify(msg []byte, sig []byte) error
- type IdentityDeserializer
- type IdentityDeserializerWithExpiration
- type Policy
- type PolicyManager
- func (fake *PolicyManager) GetPolicy(arg1 string) (policies.Policy, bool)
- func (fake *PolicyManager) GetPolicyArgsForCall(i int) string
- func (fake *PolicyManager) GetPolicyCallCount() int
- func (fake *PolicyManager) GetPolicyCalls(stub func(string) (policies.Policy, bool))
- func (fake *PolicyManager) GetPolicyReturns(result1 policies.Policy, result2 bool)
- func (fake *PolicyManager) GetPolicyReturnsOnCall(i int, result1 policies.Policy, result2 bool)
- func (fake *PolicyManager) Invocations() map[string][][]interface{}
- func (fake *PolicyManager) Manager(arg1 []string) (policies.Manager, bool)
- func (fake *PolicyManager) ManagerArgsForCall(i int) []string
- func (fake *PolicyManager) ManagerCallCount() int
- func (fake *PolicyManager) ManagerCalls(stub func([]string) (policies.Manager, bool))
- func (fake *PolicyManager) ManagerReturns(result1 policies.Manager, result2 bool)
- func (fake *PolicyManager) ManagerReturnsOnCall(i int, result1 policies.Manager, result2 bool)
- type SignerSerializer
- func (fake *SignerSerializer) Invocations() map[string][][]interface{}
- func (fake *SignerSerializer) Serialize() ([]byte, error)
- func (fake *SignerSerializer) SerializeCallCount() int
- func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))
- func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)
- func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error)
- func (fake *SignerSerializer) SignArgsForCall(i int) []byte
- func (fake *SignerSerializer) SignCallCount() int
- func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))
- func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)
- func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelPolicyManager ¶
type ChannelPolicyManagerGetter ¶
type ChannelPolicyManagerGetter struct{}
func (*ChannelPolicyManagerGetter) Manager ¶
func (c *ChannelPolicyManagerGetter) Manager(channelID string) policies.Manager
type ChannelPolicyManagerGetterWithManager ¶
func (*ChannelPolicyManagerGetterWithManager) Manager ¶
func (c *ChannelPolicyManagerGetterWithManager) Manager(channelID string) policies.Manager
type DeserializersManager ¶
type DeserializersManager struct { LocalDeserializer msp.IdentityDeserializer ChannelDeserializers map[string]msp.IdentityDeserializer }
func (*DeserializersManager) Deserialize ¶
func (m *DeserializersManager) Deserialize(raw []byte) (*mspproto.SerializedIdentity, error)
func (*DeserializersManager) GetChannelDeserializers ¶
func (m *DeserializersManager) GetChannelDeserializers() map[string]msp.IdentityDeserializer
func (*DeserializersManager) GetLocalDeserializer ¶
func (m *DeserializersManager) GetLocalDeserializer() msp.IdentityDeserializer
func (*DeserializersManager) GetLocalMSPIdentifier ¶
func (m *DeserializersManager) GetLocalMSPIdentifier() string
type Identity ¶
type Identity struct { Msg []byte // contains filtered or unexported fields }
func (*Identity) GetIdentifier ¶
func (id *Identity) GetIdentifier() *msp.IdentityIdentifier
func (*Identity) GetOrganizationalUnits ¶
func (id *Identity) GetOrganizationalUnits() []*msp.OUIdentifier
func (*Identity) SatisfiesPrincipal ¶
func (id *Identity) SatisfiesPrincipal(*mspproto.MSPPrincipal) error
type IdentityDeserializer ¶
func (*IdentityDeserializer) DeserializeIdentity ¶
func (d *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
func (*IdentityDeserializer) IsWellFormed ¶
func (d *IdentityDeserializer) IsWellFormed(identity *mspproto.SerializedIdentity) error
type IdentityDeserializerWithExpiration ¶
type IdentityDeserializerWithExpiration struct { *IdentityDeserializer Expiration time.Time }
type Policy ¶
type Policy struct {
Deserializer msp.IdentityDeserializer
}
func (*Policy) EvaluateIdentities ¶
EvaluateIdentities takes an array of identities and evaluates whether they satisfy the policy
func (*Policy) EvaluateSignedData ¶
func (m *Policy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error
EvaluateSignedData takes a set of SignedData and evaluates whether this set of signatures satisfies the policy
type PolicyManager ¶
type PolicyManager struct { GetPolicyStub func(string) (policies.Policy, bool) ManagerStub func([]string) (policies.Manager, bool) // contains filtered or unexported fields }
func (*PolicyManager) GetPolicy ¶
func (fake *PolicyManager) GetPolicy(arg1 string) (policies.Policy, bool)
func (*PolicyManager) GetPolicyArgsForCall ¶
func (fake *PolicyManager) GetPolicyArgsForCall(i int) string
func (*PolicyManager) GetPolicyCallCount ¶
func (fake *PolicyManager) GetPolicyCallCount() int
func (*PolicyManager) GetPolicyCalls ¶
func (fake *PolicyManager) GetPolicyCalls(stub func(string) (policies.Policy, bool))
func (*PolicyManager) GetPolicyReturns ¶
func (fake *PolicyManager) GetPolicyReturns(result1 policies.Policy, result2 bool)
func (*PolicyManager) GetPolicyReturnsOnCall ¶
func (fake *PolicyManager) GetPolicyReturnsOnCall(i int, result1 policies.Policy, result2 bool)
func (*PolicyManager) Invocations ¶
func (fake *PolicyManager) Invocations() map[string][][]interface{}
func (*PolicyManager) Manager ¶
func (fake *PolicyManager) Manager(arg1 []string) (policies.Manager, bool)
func (*PolicyManager) ManagerArgsForCall ¶
func (fake *PolicyManager) ManagerArgsForCall(i int) []string
func (*PolicyManager) ManagerCallCount ¶
func (fake *PolicyManager) ManagerCallCount() int
func (*PolicyManager) ManagerCalls ¶
func (fake *PolicyManager) ManagerCalls(stub func([]string) (policies.Manager, bool))
func (*PolicyManager) ManagerReturns ¶
func (fake *PolicyManager) ManagerReturns(result1 policies.Manager, result2 bool)
type SignerSerializer ¶
type SignerSerializer struct { SerializeStub func() ([]byte, error) SignStub func([]byte) ([]byte, error) // contains filtered or unexported fields }
func (*SignerSerializer) Invocations ¶
func (fake *SignerSerializer) Invocations() map[string][][]interface{}
func (*SignerSerializer) Serialize ¶
func (fake *SignerSerializer) Serialize() ([]byte, error)
func (*SignerSerializer) SerializeCallCount ¶
func (fake *SignerSerializer) SerializeCallCount() int
func (*SignerSerializer) SerializeCalls ¶
func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))
func (*SignerSerializer) SerializeReturns ¶
func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)
func (*SignerSerializer) SerializeReturnsOnCall ¶
func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
func (*SignerSerializer) Sign ¶
func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error)
func (*SignerSerializer) SignArgsForCall ¶
func (fake *SignerSerializer) SignArgsForCall(i int) []byte
func (*SignerSerializer) SignCallCount ¶
func (fake *SignerSerializer) SignCallCount() int
func (*SignerSerializer) SignCalls ¶
func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))
func (*SignerSerializer) SignReturns ¶
func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)
func (*SignerSerializer) SignReturnsOnCall ¶
func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)
Click to show internal directories.
Click to hide internal directories.