kurtosislog

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilLogChannel is returned when the log channel is nil
	ErrNilLogChannel = errors.New("log channel is nil")
	// ErrLogChannelClosed is returned when the log channel closes unexpectedly
	ErrLogChannelClosed = errors.New("log channel closed unexpectedly")
	// ErrPanicInLogHandler is returned when a panic occurs in the log handler
	ErrPanicInLogHandler = errors.New("panic in log stream handler")
)

Functions

This section is empty.

Types

type Streamer

type Streamer struct {
	// contains filtered or unexported fields
}

Streamer handles log streaming from Kurtosis services

func NewStreamer

func NewStreamer(enclaveName string, config StreamerConfig) *Streamer

NewStreamer creates a new log streamer

func (*Streamer) StreamLogs

func (s *Streamer) StreamLogs(ctx context.Context, clientName string, clientType string, serviceClient client.ServiceWithLogs) error

StreamLogs starts streaming logs from the given client with retry logic

type StreamerConfig

type StreamerConfig struct {
	// Retry configuration
	MaxRetries     int
	InitialBackoff time.Duration
	MaxBackoff     time.Duration
	BackoffFactor  float64

	// Logging
	Logger logrus.FieldLogger
}

StreamerConfig contains configuration for the log streamer

func DefaultConfig

func DefaultConfig() StreamerConfig

DefaultConfig returns a default configuration for the log streamer

Jump to

Keyboard shortcuts

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