Documentation ¶
Overview ¶
Package debugger is a generated GoMock package.
Index ¶
- type CertificateManagerDebugger
- type DebugServer
- type MeshCatalogDebugger
- type MockCertificateManagerDebugger
- type MockCertificateManagerDebuggerMockRecorder
- type MockDebugServer
- type MockDebugServerMockRecorder
- 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() ([]*v1alpha20.TrafficSplit, []service.WeightedService, ...)
- 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 DebugServer ¶
type DebugServer interface { // GetHandlers returns the HTTP handlers available for the debug server. GetHandlers() map[string]http.Handler }
DebugServer is the interface of the Debug HTTP server.
func NewDebugServer ¶
func NewDebugServer(certDebugger CertificateManagerDebugger, xdsDebugger XDSDebugger, meshCatalogDebugger MeshCatalogDebugger, kubeConfig *rest.Config, kubeClient kubernetes.Interface, cfg configurator.Configurator) DebugServer
NewDebugServer returns an implementation of DebugServer interface.
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.WeightedService, []service.K8sServiceAccount, []*spec.HTTPRouteGroup, []*target.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 MockDebugServer ¶ added in v0.4.0
type MockDebugServer struct {
// contains filtered or unexported fields
}
MockDebugServer is a mock of DebugServer interface
func NewMockDebugServer ¶ added in v0.4.0
func NewMockDebugServer(ctrl *gomock.Controller) *MockDebugServer
NewMockDebugServer creates a new mock instance
func (*MockDebugServer) EXPECT ¶ added in v0.4.0
func (m *MockDebugServer) EXPECT() *MockDebugServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDebugServer) GetHandlers ¶ added in v0.4.0
func (m *MockDebugServer) GetHandlers() map[string]http.Handler
GetHandlers mocks base method
type MockDebugServerMockRecorder ¶ added in v0.4.0
type MockDebugServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDebugServerMockRecorder is the mock recorder for MockDebugServer
func (*MockDebugServerMockRecorder) GetHandlers ¶ added in v0.4.0
func (mr *MockDebugServerMockRecorder) GetHandlers() *gomock.Call
GetHandlers indicates an expected call of GetHandlers
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() ([]*v1alpha20.TrafficSplit, []service.WeightedService, []service.K8sServiceAccount, []*v1alpha3.HTTPRouteGroup, []*v1alpha2.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.