Documentation ¶
Overview ¶
Package platform contains platform specific utilities.
Package platform contains platform specific utilities.
Index ¶
- func Hostname(log log.T) (name string, err error)
- func IP() (selected string, err error)
- func IsPlatformNanoServer(log log.T) (bool, error)
- func IsPlatformWindowsServer2012OrEarlier(log log.T) (bool, error)
- func PlatformName(log log.T) (name string, err error)
- func PlatformSku(log log.T) (sku string, err error)
- func PlatformType(log log.T) (name string, err error)
- func PlatformVersion(log log.T) (version string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPlatformWindowsServer2012OrEarlier ¶
IsPlatformWindowsServer2012OrEarlier represents whether it is Windows 2012 and earlier or not
func PlatformName ¶
PlatformName gets the OS specific platform name.
func PlatformSku ¶
PlatformSku gets the OS specific platform SKU number
func PlatformType ¶
PlatformType gets the OS specific platform type, valid values are windows and linux.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.