Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNotWindows is an error that is returned when attempting to access Windows specific // functions on a machine that is not running Windows. ErrNotWindows = errors.New("support is only avaliable on Windows") // ErrInvalidPrefix is an error returned when attempting to get registry data using // an invalid Registry top level key prefix. ErrInvalidPrefix = errors.New("cannot find the specified key prefix") )
Functions ¶
func Elevated ¶
func Elevated() bool
Elevated returns the user's privilege level as Admin or User. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.
func Newline ¶
func Newline() string
Newline returns the machine specific newline value. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.
func Os ¶
func Os() uint8
Os returns the Operating system value. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.
func Shell ¶
func Shell() string
Shell returns the machine specific default shell value. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.
Types ¶
This section is empty.