model

package
v0.0.0-...-9e8e647 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (*AuditLogExt) TableName

func (a *AuditLogExt) TableName() string

TableName for audit log

Jump to

Keyboard shortcuts

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