Documentation ¶ Index ¶ type HostAPI func New() HostAPI type ServiceInfo Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type HostAPI ¶ type HostAPI interface { GetBIOSSerialNumber() (string, error) GetService(name string) (*ServiceInfo, error) StartService(name string) error StopService(name string, force bool) error } func New ¶ func New() HostAPI 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"` } Source Files ¶ View all Source files hostapi.go types.go Click to show internal directories. Click to hide internal directories.