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 ¶
- type CertificateManagerDebugger
- type DebugConfig
- type MeshCatalogDebugger
- type MockCertificateManagerDebugger
- type MockCertificateManagerDebuggerMockRecorder
- type MockMeshCatalogDebugger
- func (m *MockMeshCatalogDebugger) EXPECT() *MockMeshCatalogDebuggerMockRecorder
- func (m *MockMeshCatalogDebugger) ListConnectedProxies() map[certificate.CommonName]*envoy.Proxy
- func (m *MockMeshCatalogDebugger) ListDisconnectedProxies() map[certificate.CommonName]time.Time
- func (m *MockMeshCatalogDebugger) ListExpectedProxies() map[certificate.CommonName]time.Time
- func (m *MockMeshCatalogDebugger) ListMonitoredNamespaces() []string
- func (m *MockMeshCatalogDebugger) ListSMIPolicies() ([]*v1alpha2.TrafficSplit, []service.K8sServiceAccount, ...)
- type MockMeshCatalogDebuggerMockRecorder
- func (mr *MockMeshCatalogDebuggerMockRecorder) ListConnectedProxies() *gomock.Call
- func (mr *MockMeshCatalogDebuggerMockRecorder) ListDisconnectedProxies() *gomock.Call
- func (mr *MockMeshCatalogDebuggerMockRecorder) ListExpectedProxies() *gomock.Call
- func (mr *MockMeshCatalogDebuggerMockRecorder) ListMonitoredNamespaces() *gomock.Call
- func (mr *MockMeshCatalogDebuggerMockRecorder) ListSMIPolicies() *gomock.Call
- type MockXDSDebugger
- type MockXDSDebuggerMockRecorder
- type XDSDebugger
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, kubeConfig *rest.Config, kubeClient kubernetes.Interface, cfg configurator.Configurator, kubeController k8s.Controller) 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()
StartDebugServerConfigListener registers a go routine to listen to configuration and configure debug server as needed
type MeshCatalogDebugger ¶
type MeshCatalogDebugger interface { // ListExpectedProxies lists the Envoy proxies yet to connect and the time their XDS certificate was issued. ListExpectedProxies() map[certificate.CommonName]time.Time // ListConnectedProxies lists the Envoy proxies already connected and the time they first connected. ListConnectedProxies() map[certificate.CommonName]*envoy.Proxy // ListDisconnectedProxies lists the Envoy proxies disconnected and the time last seen. ListDisconnectedProxies() map[certificate.CommonName]time.Time // ListSMIPolicies lists the SMI policies detected by OSM. ListSMIPolicies() ([]*split.TrafficSplit, []service.K8sServiceAccount, []*spec.HTTPRouteGroup, []*access.TrafficTarget) // ListMonitoredNamespaces lists the namespaces that the control plan knows about. ListMonitoredNamespaces() []string }
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) ListConnectedProxies ¶ added in v0.4.0
func (m *MockMeshCatalogDebugger) ListConnectedProxies() map[certificate.CommonName]*envoy.Proxy
ListConnectedProxies mocks base method
func (*MockMeshCatalogDebugger) ListDisconnectedProxies ¶ added in v0.4.0
func (m *MockMeshCatalogDebugger) ListDisconnectedProxies() map[certificate.CommonName]time.Time
ListDisconnectedProxies mocks base method
func (*MockMeshCatalogDebugger) ListExpectedProxies ¶ added in v0.4.0
func (m *MockMeshCatalogDebugger) ListExpectedProxies() map[certificate.CommonName]time.Time
ListExpectedProxies mocks base method
func (*MockMeshCatalogDebugger) ListMonitoredNamespaces ¶ added in v0.4.0
func (m *MockMeshCatalogDebugger) ListMonitoredNamespaces() []string
ListMonitoredNamespaces mocks base method
func (*MockMeshCatalogDebugger) ListSMIPolicies ¶ added in v0.4.0
func (m *MockMeshCatalogDebugger) ListSMIPolicies() ([]*v1alpha2.TrafficSplit, []service.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) ListConnectedProxies ¶ added in v0.4.0
func (mr *MockMeshCatalogDebuggerMockRecorder) ListConnectedProxies() *gomock.Call
ListConnectedProxies indicates an expected call of ListConnectedProxies
func (*MockMeshCatalogDebuggerMockRecorder) ListDisconnectedProxies ¶ added in v0.4.0
func (mr *MockMeshCatalogDebuggerMockRecorder) ListDisconnectedProxies() *gomock.Call
ListDisconnectedProxies indicates an expected call of ListDisconnectedProxies
func (*MockMeshCatalogDebuggerMockRecorder) ListExpectedProxies ¶ added in v0.4.0
func (mr *MockMeshCatalogDebuggerMockRecorder) ListExpectedProxies() *gomock.Call
ListExpectedProxies indicates an expected call of ListExpectedProxies
func (*MockMeshCatalogDebuggerMockRecorder) ListMonitoredNamespaces ¶ added in v0.4.0
func (mr *MockMeshCatalogDebuggerMockRecorder) ListMonitoredNamespaces() *gomock.Call
ListMonitoredNamespaces indicates an expected call of ListMonitoredNamespaces
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.