Documentation ¶
Overview ¶
Package logs contains code to fetch logs from Kubernetes pods
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPodLogs ¶
func GetPodLogs(ctx context.Context, pod corev1.Pod, getPrevious bool, writer io.Writer, requestedLineLength int) ( []string, error, )
GetPodLogs streams the pod logs and shunts them to the `writer`, as well as returning the last `requestedLineLength` of lines of logs in a slice. If `getPrevious` was activated, it will get the previous logs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.