mock

package
v0.0.0-...-713cd5d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAServer

type CAServer struct {
	Server  *grpc.Server
	Address string
}

CAServer is the mocked Mesh CA server.

func CreateServer

func CreateServer(addr string, service *CAService) (*CAServer, error)

CreateServer creates a mocked local Google CA server and runs it in a separate thread. nolint: interfacer

func (*CAServer) Stop

func (s *CAServer) Stop()

Stop stops the Mock Mesh CA server.

type CAService

type CAService struct {
	*gcapb.UnimplementedMeshCertificateServiceServer
	Certs []string
	Err   error
}

CAService is a simple mocked Google CA Service.

func (*CAService) CreateCertificate

CreateCertificate is a mocked function for the Google Mesh CA API.

Jump to

Keyboard shortcuts

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