logs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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

func FindArchiveBatchCompletions(logEntries []map[string]any) []map[string]any

FindArchiveBatchCompletions finds "WAL archive batch completed" log entries and returns the parsed data. Each returned map contains the structured log fields.

func FindArchiveBatches

func FindArchiveBatches(logEntries []map[string]any) []map[string]any

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.

Jump to

Keyboard shortcuts

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