process

package
v0.0.0-...-b4e0e05 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WindowsAdapter

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

adapter for interacting with processes on a Windows OS

func NewWindowsAdapter

func NewWindowsAdapter(logger log.Logger) *WindowsAdapter

func (*WindowsAdapter) Filtered

func (w *WindowsAdapter) Filtered(filenames []string) (processes []*domain.Process, err error)

get a process slice filtered by filenames

func (*WindowsAdapter) Start

func (w *WindowsAdapter) Start(executablePath string, args []string, workingDir string) (err error)

starts a process

func (*WindowsAdapter) Stop

func (w *WindowsAdapter) Stop(id int) (err error)

stops a process

Jump to

Keyboard shortcuts

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