gcpmock

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 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