logs

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogstream

func NewLogstream(namespace string, pod string, container string, podLabels map[string]string, logstore logstores.Logstore, clientset kubernetes.Interface, logCh chan utils.LogEntry, timeout time.Duration) *logstream

Types

type LogController

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

func NewLogController

func NewLogController(informerFactory informers.SharedInformerFactory, clientset kubernetes.Interface, config *config.Config, logstore logstores.Logstore) *LogController

Instantiates a controller for watching and handling logs

func (*LogController) Run

func (c *LogController) Run(stopCh chan struct{}) error

func (*LogController) Watch

func (c *LogController) Watch() chan struct{}

Watch creates the informerFactory and initializes the log watcher

Jump to

Keyboard shortcuts

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