Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTemplate ¶
func CreateTemplate(template *common.TemplateDB) error
func HandlerResponse ¶
func HandlerResponse(result interface{}, err error) *common.ResponseData
Types ¶
type AuditLog ¶
type AuditLog struct { Kind string ActionType common.ActionType PostType common.ActionType Resources *Resources PostData interface{} Name string ClusterData *common.ClusterDB ProductData *common.ProductDB }
func (*AuditLog) InsertAuditLog ¶
type Resources ¶
type Resources struct { Namespace string Cluster string Product string Name string User *jwt.CustomClaims ClientSet *kubernetes.Clientset PatchData *common.PatchJson DataType string Uid string Kind string KindName string MetricsName string LabelKey string MetricsKind string Controller string Scale string Step string PostType string Signing string Time string }
func GenerateCommonParams ¶
func GenerateCommonParams(c *gin.Context, clientSet *kubernetes.Clientset) (commonParams *Resources)
获取HTTP请求相关通用参数
Click to show internal directories.
Click to hide internal directories.