Documentation ¶
Index ¶
- Constants
- Variables
- func AddToContainer(o *servicemesh.Options, c *restful.Container, client kubernetes.Interface, ...) error
- type BadRequestError
- type Handler
- func (h *Handler) GetAppHealth(request *restful.Request, response *restful.Response)
- func (h *Handler) GetAppMetrics(request *restful.Request, response *restful.Response)
- func (h *Handler) GetNamespaceGraph(request *restful.Request, response *restful.Response)
- func (h *Handler) GetNamespaceHealth(request *restful.Request, response *restful.Response)
- func (h *Handler) GetNamespaceMetrics(request *restful.Request, response *restful.Response)
- func (h *Handler) GetServiceHealth(request *restful.Request, response *restful.Response)
- func (h *Handler) GetServiceMetrics(request *restful.Request, response *restful.Response)
- func (h *Handler) GetServiceTracing(request *restful.Request, response *restful.Response)
- func (h *Handler) GetWorkloadHealth(request *restful.Request, response *restful.Response)
- func (h *Handler) GetWorkloadMetrics(request *restful.Request, response *restful.Response)
- type NoContent
- type NotFoundError
Constants ¶
View Source
const ( KubesphereNamespace = "kubesphere-system" KubeSphereServiceAccount = "kubesphere" )
Variables ¶
View Source
var GroupVersion = schema.GroupVersion{Group: groupName, Version: "v1alpha2"}
Functions ¶
func AddToContainer ¶
func AddToContainer(o *servicemesh.Options, c *restful.Container, client kubernetes.Interface, cache cache.Interface) error
Types ¶
type BadRequestError ¶
BadRequestError: the client request is incorrect
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(o *servicemesh.Options, client kubernetes.Interface, cache cache.Interface) *Handler
func (*Handler) GetAppHealth ¶
func (h *Handler) GetAppHealth(request *restful.Request, response *restful.Response)
Get app health
func (*Handler) GetAppMetrics ¶
func (h *Handler) GetAppMetrics(request *restful.Request, response *restful.Response)
Get app metrics
func (*Handler) GetNamespaceGraph ¶
func (h *Handler) GetNamespaceGraph(request *restful.Request, response *restful.Response)
Get service graph for namespace
func (*Handler) GetNamespaceHealth ¶
func (h *Handler) GetNamespaceHealth(request *restful.Request, response *restful.Response)
Get namespace health
func (*Handler) GetNamespaceMetrics ¶
func (h *Handler) GetNamespaceMetrics(request *restful.Request, response *restful.Response)
Get namespace metrics
func (*Handler) GetServiceHealth ¶
func (h *Handler) GetServiceHealth(request *restful.Request, response *restful.Response)
Get service health
func (*Handler) GetServiceMetrics ¶
func (h *Handler) GetServiceMetrics(request *restful.Request, response *restful.Response)
Get service metrics
func (*Handler) GetServiceTracing ¶
func (h *Handler) GetServiceTracing(request *restful.Request, response *restful.Response)
func (*Handler) GetWorkloadHealth ¶
func (h *Handler) GetWorkloadHealth(request *restful.Request, response *restful.Response)
Get workload health
func (*Handler) GetWorkloadMetrics ¶
func (h *Handler) GetWorkloadMetrics(request *restful.Request, response *restful.Response)
Get workload metrics
type NotFoundError ¶
NotFoundError is the error message that is generated when server could not find what was requested
Click to show internal directories.
Click to hide internal directories.