Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerLogsWatcher ¶
type ContainerLogsWatcher struct {
// contains filtered or unexported fields
}
ContainerLogsWatcheri is a watcher to monitor and control all container log streams
func NewContainerLogsWatcher ¶
func NewContainerLogsWatcher(client *kubernetes.Clientset, config WatcherConfig) *ContainerLogsWatcher
NewContainerLogsWatcher returns a new watcher
func (*ContainerLogsWatcher) AddPod ¶
func (w *ContainerLogsWatcher) AddPod(ctx context.Context, pod corev1.Pod)
AddPod will start a log stream for each of the pods containers
func (*ContainerLogsWatcher) DoneChan ¶
func (w *ContainerLogsWatcher) DoneChan() chan struct{}
DoneChan returns a channel that indicates whether the all the container log streams have finished
func (*ContainerLogsWatcher) ForceFinish ¶
func (w *ContainerLogsWatcher) ForceFinish()
ForceFinish will force close the finished chan if there is something blocking for any reason
func (*ContainerLogsWatcher) Start ¶
func (w *ContainerLogsWatcher) Start(ctx context.Context)
Start will get the selected pods and watch their containers log streams
type WatcherConfig ¶
type WatcherConfig struct {
// contains filtered or unexported fields
}
WatcherConfig holds information about a pod selections
Click to show internal directories.
Click to hide internal directories.