Documentation ¶
Index ¶
Constants ¶
View Source
const OOMKilledReason = "OOMKilled"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerProcessor ¶
type ContainerProcessor interface { Submit(status IdentifiedContainer) error Applicable(status IdentifiedContainer) bool }
type IdentifiedContainer ¶
type IdentifiedContainer struct { Container scanner.Container Service scanner.Service Application scanner.Application Status kv1.ContainerStatus }
type OOMKillsProcessor ¶
type OOMKillsProcessor struct {
// contains filtered or unexported fields
}
func NewOOMKillsProcessor ¶
func (*OOMKillsProcessor) Applicable ¶
func (p *OOMKillsProcessor) Applicable(container IdentifiedContainer) bool
func (*OOMKillsProcessor) Start ¶
func (p *OOMKillsProcessor) Start()
func (*OOMKillsProcessor) Stop ¶
func (p *OOMKillsProcessor) Stop()
func (*OOMKillsProcessor) Submit ¶
func (p *OOMKillsProcessor) Submit(container IdentifiedContainer) error
type ScannerListener ¶
type ScannerListener struct {
// contains filtered or unexported fields
}
func NewScannerListener ¶
func NewScannerListener( logger *log.Logger, scanner *scanner.Scanner, ) *ScannerListener
func (*ScannerListener) AddContainerListener ¶
func (sl *ScannerListener) AddContainerListener(processor ContainerProcessor)
func (*ScannerListener) Start ¶
func (sl *ScannerListener) Start()
func (*ScannerListener) Stop ¶
func (sl *ScannerListener) Stop()
Click to show internal directories.
Click to hide internal directories.