logs

package
v1.0.79 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportOption

type ExportOption func(options *ExportOptions)

type ExportOptions

type ExportOptions struct {
	// ParallelWorkers Number of goroutines to spawn to export container logs in parallel
	ParallelWorkers int
	// Artifacts options governing artifact storage
	Artifacts artifacts.Options
	LogsOptions
}

type Logs

type Logs interface {
	Logs(release terra.Release, option ...LogsOption) error
	Export(releases []terra.Release, option ...ExportOption) (map[terra.Release]artifacts.Location, error)
}

Logs exports container logs from a Kubernetes cluster

func New

func New(k8sclients k8sclients.Clients, artifacts artifacts.Artifacts) Logs

type LogsOption

type LogsOption func(optins *LogsOptions)

type LogsOptions

type LogsOptions struct {
	// ContainerFilter optional function for filtering which container logs are exported
	ContainerFilter func(container) bool
	// MaxLines maximum number of log lines to retrieve
	MaxLines int
}

Jump to

Keyboard shortcuts

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