Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerStartedEvent ¶
ContainerStartedEvent is sent when a container is started.
type Informer ¶
type Informer interface {
// Shutdown implements informers.SharedInformerFactory#Shutdown
Shutdown()
}
func StartInformer ¶
func StartInformer( clientset kubernetes.Interface, namespace, jobName string, stopCh <-chan struct{}, containerStartedCh chan<- ContainerStartedEvent, ) (Informer, error)
StartInformer an informer to receive the change of pod resource. It finds the corresponding pod(s) by job name. You must finally close stopCh to stop the informer. When the status of container is changed, the event is sent to containerStartedCh.
Click to show internal directories.
Click to hide internal directories.