mocks

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelPolicyManagerGetter

type ChannelPolicyManagerGetter struct {
	mock.Mock
}

ChannelPolicyManagerGetter is an autogenerated mock type for the ChannelPolicyManagerGetter type

func NewChannelPolicyManagerGetter

func NewChannelPolicyManagerGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChannelPolicyManagerGetter

NewChannelPolicyManagerGetter creates a new instance of ChannelPolicyManagerGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChannelPolicyManagerGetter) EXPECT added in v0.2.9

func (*ChannelPolicyManagerGetter) Manager

func (_mock *ChannelPolicyManagerGetter) Manager(channelID string) policies.Manager

Manager provides a mock function for the type ChannelPolicyManagerGetter

type ChannelPolicyManagerGetter_Expecter added in v0.2.9

type ChannelPolicyManagerGetter_Expecter struct {
	// contains filtered or unexported fields
}

func (*ChannelPolicyManagerGetter_Expecter) Manager added in v0.2.9

Manager is a helper method to define mock.On call

  • channelID string

type ChannelPolicyManagerGetter_Manager_Call added in v0.2.9

type ChannelPolicyManagerGetter_Manager_Call struct {
	*mock.Call
}

ChannelPolicyManagerGetter_Manager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Manager'

func (*ChannelPolicyManagerGetter_Manager_Call) Return added in v0.2.9

func (*ChannelPolicyManagerGetter_Manager_Call) Run added in v0.2.9

func (*ChannelPolicyManagerGetter_Manager_Call) RunAndReturn added in v0.2.9

type ChannelPolicyReferenceProvider

type ChannelPolicyReferenceProvider struct {
	mock.Mock
}

ChannelPolicyReferenceProvider is an autogenerated mock type for the ChannelPolicyReferenceProvider type

func NewChannelPolicyReferenceProvider

func NewChannelPolicyReferenceProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChannelPolicyReferenceProvider

NewChannelPolicyReferenceProvider creates a new instance of ChannelPolicyReferenceProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChannelPolicyReferenceProvider) EXPECT added in v0.2.9

func (*ChannelPolicyReferenceProvider) NewPolicy

func (_mock *ChannelPolicyReferenceProvider) NewPolicy(channelConfigPolicyReference string) (policies.Policy, error)

NewPolicy provides a mock function for the type ChannelPolicyReferenceProvider

type ChannelPolicyReferenceProvider_Expecter added in v0.2.9

type ChannelPolicyReferenceProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*ChannelPolicyReferenceProvider_Expecter) NewPolicy added in v0.2.9

NewPolicy is a helper method to define mock.On call

  • channelConfigPolicyReference string

type ChannelPolicyReferenceProvider_NewPolicy_Call added in v0.2.9

type ChannelPolicyReferenceProvider_NewPolicy_Call struct {
	*mock.Call
}

ChannelPolicyReferenceProvider_NewPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewPolicy'

func (*ChannelPolicyReferenceProvider_NewPolicy_Call) Return added in v0.2.9

func (*ChannelPolicyReferenceProvider_NewPolicy_Call) Run added in v0.2.9

func (*ChannelPolicyReferenceProvider_NewPolicy_Call) RunAndReturn added in v0.2.9

type Identity

type Identity struct {
	mock.Mock
}

Identity is an autogenerated mock type for the Identity type

func NewIdentity

func NewIdentity(t interface {
	mock.TestingT
	Cleanup(func())
}) *Identity

NewIdentity creates a new instance of Identity. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Identity) Anonymous

func (_mock *Identity) Anonymous() bool

Anonymous provides a mock function for the type Identity

func (*Identity) EXPECT added in v0.2.9

func (_m *Identity) EXPECT() *Identity_Expecter

func (*Identity) ExpiresAt

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

ExpiresAt provides a mock function for the type Identity

func (*Identity) GetCertificatePEM

func (_mock *Identity) GetCertificatePEM() ([]byte, error)

GetCertificatePEM provides a mock function for the type Identity

func (*Identity) GetIdentifier

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

GetIdentifier provides a mock function for the type Identity

func (*Identity) GetMSPIdentifier

func (_mock *Identity) GetMSPIdentifier() string

GetMSPIdentifier provides a mock function for the type Identity

func (*Identity) GetOrganizationalUnits

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

GetOrganizationalUnits provides a mock function for the type Identity

func (*Identity) SatisfiesPrincipal

func (_mock *Identity) SatisfiesPrincipal(principal *msp0.MSPPrincipal) error

SatisfiesPrincipal provides a mock function for the type Identity

func (*Identity) Serialize

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

Serialize provides a mock function for the type Identity

func (*Identity) SerializeWithIDOfCert

func (_mock *Identity) SerializeWithIDOfCert() ([]byte, error)

SerializeWithIDOfCert provides a mock function for the type Identity

func (*Identity) Validate

func (_mock *Identity) Validate() error

Validate provides a mock function for the type Identity

func (*Identity) Verify

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

Verify provides a mock function for the type Identity

type IdentityDeserializer

type IdentityDeserializer struct {
	mock.Mock
}

IdentityDeserializer is an autogenerated mock type for the IdentityDeserializer type

func NewIdentityDeserializer

func NewIdentityDeserializer(t interface {
	mock.TestingT
	Cleanup(func())
}) *IdentityDeserializer

NewIdentityDeserializer creates a new instance of IdentityDeserializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IdentityDeserializer) DeserializeIdentity

func (_mock *IdentityDeserializer) DeserializeIdentity(identity *msppb.Identity) (msp.Identity, error)

DeserializeIdentity provides a mock function for the type IdentityDeserializer

func (*IdentityDeserializer) EXPECT added in v0.2.9

func (*IdentityDeserializer) GetKnownDeserializedIdentity

func (_mock *IdentityDeserializer) GetKnownDeserializedIdentity(identityIdentifier msp.IdentityIdentifier) msp.Identity

GetKnownDeserializedIdentity provides a mock function for the type IdentityDeserializer

func (*IdentityDeserializer) IsWellFormed

func (_mock *IdentityDeserializer) IsWellFormed(identity *msppb.Identity) error

IsWellFormed provides a mock function for the type IdentityDeserializer

type IdentityDeserializer_DeserializeIdentity_Call added in v0.2.9

type IdentityDeserializer_DeserializeIdentity_Call struct {
	*mock.Call
}

IdentityDeserializer_DeserializeIdentity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeserializeIdentity'

func (*IdentityDeserializer_DeserializeIdentity_Call) Return added in v0.2.9

func (*IdentityDeserializer_DeserializeIdentity_Call) Run added in v0.2.9

func (*IdentityDeserializer_DeserializeIdentity_Call) RunAndReturn added in v0.2.9

type IdentityDeserializer_Expecter added in v0.2.9

type IdentityDeserializer_Expecter struct {
	// contains filtered or unexported fields
}

func (*IdentityDeserializer_Expecter) DeserializeIdentity added in v0.2.9

DeserializeIdentity is a helper method to define mock.On call

  • identity *msppb.Identity

func (*IdentityDeserializer_Expecter) GetKnownDeserializedIdentity added in v0.2.9

func (_e *IdentityDeserializer_Expecter) GetKnownDeserializedIdentity(identityIdentifier any) *IdentityDeserializer_GetKnownDeserializedIdentity_Call

GetKnownDeserializedIdentity is a helper method to define mock.On call

  • identityIdentifier msp.IdentityIdentifier

func (*IdentityDeserializer_Expecter) IsWellFormed added in v0.2.9

IsWellFormed is a helper method to define mock.On call

  • identity *msppb.Identity

type IdentityDeserializer_GetKnownDeserializedIdentity_Call added in v0.2.9

type IdentityDeserializer_GetKnownDeserializedIdentity_Call struct {
	*mock.Call
}

IdentityDeserializer_GetKnownDeserializedIdentity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKnownDeserializedIdentity'

func (*IdentityDeserializer_GetKnownDeserializedIdentity_Call) Return added in v0.2.9

func (*IdentityDeserializer_GetKnownDeserializedIdentity_Call) Run added in v0.2.9

func (*IdentityDeserializer_GetKnownDeserializedIdentity_Call) RunAndReturn added in v0.2.9

type IdentityDeserializer_IsWellFormed_Call added in v0.2.9

type IdentityDeserializer_IsWellFormed_Call struct {
	*mock.Call
}

IdentityDeserializer_IsWellFormed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsWellFormed'

func (*IdentityDeserializer_IsWellFormed_Call) Return added in v0.2.9

func (*IdentityDeserializer_IsWellFormed_Call) Run added in v0.2.9

func (*IdentityDeserializer_IsWellFormed_Call) RunAndReturn added in v0.2.9

type Identity_Anonymous_Call added in v0.2.9

type Identity_Anonymous_Call struct {
	*mock.Call
}

Identity_Anonymous_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Anonymous'

func (*Identity_Anonymous_Call) Return added in v0.2.9

func (*Identity_Anonymous_Call) Run added in v0.2.9

func (_c *Identity_Anonymous_Call) Run(run func()) *Identity_Anonymous_Call

func (*Identity_Anonymous_Call) RunAndReturn added in v0.2.9

func (_c *Identity_Anonymous_Call) RunAndReturn(run func() bool) *Identity_Anonymous_Call

type Identity_Expecter added in v0.2.9

type Identity_Expecter struct {
	// contains filtered or unexported fields
}

func (*Identity_Expecter) Anonymous added in v0.2.9

func (_e *Identity_Expecter) Anonymous() *Identity_Anonymous_Call

Anonymous is a helper method to define mock.On call

func (*Identity_Expecter) ExpiresAt added in v0.2.9

func (_e *Identity_Expecter) ExpiresAt() *Identity_ExpiresAt_Call

ExpiresAt is a helper method to define mock.On call

func (*Identity_Expecter) GetCertificatePEM added in v0.2.9

func (_e *Identity_Expecter) GetCertificatePEM() *Identity_GetCertificatePEM_Call

GetCertificatePEM is a helper method to define mock.On call

func (*Identity_Expecter) GetIdentifier added in v0.2.9

func (_e *Identity_Expecter) GetIdentifier() *Identity_GetIdentifier_Call

GetIdentifier is a helper method to define mock.On call

func (*Identity_Expecter) GetMSPIdentifier added in v0.2.9

func (_e *Identity_Expecter) GetMSPIdentifier() *Identity_GetMSPIdentifier_Call

GetMSPIdentifier is a helper method to define mock.On call

func (*Identity_Expecter) GetOrganizationalUnits added in v0.2.9

func (_e *Identity_Expecter) GetOrganizationalUnits() *Identity_GetOrganizationalUnits_Call

GetOrganizationalUnits is a helper method to define mock.On call

func (*Identity_Expecter) SatisfiesPrincipal added in v0.2.9

func (_e *Identity_Expecter) SatisfiesPrincipal(principal any) *Identity_SatisfiesPrincipal_Call

SatisfiesPrincipal is a helper method to define mock.On call

  • principal *msp0.MSPPrincipal

func (*Identity_Expecter) Serialize added in v0.2.9

func (_e *Identity_Expecter) Serialize() *Identity_Serialize_Call

Serialize is a helper method to define mock.On call

func (*Identity_Expecter) SerializeWithIDOfCert added in v0.2.9

func (_e *Identity_Expecter) SerializeWithIDOfCert() *Identity_SerializeWithIDOfCert_Call

SerializeWithIDOfCert is a helper method to define mock.On call

func (*Identity_Expecter) Validate added in v0.2.9

func (_e *Identity_Expecter) Validate() *Identity_Validate_Call

Validate is a helper method to define mock.On call

func (*Identity_Expecter) Verify added in v0.2.9

func (_e *Identity_Expecter) Verify(msg any, sig any) *Identity_Verify_Call

Verify is a helper method to define mock.On call

  • msg []byte
  • sig []byte

type Identity_ExpiresAt_Call added in v0.2.9

type Identity_ExpiresAt_Call struct {
	*mock.Call
}

Identity_ExpiresAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExpiresAt'

func (*Identity_ExpiresAt_Call) Return added in v0.2.9

func (*Identity_ExpiresAt_Call) Run added in v0.2.9

func (_c *Identity_ExpiresAt_Call) Run(run func()) *Identity_ExpiresAt_Call

func (*Identity_ExpiresAt_Call) RunAndReturn added in v0.2.9

func (_c *Identity_ExpiresAt_Call) RunAndReturn(run func() time.Time) *Identity_ExpiresAt_Call

type Identity_GetCertificatePEM_Call added in v0.2.9

type Identity_GetCertificatePEM_Call struct {
	*mock.Call
}

Identity_GetCertificatePEM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCertificatePEM'

func (*Identity_GetCertificatePEM_Call) Return added in v0.2.9

func (*Identity_GetCertificatePEM_Call) Run added in v0.2.9

func (*Identity_GetCertificatePEM_Call) RunAndReturn added in v0.2.9

type Identity_GetIdentifier_Call added in v0.2.9

type Identity_GetIdentifier_Call struct {
	*mock.Call
}

Identity_GetIdentifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIdentifier'

func (*Identity_GetIdentifier_Call) Return added in v0.2.9

func (*Identity_GetIdentifier_Call) Run added in v0.2.9

func (*Identity_GetIdentifier_Call) RunAndReturn added in v0.2.9

type Identity_GetMSPIdentifier_Call added in v0.2.9

type Identity_GetMSPIdentifier_Call struct {
	*mock.Call
}

Identity_GetMSPIdentifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMSPIdentifier'

func (*Identity_GetMSPIdentifier_Call) Return added in v0.2.9

func (*Identity_GetMSPIdentifier_Call) Run added in v0.2.9

func (*Identity_GetMSPIdentifier_Call) RunAndReturn added in v0.2.9

type Identity_GetOrganizationalUnits_Call added in v0.2.9

type Identity_GetOrganizationalUnits_Call struct {
	*mock.Call
}

Identity_GetOrganizationalUnits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrganizationalUnits'

func (*Identity_GetOrganizationalUnits_Call) Return added in v0.2.9

func (*Identity_GetOrganizationalUnits_Call) Run added in v0.2.9

func (*Identity_GetOrganizationalUnits_Call) RunAndReturn added in v0.2.9

type Identity_SatisfiesPrincipal_Call added in v0.2.9

type Identity_SatisfiesPrincipal_Call struct {
	*mock.Call
}

Identity_SatisfiesPrincipal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SatisfiesPrincipal'

func (*Identity_SatisfiesPrincipal_Call) Return added in v0.2.9

func (*Identity_SatisfiesPrincipal_Call) Run added in v0.2.9

func (*Identity_SatisfiesPrincipal_Call) RunAndReturn added in v0.2.9

type Identity_SerializeWithIDOfCert_Call added in v0.2.9

type Identity_SerializeWithIDOfCert_Call struct {
	*mock.Call
}

Identity_SerializeWithIDOfCert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SerializeWithIDOfCert'

func (*Identity_SerializeWithIDOfCert_Call) Return added in v0.2.9

func (*Identity_SerializeWithIDOfCert_Call) Run added in v0.2.9

func (*Identity_SerializeWithIDOfCert_Call) RunAndReturn added in v0.2.9

type Identity_Serialize_Call added in v0.2.9

type Identity_Serialize_Call struct {
	*mock.Call
}

Identity_Serialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serialize'

func (*Identity_Serialize_Call) Return added in v0.2.9

func (_c *Identity_Serialize_Call) Return(bytes []byte, err error) *Identity_Serialize_Call

func (*Identity_Serialize_Call) Run added in v0.2.9

func (_c *Identity_Serialize_Call) Run(run func()) *Identity_Serialize_Call

func (*Identity_Serialize_Call) RunAndReturn added in v0.2.9

func (_c *Identity_Serialize_Call) RunAndReturn(run func() ([]byte, error)) *Identity_Serialize_Call

type Identity_Validate_Call added in v0.2.9

type Identity_Validate_Call struct {
	*mock.Call
}

Identity_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'

func (*Identity_Validate_Call) Return added in v0.2.9

func (*Identity_Validate_Call) Run added in v0.2.9

func (_c *Identity_Validate_Call) Run(run func()) *Identity_Validate_Call

func (*Identity_Validate_Call) RunAndReturn added in v0.2.9

func (_c *Identity_Validate_Call) RunAndReturn(run func() error) *Identity_Validate_Call

type Identity_Verify_Call added in v0.2.9

type Identity_Verify_Call struct {
	*mock.Call
}

Identity_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'

func (*Identity_Verify_Call) Return added in v0.2.9

func (*Identity_Verify_Call) Run added in v0.2.9

func (_c *Identity_Verify_Call) Run(run func(msg []byte, sig []byte)) *Identity_Verify_Call

func (*Identity_Verify_Call) RunAndReturn added in v0.2.9

func (_c *Identity_Verify_Call) RunAndReturn(run func(msg []byte, sig []byte) error) *Identity_Verify_Call

type MockChannelPolicyManager

type MockChannelPolicyManager struct {
	MockPolicy policies.Policy
}

func (*MockChannelPolicyManager) GetPolicy

func (m *MockChannelPolicyManager) GetPolicy(id string) (policies.Policy, bool)

func (*MockChannelPolicyManager) Manager

func (m *MockChannelPolicyManager) Manager(path []string) (policies.Manager, bool)

type MockChannelPolicyManagerGetter

type MockChannelPolicyManagerGetter struct {
	Managers map[string]policies.Manager
}

func (*MockChannelPolicyManagerGetter) Manager

func (c *MockChannelPolicyManagerGetter) Manager(channelID string) policies.Manager

type MockIdentity

type MockIdentity struct {
	// contains filtered or unexported fields
}

func (*MockIdentity) Anonymous

func (id *MockIdentity) Anonymous() bool

func (*MockIdentity) ExpiresAt

func (id *MockIdentity) ExpiresAt() time.Time

func (*MockIdentity) GetCertificatePEM

func (*MockIdentity) GetCertificatePEM() ([]byte, error)

GetCertificatePEM return the certificate in PEM format.

func (*MockIdentity) GetIdentifier

func (id *MockIdentity) GetIdentifier() *msp.IdentityIdentifier

func (*MockIdentity) GetMSPIdentifier

func (id *MockIdentity) GetMSPIdentifier() string

func (*MockIdentity) GetOrganizationalUnits

func (id *MockIdentity) GetOrganizationalUnits() []*msp.OUIdentifier

func (*MockIdentity) SatisfiesPrincipal

func (id *MockIdentity) SatisfiesPrincipal(p *mspproto.MSPPrincipal) error

func (*MockIdentity) Serialize

func (*MockIdentity) Serialize() ([]byte, error)

Serialize converts identity to bytes.

func (*MockIdentity) SerializeWithIDOfCert

func (*MockIdentity) SerializeWithIDOfCert() ([]byte, error)

SerializeWithIDOfCert converts identity to bytes.

func (*MockIdentity) Validate

func (id *MockIdentity) Validate() error

func (*MockIdentity) Verify

func (id *MockIdentity) Verify(msg []byte, sig []byte) error

type MockIdentityDeserializer

type MockIdentityDeserializer struct {
	Identity *msppb.Identity
	Msg      []byte
}

func (*MockIdentityDeserializer) DeserializeIdentity

func (d *MockIdentityDeserializer) DeserializeIdentity(identity *msppb.Identity) (msp.Identity, error)

DeserializeIdentity converts a proto identity into a msp.Identity.

func (*MockIdentityDeserializer) GetKnownDeserializedIdentity

func (*MockIdentityDeserializer) GetKnownDeserializedIdentity(
	msp.IdentityIdentifier,
) msp.Identity

GetKnownDeserializedIdentity returns a known identity matching the given IdentityIdentifier.

func (*MockIdentityDeserializer) IsWellFormed

func (*MockIdentityDeserializer) IsWellFormed(_ *msppb.Identity) error

IsWellFormed checks whether the certificate provided in the identity is valid.

type MockMSPPrincipalGetter

type MockMSPPrincipalGetter struct {
	Principal []byte
}

func (*MockMSPPrincipalGetter) Get

type MockPolicy

type MockPolicy struct {
	Deserializer msp.IdentityDeserializer
}

func (*MockPolicy) EvaluateIdentities

func (m *MockPolicy) EvaluateIdentities(identities []msp.Identity) error

EvaluateIdentities takes an array of identities and evaluates whether they satisfy the policy

func (*MockPolicy) EvaluateSignedData

func (m *MockPolicy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error

EvaluateSignedData takes a set of SignedData and evaluates whether this set of signatures satisfies the policy

type Policy

type Policy struct {
	mock.Mock
}

Policy is an autogenerated mock type for the Policy type

func NewPolicy

func NewPolicy(t interface {
	mock.TestingT
	Cleanup(func())
}) *Policy

NewPolicy creates a new instance of Policy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Policy) EXPECT added in v0.2.9

func (_m *Policy) EXPECT() *Policy_Expecter

func (*Policy) EvaluateIdentities

func (_mock *Policy) EvaluateIdentities(identities []msp.Identity) error

EvaluateIdentities provides a mock function for the type Policy

func (*Policy) EvaluateSignedData

func (_mock *Policy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error

EvaluateSignedData provides a mock function for the type Policy

type PolicyManager

type PolicyManager struct {
	mock.Mock
}

PolicyManager is an autogenerated mock type for the PolicyManager type

func NewPolicyManager

func NewPolicyManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *PolicyManager

NewPolicyManager creates a new instance of PolicyManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PolicyManager) EXPECT added in v0.2.9

func (_m *PolicyManager) EXPECT() *PolicyManager_Expecter

func (*PolicyManager) GetPolicy

func (_mock *PolicyManager) GetPolicy(id string) (policies.Policy, bool)

GetPolicy provides a mock function for the type PolicyManager

func (*PolicyManager) Manager

func (_mock *PolicyManager) Manager(path []string) (policies.Manager, bool)

Manager provides a mock function for the type PolicyManager

type PolicyManager_Expecter added in v0.2.9

type PolicyManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*PolicyManager_Expecter) GetPolicy added in v0.2.9

GetPolicy is a helper method to define mock.On call

  • id string

func (*PolicyManager_Expecter) Manager added in v0.2.9

Manager is a helper method to define mock.On call

  • path []string

type PolicyManager_GetPolicy_Call added in v0.2.9

type PolicyManager_GetPolicy_Call struct {
	*mock.Call
}

PolicyManager_GetPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicy'

func (*PolicyManager_GetPolicy_Call) Return added in v0.2.9

func (*PolicyManager_GetPolicy_Call) Run added in v0.2.9

func (*PolicyManager_GetPolicy_Call) RunAndReturn added in v0.2.9

type PolicyManager_Manager_Call added in v0.2.9

type PolicyManager_Manager_Call struct {
	*mock.Call
}

PolicyManager_Manager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Manager'

func (*PolicyManager_Manager_Call) Return added in v0.2.9

func (*PolicyManager_Manager_Call) Run added in v0.2.9

func (*PolicyManager_Manager_Call) RunAndReturn added in v0.2.9

func (_c *PolicyManager_Manager_Call) RunAndReturn(run func(path []string) (policies.Manager, bool)) *PolicyManager_Manager_Call

type Policy_EvaluateIdentities_Call added in v0.2.9

type Policy_EvaluateIdentities_Call struct {
	*mock.Call
}

Policy_EvaluateIdentities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvaluateIdentities'

func (*Policy_EvaluateIdentities_Call) Return added in v0.2.9

func (*Policy_EvaluateIdentities_Call) Run added in v0.2.9

func (*Policy_EvaluateIdentities_Call) RunAndReturn added in v0.2.9

func (_c *Policy_EvaluateIdentities_Call) RunAndReturn(run func(identities []msp.Identity) error) *Policy_EvaluateIdentities_Call

type Policy_EvaluateSignedData_Call added in v0.2.9

type Policy_EvaluateSignedData_Call struct {
	*mock.Call
}

Policy_EvaluateSignedData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvaluateSignedData'

func (*Policy_EvaluateSignedData_Call) Return added in v0.2.9

func (*Policy_EvaluateSignedData_Call) Run added in v0.2.9

func (*Policy_EvaluateSignedData_Call) RunAndReturn added in v0.2.9

func (_c *Policy_EvaluateSignedData_Call) RunAndReturn(run func(signatureSet []*protoutil.SignedData) error) *Policy_EvaluateSignedData_Call

type Policy_Expecter added in v0.2.9

type Policy_Expecter struct {
	// contains filtered or unexported fields
}

func (*Policy_Expecter) EvaluateIdentities added in v0.2.9

func (_e *Policy_Expecter) EvaluateIdentities(identities any) *Policy_EvaluateIdentities_Call

EvaluateIdentities is a helper method to define mock.On call

  • identities []msp.Identity

func (*Policy_Expecter) EvaluateSignedData added in v0.2.9

func (_e *Policy_Expecter) EvaluateSignedData(signatureSet any) *Policy_EvaluateSignedData_Call

EvaluateSignedData is a helper method to define mock.On call

  • signatureSet []*protoutil.SignedData

type SignaturePolicyProvider

type SignaturePolicyProvider struct {
	mock.Mock
}

SignaturePolicyProvider is an autogenerated mock type for the SignaturePolicyProvider type

func NewSignaturePolicyProvider

func NewSignaturePolicyProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *SignaturePolicyProvider

NewSignaturePolicyProvider creates a new instance of SignaturePolicyProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SignaturePolicyProvider) EXPECT added in v0.2.9

func (*SignaturePolicyProvider) NewPolicy

func (_mock *SignaturePolicyProvider) NewPolicy(signaturePolicy *common.SignaturePolicyEnvelope) (policies.Policy, error)

NewPolicy provides a mock function for the type SignaturePolicyProvider

type SignaturePolicyProvider_Expecter added in v0.2.9

type SignaturePolicyProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*SignaturePolicyProvider_Expecter) NewPolicy added in v0.2.9

NewPolicy is a helper method to define mock.On call

  • signaturePolicy *common.SignaturePolicyEnvelope

type SignaturePolicyProvider_NewPolicy_Call added in v0.2.9

type SignaturePolicyProvider_NewPolicy_Call struct {
	*mock.Call
}

SignaturePolicyProvider_NewPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewPolicy'

func (*SignaturePolicyProvider_NewPolicy_Call) Return added in v0.2.9

func (*SignaturePolicyProvider_NewPolicy_Call) Run added in v0.2.9

func (*SignaturePolicyProvider_NewPolicy_Call) RunAndReturn added in v0.2.9

Jump to

Keyboard shortcuts

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