scalar2

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const OOMKilledReason = "OOMKilled"

Variables

This section is empty.

Functions

func InitScalars

func InitScalars(
	kube *kuber.Kube,
	observer_ *kuber.Observer,
	dryRun bool,
)

Types

type OOMKillsProcessor

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

func NewOOMKillsProcessor

func NewOOMKillsProcessor(
	kube *kuber.Kube,
	observer_ *kuber.Observer,
	timeout time.Duration,
	dryRun bool,
) *OOMKillsProcessor

func (*OOMKillsProcessor) Start

func (p *OOMKillsProcessor) Start()

func (*OOMKillsProcessor) Stop

func (p *OOMKillsProcessor) Stop()

func (*OOMKillsProcessor) Submit

func (p *OOMKillsProcessor) Submit(pod corev1.Pod) error

type Pod

type Pod struct {
	corev1.Pod
}

func (*Pod) GetAPIVersion

func (p *Pod) GetAPIVersion() string

func (*Pod) GetKind

func (p *Pod) GetKind() string

type PodProcessor

type PodProcessor interface {
	Submit(pod corev1.Pod) error
}

type ScannerListener

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

func NewScannerListener

func NewScannerListener(
	observer_ *kuber.Observer,
) *ScannerListener

func (*ScannerListener) AddPodListener

func (sl *ScannerListener) AddPodListener(processor PodProcessor)

func (*ScannerListener) Start

func (sl *ScannerListener) Start()

func (*ScannerListener) Stop

func (sl *ScannerListener) Stop()

Jump to

Keyboard shortcuts

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