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 ¶
- func ForwardPort(kubeConfig *rest.Config, req PortForward)
- type CertificateManagerDebugger
- type DebugConfig
- type MeshCatalogDebugger
- type MockCertificateManagerDebugger
- type MockCertificateManagerDebuggerMockRecorder
- type MockMeshCatalogDebugger
- type MockMeshCatalogDebuggerMockRecorder
- type PortForward
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 ¶
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 ¶
func (m *MockCertificateManagerDebugger) EXPECT() *MockCertificateManagerDebuggerMockRecorder
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 ¶
func (m *MockMeshCatalogDebugger) EXPECT() *MockMeshCatalogDebuggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMeshCatalogDebugger) ListSMIPolicies ¶
func (m *MockMeshCatalogDebugger) ListSMIPolicies() ([]*v1alpha40.TrafficSplit, []identity.K8sServiceAccount, []*v1alpha4.HTTPRouteGroup, []*v1alpha3.TrafficTarget)
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