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 IsPlatformWindowsServer2025OrLater(log log.T) (bool, error)
- func IsWindowsServer2025OrLater(platformVersion string, 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 IsPlatformWindowsServer2025OrLater ¶
IsPlatformWindowsServer2025OrLater returns true if current platform is Windows Server 2025 or later
func IsWindowsServer2025OrLater ¶
IsWindowsServer2025OrLater returns true if passed platformVersion is the same as of Windows Server 2025 or later
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.