Documentation
¶
Overview ¶
Package logs provides utilities for retrieving and parsing pod logs in e2e tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindArchiveBatchCompletions ¶
FindArchiveBatchCompletions finds "WAL archive batch completed" log entries and returns the parsed data. Each returned map contains the structured log fields.
func FindArchiveBatches ¶
FindArchiveBatches finds "WAL archive batch prepared" log entries and returns the parsed data. Each returned map contains the structured log fields.
func GetPodContainerLogs ¶
func GetPodContainerLogs( ctx context.Context, clientSet *kubernetes.Clientset, namespace, podName, containerName string, sinceSeconds *int64, ) ([]map[string]any, error)
GetPodContainerLogs retrieves logs from a specific container in a pod and parses them as JSON. All logs are expected to be valid structured JSON. Returns an error if any line is not valid JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.