system

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIImplementor

type APIImplementor struct{}

func New

func New() APIImplementor

func (APIImplementor) GetBIOSSerialNumber

func (APIImplementor) GetBIOSSerialNumber() (string, error)

func (APIImplementor) GetService

func (APIImplementor) GetService(name string) (*ServiceInfo, error)

func (APIImplementor) StartService

func (APIImplementor) StartService(name string) error

func (APIImplementor) StopService

func (APIImplementor) StopService(name string, force bool) error

type ServiceInfo

type ServiceInfo struct {
	// Service display name
	DisplayName string `json:"DisplayName"`

	// Service start type
	StartType uint32 `json:"StartType"`

	// Service status
	Status uint32 `json:"Status"`
}

Jump to

Keyboard shortcuts

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