Add two elements Message and Devops into Event struct.

Pass the event object instead of RequestInfo by request context to request handler.
This commit is contained in:
wanjunlei
2020-06-13 17:13:55 +08:00
parent dd03cab01c
commit 584bdda50e
6 changed files with 102 additions and 67 deletions

View File

@@ -0,0 +1,20 @@
package v1alpha1
import "k8s.io/apiserver/pkg/apis/audit"
type Event struct {
// Devops project
Devops string
// The workspace which this audit event happened
Workspace string
// The cluster which this audit event happened
Cluster string
// Message send to user.s
Message string
audit.Event
}
type EventList struct {
Items []Event
}