Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockHashPolicy
- type MockHashPolicyMockRecorder
- type MockSignaturePolicy
- func (m *MockSignaturePolicy) EXPECT() *MockSignaturePolicyMockRecorder
- func (m *MockSignaturePolicy) GenerateKeys() ([]byte, []byte, error)
- func (m *MockSignaturePolicy) PrivateKeySize() int
- func (m *MockSignaturePolicy) PrivateToPublic(arg0 []byte) ([]byte, error)
- func (m *MockSignaturePolicy) PublicKeySize() int
- func (m *MockSignaturePolicy) RandomKeyPair() *crypto.KeyPair
- func (m *MockSignaturePolicy) Sign(arg0, arg1 []byte) []byte
- func (m *MockSignaturePolicy) Verify(arg0, arg1, arg2 []byte) bool
- type MockSignaturePolicyMockRecorder
- func (mr *MockSignaturePolicyMockRecorder) GenerateKeys() *gomock.Call
- func (mr *MockSignaturePolicyMockRecorder) PrivateKeySize() *gomock.Call
- func (mr *MockSignaturePolicyMockRecorder) PrivateToPublic(arg0 interface{}) *gomock.Call
- func (mr *MockSignaturePolicyMockRecorder) PublicKeySize() *gomock.Call
- func (mr *MockSignaturePolicyMockRecorder) RandomKeyPair() *gomock.Call
- func (mr *MockSignaturePolicyMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSignaturePolicyMockRecorder) Verify(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHashPolicy ¶
type MockHashPolicy struct {
// contains filtered or unexported fields
}
MockHashPolicy is a mock of HashPolicy interface
func NewMockHashPolicy ¶
func NewMockHashPolicy(ctrl *gomock.Controller) *MockHashPolicy
NewMockHashPolicy creates a new mock instance
func (*MockHashPolicy) EXPECT ¶
func (m *MockHashPolicy) EXPECT() *MockHashPolicyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHashPolicy) HashBytes ¶
func (m *MockHashPolicy) HashBytes(arg0 []byte) []byte
HashBytes mocks base method
type MockHashPolicyMockRecorder ¶
type MockHashPolicyMockRecorder struct {
// contains filtered or unexported fields
}
MockHashPolicyMockRecorder is the mock recorder for MockHashPolicy
func (*MockHashPolicyMockRecorder) HashBytes ¶
func (mr *MockHashPolicyMockRecorder) HashBytes(arg0 interface{}) *gomock.Call
HashBytes indicates an expected call of HashBytes
type MockSignaturePolicy ¶
type MockSignaturePolicy struct {
// contains filtered or unexported fields
}
MockSignaturePolicy is a mock of SignaturePolicy interface
func NewMockSignaturePolicy ¶
func NewMockSignaturePolicy(ctrl *gomock.Controller) *MockSignaturePolicy
NewMockSignaturePolicy creates a new mock instance
func (*MockSignaturePolicy) EXPECT ¶
func (m *MockSignaturePolicy) EXPECT() *MockSignaturePolicyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSignaturePolicy) GenerateKeys ¶
func (m *MockSignaturePolicy) GenerateKeys() ([]byte, []byte, error)
GenerateKeys mocks base method
func (*MockSignaturePolicy) PrivateKeySize ¶
func (m *MockSignaturePolicy) PrivateKeySize() int
PrivateKeySize mocks base method
func (*MockSignaturePolicy) PrivateToPublic ¶
func (m *MockSignaturePolicy) PrivateToPublic(arg0 []byte) ([]byte, error)
PrivateToPublic mocks base method
func (*MockSignaturePolicy) PublicKeySize ¶
func (m *MockSignaturePolicy) PublicKeySize() int
PublicKeySize mocks base method
func (*MockSignaturePolicy) RandomKeyPair ¶
func (m *MockSignaturePolicy) RandomKeyPair() *crypto.KeyPair
RandomKeyPair mocks base method
func (*MockSignaturePolicy) Sign ¶
func (m *MockSignaturePolicy) Sign(arg0, arg1 []byte) []byte
Sign mocks base method
func (*MockSignaturePolicy) Verify ¶
func (m *MockSignaturePolicy) Verify(arg0, arg1, arg2 []byte) bool
Verify mocks base method
type MockSignaturePolicyMockRecorder ¶
type MockSignaturePolicyMockRecorder struct {
// contains filtered or unexported fields
}
MockSignaturePolicyMockRecorder is the mock recorder for MockSignaturePolicy
func (*MockSignaturePolicyMockRecorder) GenerateKeys ¶
func (mr *MockSignaturePolicyMockRecorder) GenerateKeys() *gomock.Call
GenerateKeys indicates an expected call of GenerateKeys
func (*MockSignaturePolicyMockRecorder) PrivateKeySize ¶
func (mr *MockSignaturePolicyMockRecorder) PrivateKeySize() *gomock.Call
PrivateKeySize indicates an expected call of PrivateKeySize
func (*MockSignaturePolicyMockRecorder) PrivateToPublic ¶
func (mr *MockSignaturePolicyMockRecorder) PrivateToPublic(arg0 interface{}) *gomock.Call
PrivateToPublic indicates an expected call of PrivateToPublic
func (*MockSignaturePolicyMockRecorder) PublicKeySize ¶
func (mr *MockSignaturePolicyMockRecorder) PublicKeySize() *gomock.Call
PublicKeySize indicates an expected call of PublicKeySize
func (*MockSignaturePolicyMockRecorder) RandomKeyPair ¶
func (mr *MockSignaturePolicyMockRecorder) RandomKeyPair() *gomock.Call
RandomKeyPair indicates an expected call of RandomKeyPair
func (*MockSignaturePolicyMockRecorder) Sign ¶
func (mr *MockSignaturePolicyMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call
Sign indicates an expected call of Sign
func (*MockSignaturePolicyMockRecorder) Verify ¶
func (mr *MockSignaturePolicyMockRecorder) Verify(arg0, arg1, arg2 interface{}) *gomock.Call
Verify indicates an expected call of Verify