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 CertificateManagerDebugger ¶
type CertificateManagerDebugger interface { // ListIssuedCertificates returns the current list of certificates in OSM's cache. ListIssuedCertificates() []certificate.Certificater }
CertificateManagerDebugger is an interface with methods for debugging certificate issuance.
type DebugConfig ¶ added in v0.6.0
type DebugConfig struct {
// contains filtered or unexported fields
}
DebugConfig implements the DebugServer interface.
func NewDebugConfig ¶ added in v0.6.0
func NewDebugConfig(certDebugger CertificateManagerDebugger, xdsDebugger XDSDebugger, meshCatalogDebugger MeshCatalogDebugger, proxyRegistry *registry.ProxyRegistry, 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 ¶ added in v0.6.0
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 ¶ added in v0.7.0
func (d *DebugConfig) StartDebugServerConfigListener(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 OSM. ListSMIPolicies() ([]*split.TrafficSplit, []identity.K8sServiceAccount, []*spec.HTTPRouteGroup, []*access.TrafficTarget) }
MeshCatalogDebugger is an interface with methods for debugging Mesh Catalog.
type MockCertificateManagerDebugger ¶ added in v0.4.0
type MockCertificateManagerDebugger struct {
// contains filtered or unexported fields
}
MockCertificateManagerDebugger is a mock of CertificateManagerDebugger interface.
func NewMockCertificateManagerDebugger ¶ added in v0.4.0
func NewMockCertificateManagerDebugger(ctrl *gomock.Controller) *MockCertificateManagerDebugger
NewMockCertificateManagerDebugger creates a new mock instance.
func (*MockCertificateManagerDebugger) EXPECT ¶ added in v0.4.0
func (m *MockCertificateManagerDebugger) EXPECT() *MockCertificateManagerDebuggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCertificateManagerDebugger) ListIssuedCertificates ¶ added in v0.4.0
func (m *MockCertificateManagerDebugger) ListIssuedCertificates() []certificate.Certificater
ListIssuedCertificates mocks base method.
type MockCertificateManagerDebuggerMockRecorder ¶ added in v0.4.0
type MockCertificateManagerDebuggerMockRecorder struct {
// contains filtered or unexported fields
}
MockCertificateManagerDebuggerMockRecorder is the mock recorder for MockCertificateManagerDebugger.
func (*MockCertificateManagerDebuggerMockRecorder) ListIssuedCertificates ¶ added in v0.4.0
func (mr *MockCertificateManagerDebuggerMockRecorder) ListIssuedCertificates() *gomock.Call
ListIssuedCertificates indicates an expected call of ListIssuedCertificates.
type MockMeshCatalogDebugger ¶ added in v0.4.0
type MockMeshCatalogDebugger struct {
// contains filtered or unexported fields
}
MockMeshCatalogDebugger is a mock of MeshCatalogDebugger interface.
func NewMockMeshCatalogDebugger ¶ added in v0.4.0
func NewMockMeshCatalogDebugger(ctrl *gomock.Controller) *MockMeshCatalogDebugger
NewMockMeshCatalogDebugger creates a new mock instance.
func (*MockMeshCatalogDebugger) EXPECT ¶ added in v0.4.0
func (m *MockMeshCatalogDebugger) EXPECT() *MockMeshCatalogDebuggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMeshCatalogDebugger) ListSMIPolicies ¶ added in v0.4.0
func (m *MockMeshCatalogDebugger) ListSMIPolicies() ([]*v1alpha2.TrafficSplit, []identity.K8sServiceAccount, []*v1alpha4.HTTPRouteGroup, []*v1alpha3.TrafficTarget)
ListSMIPolicies mocks base method.
type MockMeshCatalogDebuggerMockRecorder ¶ added in v0.4.0
type MockMeshCatalogDebuggerMockRecorder struct {
// contains filtered or unexported fields
}
MockMeshCatalogDebuggerMockRecorder is the mock recorder for MockMeshCatalogDebugger.
func (*MockMeshCatalogDebuggerMockRecorder) ListSMIPolicies ¶ added in v0.4.0
func (mr *MockMeshCatalogDebuggerMockRecorder) ListSMIPolicies() *gomock.Call
ListSMIPolicies indicates an expected call of ListSMIPolicies.
type MockXDSDebugger ¶ added in v0.4.0
type MockXDSDebugger struct {
// contains filtered or unexported fields
}
MockXDSDebugger is a mock of XDSDebugger interface.
func NewMockXDSDebugger ¶ added in v0.4.0
func NewMockXDSDebugger(ctrl *gomock.Controller) *MockXDSDebugger
NewMockXDSDebugger creates a new mock instance.
func (*MockXDSDebugger) EXPECT ¶ added in v0.4.0
func (m *MockXDSDebugger) EXPECT() *MockXDSDebuggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockXDSDebugger) GetXDSLog ¶ added in v0.4.0
func (m *MockXDSDebugger) GetXDSLog() *map[certificate.CommonName]map[envoy.TypeURI][]time.Time
GetXDSLog mocks base method.
type MockXDSDebuggerMockRecorder ¶ added in v0.4.0
type MockXDSDebuggerMockRecorder struct {
// contains filtered or unexported fields
}
MockXDSDebuggerMockRecorder is the mock recorder for MockXDSDebugger.
func (*MockXDSDebuggerMockRecorder) GetXDSLog ¶ added in v0.4.0
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. GetXDSLog() *map[certificate.CommonName]map[envoy.TypeURI][]time.Time }
XDSDebugger is an interface providing debugging server with methods introspecting XDS.