fakekms

package
v0.0.0-...-051b00b Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package fakekms contains a fake of the Google Cloud Key Management service. go/mocks#prefer-fakes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr net.Addr
	// contains filtered or unexported fields
}

Server wraps a local gRPC server that serves KMS requests.

func NewServer

func NewServer() (*Server, error)

NewServer starts a new local Fake KMS server that is listening for gRPC requests.

func (*Server) Close

func (s *Server) Close()

Close stops the server by immediately closing all connections and listeners.

type ServerOptions

type ServerOptions struct {
	// The amount of time each request should be delayed before processing.
	Delay time.Duration
}

ServerOptions contains options for the FakeKMS server.

Directories

Path Synopsis
Package main starts a new fakekms server that listens on an OS-supplied port.
Package main starts a new fakekms server that listens on an OS-supplied port.

Jump to

Keyboard shortcuts

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