Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App struct holds list dependencies for managing the watcher app
func (*App) WatchPodChanges ¶
WatchPodChanges is used to watch changes all pods of a given namespace, and execute list callback function
func (*App) WatchPodChangesAllNameSpaces ¶
WatchPodChangesAllNameSpaces is async function to watch all pod for all existed namespaces and execute list callback function
For the safe usage it should be controlled by Context, after context was done use function Wait to wait all runner done their tasks
type ParallelStdout ¶
ParallelStdout is the wrapped struct of *os.File to handle logic show log to the console
func NewParallelStdout ¶
func NewParallelStdout(logFileName string) (*ParallelStdout, error)
NewParallelStdout used to init parallel logger: one for stdout console, two is for file log
Click to show internal directories.
Click to hide internal directories.