Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrateVersion = "v1.2.5_a"
Functions ¶
Types ¶
type AuditOperate ¶
type AuditOperate struct { ID uint `gorm:"primaryKey" json:"id"` Operator string `gorm:"size:255;not null;comment:操作人" json:"operator"` Operation string `gorm:"size:255;not null;comment:操作类型(create/delete/update)" json:"operation"` OperateDetail string `gorm:"type:text;not null;comment:操作详情" json:"operate_detail"` Scope string `gorm:"size:50;not null;comment:操作对象所属范围(project/pipeline/cluster/platform)" json:"scope"` ScopeId uint `gorm:"not null;comment:所属范围id" json:"scope_id"` ScopeName string `gorm:"size:512;not null;comment:所属范围名称" json:"scope_name"` Namespace string `gorm:"size:512;not null;comment:集群命名空间" json:"namespace"` ResourceId uint `gorm:"not null;comment:操作资源id" json:"resource_id"` ResourceType string `gorm:"size:255;not null;comment:资源类型" json:"resource_type"` ResourceName string `gorm:"size:512;not null;comment:资源名称" json:"resource_name"` Code string `gorm:"size:255;not null;comment:操作返回码" json:"code"` Message string `gorm:"type:text;not null;comment:操作返回信息" json:"message"` OperateData datatypes.JSON `gorm:"type:json;comment:操作数据,操作参数以及返回数据" json:"operate_data"` OperateDataInterface interface{} `gorm:"-" json:"-"` Ip string `gorm:"size:512;comment:来源ip" json:"ip"` CreateTime time.Time `gorm:"column:create_time;not null;autoCreateTime" json:"create_time"` }
AuditOperate 操作审计
func (AuditOperate) TableName ¶
func (s AuditOperate) TableName() string
Click to show internal directories.
Click to hide internal directories.