Documentation ¶
Index ¶
- Constants
- Variables
- func CommandWithCallback(callback func(line string), name string, arg ...string) error
- func GenCPUInfo(context *table.QueryContext) (table.TableRows, error)
- func GenCrontab(context *table.QueryContext) (table.TableRows, error)
- func GenDebPackages(context *table.QueryContext) (table.TableRows, error)
- func GenHash(context *table.QueryContext) (table.TableRows, error)
- func GenLast(context *table.QueryContext) (table.TableRows, error)
- func GenLoads(context *table.QueryContext) (table.TableRows, error)
- func GenMemoryInfo(context *table.QueryContext) (table.TableRows, error)
- func GenOSVersion(context *table.QueryContext) (table.TableRows, error)
- func GenProcesses(context *table.QueryContext) (table.TableRows, error)
- func GenRpmPackages(context *table.QueryContext) (table.TableRows, error)
- func GenShellHistory(context *table.QueryContext) (table.TableRows, error)
- func GenUsers(context *table.QueryContext) (table.TableRows, error)
- type Cron
- type ProcIO
- type ProcStat
Constants ¶
View Source
const ( EMPTY = 0 RUN_LVL = 1 BOOT_TIME = 2 OLD_TIME = 3 NEW_TIME = 4 INIT_PROCESS = 5 LOGIN_PROCESS = 6 USER_PROCESS = 7 DEAD_PROCESS = 8 )
Variables ¶
View Source
var ( ShellHistoryFiles = []string{ ".bash_history", ".zsh_history", ".zhistory", ".history", ".sh_history", } BashTimestampRx = regexp.MustCompile("^#([0-9]+)$") ZshTimestampRx = regexp.MustCompile("^: {0,10}([0-9]{1,11}):[0-9]+;(.*)$") )
View Source
var (
CronSearchDirs = []string{
"/etc/cron.d/",
"/var/at/tabs/",
"/var/spool/cron/",
"/var/spool/cron/crontabs/",
}
)
Functions ¶
func CommandWithCallback ¶
func GenCPUInfo ¶
func GenCPUInfo(context *table.QueryContext) (table.TableRows, error)
func GenCrontab ¶
func GenCrontab(context *table.QueryContext) (table.TableRows, error)
func GenDebPackages ¶
func GenDebPackages(context *table.QueryContext) (table.TableRows, error)
func GenMemoryInfo ¶
func GenMemoryInfo(context *table.QueryContext) (table.TableRows, error)
func GenOSVersion ¶
func GenOSVersion(context *table.QueryContext) (table.TableRows, error)
func GenProcesses ¶
func GenProcesses(context *table.QueryContext) (table.TableRows, error)
func GenRpmPackages ¶
func GenRpmPackages(context *table.QueryContext) (table.TableRows, error)
func GenShellHistory ¶
func GenShellHistory(context *table.QueryContext) (table.TableRows, error)
Types ¶
type Cron ¶
type Cron struct { Event string Command string Minute string Hour string DayOfMonth string Month string DayOfWeek string }
func CronFileParser ¶
Click to show internal directories.
Click to hide internal directories.