Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLogRoutes ¶ added in v0.0.145
func RegisterLogRoutes(mgm *gin.RouterGroup)
Types ¶
type Controller ¶ added in v0.0.145
type Controller struct{}
func (*Controller) ListGlobalLog ¶ added in v0.0.161
func (lc *Controller) ListGlobalLog(c *gin.Context)
ListGlobalLog 全局日志列表
func (*Controller) ListOperation ¶ added in v0.0.145
func (lc *Controller) ListOperation(c *gin.Context)
@Summary 操作日志列表 @Description 获取所有操作日志 @Security BearerAuth @Success 200 {object} string @Router /mgm/log/operation/list [get]
func (*Controller) ListShell ¶ added in v0.0.145
func (lc *Controller) ListShell(c *gin.Context)
@Summary Shell日志列表 @Description 获取所有Shell操作日志 @Security BearerAuth @Success 200 {object} string @Router /mgm/log/shell/list [get]
type GlobalLogEntry ¶ added in v0.0.161
type GlobalLogEntry struct {
ID uint `json:"id"`
ClusterName string `json:"cluster_name"`
Namespace string `json:"namespace,omitempty"`
NodeName string `json:"node_name,omitempty"`
PodName string `json:"pod_name,omitempty"`
Container string `json:"container,omitempty"`
LogLevel string `json:"log_level"`
Source string `json:"source"`
Message string `json:"message"`
Timestamp time.Time `json:"timestamp"`
}
GlobalLogEntry 全局日志条目
Click to show internal directories.
Click to hide internal directories.