Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TargetIntMap = map[int]OSType{ 1: Windows, 2: Linux, }
View Source
var TargetMap = map[OSType]string{ Windows: "Windows", Linux: "Linux", }
Functions ¶
func NewService ¶
func NewService( configuration *environment.Configuration, terminal services.Terminal, osType OSType, ) services.OS
Types ¶
type OperatingSystemService ¶
type OperatingSystemService struct { Configuration *environment.Configuration Terminal services.Terminal OSType OSType }
func (OperatingSystemService) Lock ¶
func (os OperatingSystemService) Lock() error
func (OperatingSystemService) Restart ¶
func (os OperatingSystemService) Restart() error
func (OperatingSystemService) Shutdown ¶
func (os OperatingSystemService) Shutdown() error
func (OperatingSystemService) SignOut ¶
func (os OperatingSystemService) SignOut() error
Click to show internal directories.
Click to hide internal directories.