-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
41 lines (36 loc) · 937 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package kubernetes
import (
"time"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/kubernetes"
)
// kubeClient holds K8s parameters
type kubeClient struct {
clientSet kubernetes.Interface
}
// PodDetails holds data associated with a Pod
type PodDetails struct {
UID types.UID
PodName string
PodNamespace string
ResourceVersion string
OwnerReferences []metav1.OwnerReference
Phase v1.PodPhase
ContainerStatuses []v1.ContainerStatus
CreationTimestamp time.Time
DeletionTimestamp *metav1.Time
}
// PodEvent holds events data associated with a Pod
type PodEvent struct {
UID types.UID
PodName string
PodNamespace string
ResourceVersion string
EventType string
Reason string
Message string
FirstTimestamp time.Time
LastTimestamp time.Time
}