processing audit information of non-standard request

Signed-off-by: wanjunlei <wanjunlei@yunify.com>
This commit is contained in:
wanjunlei
2020-06-18 22:49:00 +08:00
parent 197591baea
commit 7393ef91fa
6 changed files with 138 additions and 14 deletions

View File

@@ -1,6 +1,9 @@
package v1alpha1
import "k8s.io/apiserver/pkg/apis/audit"
import (
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apiserver/pkg/apis/audit"
)
type Event struct {
// Devops project
@@ -18,3 +21,7 @@ type Event struct {
type EventList struct {
Items []Event
}
type Object struct {
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
}