mock

package
v0.0.0-...-b5abb6b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FwLog = logf.Log.WithName("mock")
View Source
var MockServices = make(map[string]*MockService, 0)

Functions

func RunMockService

func RunMockService(name string) error

func StartMockServices

func StartMockServices()

func StopMockService

func StopMockService(name string) error

func StopMockServices

func StopMockServices()

Types

type MockService

type MockService struct {
	Informer cache.SharedIndexInformer
	// contains filtered or unexported fields
}

func NewMockService

func NewMockService(serviceName string) (mockService *MockService)

func (*MockService) HandleAdd

func (m *MockService) HandleAdd(handler func(obj interface{}))

func (*MockService) HandleDelete

func (m *MockService) HandleDelete(handler func(obj interface{}))

func (*MockService) HandleUpdate

func (m *MockService) HandleUpdate(handler func(oldObj interface{}, newObj interface{}))

func (*MockService) Start

func (m *MockService) Start()

func (*MockService) Stop

func (m *MockService) Stop()

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewGrpServer

func NewGrpServer(host string, port string) *Server

func (*Server) GetServer

func (server *Server) GetServer() *grpc.Server

func (*Server) StartServer

func (server *Server) StartServer()

Jump to

Keyboard shortcuts

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