debugger

package
v1.4.14 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 31 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

func ForwardPort

func ForwardPort(kubeConfig *rest.Config, req PortForward)

ForwardPort starts port forward

Types

type CertificateManagerDebugger

type CertificateManagerDebugger interface {
	// ListIssuedCertificates returns the current list of certificates in FSM's cache.
	ListIssuedCertificates() []*certificate.Certificate
}

CertificateManagerDebugger is an interface with methods for debugging certificate issuance.

type DebugConfig

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

DebugConfig implements the DebugServer interface.

func NewDebugConfig

func NewDebugConfig(certDebugger CertificateManagerDebugger, meshCatalogDebugger MeshCatalogDebugger,
	kubeConfig *rest.Config, kubeClient kubernetes.Interface,
	cfg configurator.Configurator, kubeController k8s.Controller, msgBroker *messaging.Broker) DebugConfig

NewDebugConfig returns an implementation of DebugConfig interface.

func (DebugConfig) GetHandlers

func (ds DebugConfig) GetHandlers(handlers map[string]http.Handler) 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(httpDebugHandlers map[string]http.Handler, stop chan struct{})

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

type MeshCatalogDebugger

type MeshCatalogDebugger interface {
	// ListSMIPolicies lists the SMI policies detected by FSM.
	ListSMIPolicies() ([]*split.TrafficSplit, []identity.K8sServiceAccount, []*spec.HTTPRouteGroup, []*access.TrafficTarget)
}

MeshCatalogDebugger is an interface with methods for debugging Mesh Catalog.

type MockCertificateManagerDebugger

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

MockCertificateManagerDebugger is a mock of CertificateManagerDebugger interface.

func NewMockCertificateManagerDebugger

func NewMockCertificateManagerDebugger(ctrl *gomock.Controller) *MockCertificateManagerDebugger

NewMockCertificateManagerDebugger creates a new mock instance.

func (*MockCertificateManagerDebugger) EXPECT

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

func (*MockCertificateManagerDebugger) ListIssuedCertificates

func (m *MockCertificateManagerDebugger) ListIssuedCertificates() []*certificate.Certificate

ListIssuedCertificates mocks base method.

type MockCertificateManagerDebuggerMockRecorder

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

MockCertificateManagerDebuggerMockRecorder is the mock recorder for MockCertificateManagerDebugger.

func (*MockCertificateManagerDebuggerMockRecorder) ListIssuedCertificates

func (mr *MockCertificateManagerDebuggerMockRecorder) ListIssuedCertificates() *gomock.Call

ListIssuedCertificates indicates an expected call of ListIssuedCertificates.

type MockMeshCatalogDebugger

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

MockMeshCatalogDebugger is a mock of MeshCatalogDebugger interface.

func NewMockMeshCatalogDebugger

func NewMockMeshCatalogDebugger(ctrl *gomock.Controller) *MockMeshCatalogDebugger

NewMockMeshCatalogDebugger creates a new mock instance.

func (*MockMeshCatalogDebugger) EXPECT

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

func (*MockMeshCatalogDebugger) ListSMIPolicies

ListSMIPolicies mocks base method.

type MockMeshCatalogDebuggerMockRecorder

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

MockMeshCatalogDebuggerMockRecorder is the mock recorder for MockMeshCatalogDebugger.

func (*MockMeshCatalogDebuggerMockRecorder) ListSMIPolicies

func (mr *MockMeshCatalogDebuggerMockRecorder) ListSMIPolicies() *gomock.Call

ListSMIPolicies indicates an expected call of ListSMIPolicies.

type PortForward

type PortForward struct {
	// Pod for which port forwarding is done.
	Pod *v1.Pod

	// LocalPort is port on local host, which will be used.
	LocalPort int

	// PodPort is the port on the target Pod, which will be forwarded.
	PodPort int

	// Stop is a channel managing the port forward lifecycle.
	Stop chan struct{}

	// Ready is a channel informing us when the tunnel is ready.
	Ready chan struct{}
}

PortForward defines port forward

Jump to

Keyboard shortcuts

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