v1alpha2

package
v0.0.0-...-b5015ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

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

type BadRequestError struct {
	Status int32 `json:"status"`
	Reason error `json:"reason"`
}

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 NoContent

type NoContent struct {
	Status int32 `json:"status"`
	Reason error `json:"reason"`
}

NoContent: the response is empty

type NotFoundError

type NotFoundError struct {
	Status int32 `json:"status"`
	Reason error `json:"reason"`
}

NotFoundError is the error message that is generated when server could not find what was requested

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL