shell

package
v4.0.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: LGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectProcessMetrics

func CollectProcessMetrics(jobname string, pid int, quit chan int)

func GetChildrenProcesses

func GetChildrenProcesses(pp *process.Process) []*process.Process

func GetTotalCPUMemUsage

func GetTotalCPUMemUsage(pid int) (float64, float64, error)

Types

type Shell

type Shell struct{}

Shell plugin runs shell commands when Execute method is called.

func (*Shell) Execute

Execute method of the plugin

func (*Shell) ExecuteImpl

func (s *Shell) ExecuteImpl(args *dktypes.ExecuteRequest, cb dkplugin.StatusHelper) ([]byte, error)

ExecuteImpl do execute command

Jump to

Keyboard shortcuts

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