logs

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: EPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(resourceType, namespace, name string, logConfig *LogTailConfig) (execute.Executor, error)

Types

type LogStream added in v1.5.0

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

LogStream handles streaming logs from WebSocket connection

func NewLogStream added in v1.5.0

func NewLogStream(wsClient *ws.Client) *LogStream

NewLogStream creates a new LogStream handler

func (*LogStream) Start added in v1.5.0

func (ls *LogStream) Start() error

Start starts the log stream handler

type LogTailConfig added in v1.5.0

type LogTailConfig struct {
	Tail   int    // Number of lines to tail (default: 100, range: 1-10000)
	Follow bool   // Whether to follow logs (default: true)
	Since  string // Start time in ISO 8601 format (optional)
	Until  string // End time in ISO 8601 format (optional)
}

LogTailConfig holds configuration for log tailing

func DefaultLogTailConfig added in v1.5.0

func DefaultLogTailConfig() *LogTailConfig

DefaultLogTailConfig returns a LogTailConfig with default values

func (*LogTailConfig) BuildQueryString added in v1.5.0

func (c *LogTailConfig) BuildQueryString() string

BuildQueryString builds a query string from the LogTailConfig

func (*LogTailConfig) Validate added in v1.5.0

func (c *LogTailConfig) Validate() error

Validate validates the LogTailConfig

Jump to

Keyboard shortcuts

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