logs

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tail

func Tail(ctx context.Context, clientset kubernetes.Interface, namespace, podName, containerName string, tlog tailLogger)

Tail tails the container log until the following cases:

  • Reached to EOF
  • The Pod is not found (already removed from Node)
  • The context is canceled

Types

type Record added in v0.6.0

type Record struct {
	RawTimestamp  string
	Namespace     string
	PodName       string
	ContainerName string

	// Message is the log line.
	// All trailing whitespaces are trimmed.
	Message string
}

Record represents a record of container logs.

Jump to

Keyboard shortcuts

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