Documentation ¶
Index ¶
- func ContainsKillingStoppingContainerEvents(c kubernetes.Interface, name, namespace string) bool
- func GetPodContainerLogs(c kubernetes.Interface, name, container, namespace string, previous bool, ...) string
- func GetPodEventsStr(c kubernetes.Interface, name, namespace string) string
- func IsStrInSlice(str string, strList []string) bool
- func JsonEscape(i string) string
- func RandomString(n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsKillingStoppingContainerEvents ¶ added in v0.4.0
func ContainsKillingStoppingContainerEvents( c kubernetes.Interface, name, namespace string) bool
ContainsKillingStoppingContainerEvents checks if the events contain an event with "Killing Stopping container" which indicates that a container could not be gracefully shutdown
func GetPodContainerLogs ¶
func GetPodContainerLogs( c kubernetes.Interface, name, container, namespace string, previous bool, maxRecentLogLines int64) string
GetPodContainerLogs returns logs for specified container in pod
func GetPodEventsStr ¶ added in v0.0.2
func GetPodEventsStr(c kubernetes.Interface, name, namespace string) string
GetPodEventsStr returns formatted events as a string for specified pod
func IsStrInSlice ¶ added in v0.1.0
IsStrInSlice checks if string is existing in a slice of string
func JsonEscape ¶ added in v0.7.0
JsonEscape escapes the json special characters in a string
func RandomString ¶ added in v0.7.0
RandomString generates random string with provided n size
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.