gcpmock

package
v0.0.102 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package gcpmock provides a mock client for testing purposes.

Index

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.

Jump to

Keyboard shortcuts

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