util

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func IsStrInSlice(str string, strList []string) bool

IsStrInSlice checks if string is existing in a slice of string

func JsonEscape added in v0.7.0

func JsonEscape(i string) string

JsonEscape escapes the json special characters in a string

func RandomString added in v0.7.0

func RandomString(n int) string

RandomString generates random string with provided n size

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL