Documentation ¶
Overview ¶
Package gcpmock provides a mock client for testing purposes.
Index ¶
- type MockClient
- func (m *MockClient) Address() common.Address
- func (m *MockClient) AsymmetricSign(ctx context.Context, res *kmspb.AsymmetricSignRequest, ...) (*kmspb.AsymmetricSignResponse, error)
- func (m *MockClient) GetPublicKey(_ context.Context, req *kmspb.GetPublicKeyRequest, _ ...gax.CallOption) (*kmspb.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock client for testing purposes.
func NewMockClient ¶
func NewMockClient() (*MockClient, error)
NewMockClient creates a mock client for testing purposes.
func (*MockClient) Address ¶
func (m *MockClient) Address() common.Address
Address gets the address of the mock client.
func (*MockClient) AsymmetricSign ¶
func (m *MockClient) AsymmetricSign(ctx context.Context, res *kmspb.AsymmetricSignRequest, options ...gax.CallOption) (*kmspb.AsymmetricSignResponse, error)
AsymmetricSign signs a message with the mock client.
func (*MockClient) GetPublicKey ¶
func (m *MockClient) GetPublicKey(_ context.Context, req *kmspb.GetPublicKeyRequest, _ ...gax.CallOption) (*kmspb.PublicKey, error)
GetPublicKey gets the public key of the mock client.
Click to show internal directories.
Click to hide internal directories.