add a es client for auditing, events, and logging

Signed-off-by: wanjunlei <wanjunlei@yunify.com>
This commit is contained in:
wanjunlei
2020-12-16 17:33:10 +08:00
parent 8a6ce2d7ac
commit 039507c9ae
42 changed files with 1889 additions and 2291 deletions

View File

@@ -17,7 +17,6 @@ limitations under the License.
package events
import (
v1 "k8s.io/api/core/v1"
"time"
)
@@ -36,13 +35,13 @@ type Filter struct {
ReasonFuzzy []string
MessageFuzzy []string
Type string
StartTime *time.Time
EndTime *time.Time
StartTime time.Time
EndTime time.Time
}
type Events struct {
Total int64 `json:"total" description:"total number of matched results"`
Records []*v1.Event `json:"records" description:"actual array of results"`
Total int64 `json:"total" description:"total number of matched results"`
Records []interface{} `json:"records" description:"actual array of results"`
}
type Histogram struct {