servicemgr

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCmdOutput

func ReadCmdOutput(cmd *exec.Cmd, callback func(rd io.ReadCloser) error) error

func ServiceLog

func ServiceLog(ctx context.Context, service string, callback func(rd io.ReadCloser) error, follow ...bool) error

Types

type Service

type Service struct {
	Name        string
	Load        string
	Active      string
	Sub         string
	Description string
}

func List

func List(ctx context.Context) (r []*Service, e error)

func Parse

func Parse(line string) *Service

Jump to

Keyboard shortcuts

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