system

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Description string `json:"description"`
	Load        string `json:"load"`
	Active      string `json:"active"`
	Sub         string `json:"sub"`
}

type ServicesManager

type ServicesManager struct{}

func NewServicesManager

func NewServicesManager() *ServicesManager

func (*ServicesManager) DisableService

func (m *ServicesManager) DisableService(name string) error

func (*ServicesManager) EnableService

func (m *ServicesManager) EnableService(name string) error

func (*ServicesManager) GetService

func (m *ServicesManager) GetService(name string) (*Service, error)

func (*ServicesManager) ListServices

func (m *ServicesManager) ListServices() ([]Service, error)

func (*ServicesManager) RestartService

func (m *ServicesManager) RestartService(name string) error

func (*ServicesManager) StartService

func (m *ServicesManager) StartService(name string) error

func (*ServicesManager) StopService

func (m *ServicesManager) StopService(name string) error

Jump to

Keyboard shortcuts

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