scanner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessScanner

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

ProcessScanner entities can scan running processes and move them to control groups.

func NewProcessScanner

func NewProcessScanner(config *settings.Settings, procMover cgroups.ProcessMover) *ProcessScanner

NewProcessScanner creates and initializes a ProcessScanner object.

func (*ProcessScanner) Loop

func (ps *ProcessScanner) Loop()

Loop calls Scan method every second. This method never returns.

func (*ProcessScanner) Scan

func (ps *ProcessScanner) Scan()

Scan does the job a ProcessScanner is supposed to do.

Jump to

Keyboard shortcuts

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