Documentation ¶
Index ¶
- func DiagnosisToPhase(result *share.ReasonResult) map[string]interface{}
- func ExtractQuotaResource(msg string) string
- func FirstUpper(s string) string
- func GetConditionName(msg string) *string
- func GetContainerName(msg string) *string
- func GetContainerNameByImageName(image string, pod *corev1.Pod) string
- func GetContainerStatus(containerName string, pod *corev1.Pod) *corev1.ContainerStatus
- func GetCreatedAndStartedContainerName(msg string) []string
- func GetImageName(msg string) *string
- func GetKilledContainerName(msg string) []string
- func GetPodYamlFromHyperEvents(auditEvents []*shares.AuditEvent, endTime *time.Time) *corev1.Pod
- func GetPostStartHookElapsed(msg string) *string
- func GetPostStartHookTimeout(msg string) *string
- func IsPodReady(pod *corev1.Pod, startTime *time.Time) bool
- func IsPodSucceed(pod *corev1.Pod) bool
- func PodConditionExists(conditions []corev1.PodCondition, conditionKey string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiagnosisToPhase ¶
func DiagnosisToPhase(result *share.ReasonResult) map[string]interface{}
func GetContainerNameByImageName ¶
根据镜像找到容器的名字
func GetContainerStatus ¶
func GetContainerStatus(containerName string, pod *corev1.Pod) *corev1.ContainerStatus
从pod的containerstatuses中获取某个container壮体啊
func GetCreatedAndStartedContainerName ¶
从Created reason 获取container name msg:"Created container task, elapsedTime 65.729783ms" msg: "Started container task, elapsedTime 261.205298ms" msg: ""
func GetKilledContainerName ¶
从Killed message 获取container name
func GetPodYamlFromHyperEvents ¶
从hyper event数组中获取最新pod yaml
func PodConditionExists ¶
func PodConditionExists(conditions []corev1.PodCondition, conditionKey string) bool
PodConditionExists() whether the condition is exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.