debugger

package
v0.0.0-...-4b75dde Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package debugger is a generated GoMock package.

Package debugger implements functionality to provide information to debug the control plane via the debug HTTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugConfig

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

DebugConfig implements the DebugServer interface.

func NewDebugConfig

func NewDebugConfig(certDebugger *certificate.Manager, xdsDebugger XDSDebugger,
	proxyRegistry *registry.ProxyRegistry, kubeConfig *rest.Config, kubeClient kubernetes.Interface,
	computeClient compute.Interface, msgBroker *messaging.Broker) DebugConfig

NewDebugConfig returns an implementation of DebugConfig interface.

func (DebugConfig) GetHandlers

func (ds DebugConfig) GetHandlers() map[string]http.Handler

GetHandlers implements DebugConfig interface and returns the rest of URLs and the handling functions.

func (*DebugConfig) StartDebugServerConfigListener

func (d *DebugConfig) StartDebugServerConfigListener(stop chan struct{})

StartDebugServerConfigListener registers a go routine to listen to configuration and configure debug server as needed

type MockXDSDebugger

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

MockXDSDebugger is a mock of XDSDebugger interface.

func NewMockXDSDebugger

func NewMockXDSDebugger(ctrl *gomock.Controller) *MockXDSDebugger

NewMockXDSDebugger creates a new mock instance.

func (*MockXDSDebugger) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockXDSDebugger) GetXDSLog

func (m *MockXDSDebugger) GetXDSLog() map[string]map[envoy.TypeURI][]time.Time

GetXDSLog mocks base method.

type MockXDSDebuggerMockRecorder

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

MockXDSDebuggerMockRecorder is the mock recorder for MockXDSDebugger.

func (*MockXDSDebuggerMockRecorder) GetXDSLog

func (mr *MockXDSDebuggerMockRecorder) GetXDSLog() *gomock.Call

GetXDSLog indicates an expected call of GetXDSLog.

type XDSDebugger

type XDSDebugger interface {
	// GetXDSLog returns a log of the XDS responses sent to Envoy proxies. It is keyed by proxy.GetName(), which is
	// of the form <identity>:<uuid>.
	GetXDSLog() map[string]map[envoy.TypeURI][]time.Time
}

XDSDebugger is an interface providing debugging server with methods introspecting XDS.

Jump to

Keyboard shortcuts

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