Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventTypes = []string{
"create_artifact",
"delete_artifact",
"pull_artifact",
"create_project",
"delete_project",
"delete_repository",
"login_user",
"logout_user",
"create_user",
"delete_user",
"update_user",
"create_robot",
"delete_robot",
"update_configure",
}
EventTypes defines the types of audit log event
Functions ¶
This section is empty.
Types ¶
type AuditLogExt ¶
type AuditLogExt struct { ID int64 `orm:"pk;auto;column(id)" json:"id"` ProjectID int64 `orm:"column(project_id)" json:"project_id"` Operation string `orm:"column(operation)" json:"operation"` OperationDescription string `orm:"column(op_desc)" json:"operation_description"` OperationResult bool `orm:"column(op_result)" json:"operation_result"` ResourceType string `orm:"column(resource_type)" json:"resource_type"` Resource string `orm:"column(resource)" json:"resource"` Username string `orm:"column(username)" json:"username"` OpTime time.Time `orm:"column(op_time)" json:"op_time" sort:"default:desc"` Payload string `orm:"-" json:"payload"` }
AuditLogExt is the model for audit log ext
Click to show internal directories.
Click to hide internal directories.