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
NewLogStream creates a new LogStream 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
Click to show internal directories.
Click to hide internal directories.