mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
fix(kubernetes): events api to call the backend [R8S-243] (#563)
This commit is contained in:
parent
32ef208278
commit
07dfd981a2
26 changed files with 750 additions and 217 deletions
25
api/http/models/kubernetes/event.go
Normal file
25
api/http/models/kubernetes/event.go
Normal file
|
@ -0,0 +1,25 @@
|
|||
package kubernetes
|
||||
|
||||
import "time"
|
||||
|
||||
type K8sEvent struct {
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
Reason string `json:"reason"`
|
||||
Message string `json:"message"`
|
||||
Namespace string `json:"namespace"`
|
||||
EventTime time.Time `json:"eventTime"`
|
||||
Kind string `json:"kind,omitempty"`
|
||||
Count int32 `json:"count"`
|
||||
FirstTimestamp *time.Time `json:"firstTimestamp,omitempty"`
|
||||
LastTimestamp *time.Time `json:"lastTimestamp,omitempty"`
|
||||
UID string `json:"uid"`
|
||||
InvolvedObjectKind K8sEventInvolvedObject `json:"involvedObject"`
|
||||
}
|
||||
|
||||
type K8sEventInvolvedObject struct {
|
||||
Kind string `json:"kind,omitempty"`
|
||||
UID string `json:"uid"`
|
||||
Name string `json:"name"`
|
||||
Namespace string `json:"namespace"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue