handle

package
v0.0.0-...-1a5fb70 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 5

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

func (a *AuditLog) InsertAuditLog() (err error)

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请求相关通用参数

Jump to

Keyboard shortcuts

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