Documentation ¶
Rendered for windows/amd64
Overview ¶
Package device supports querying information about the local device.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWMIEmptyResult indicates a condition where WMI failed to return the expected values. ErrWMIEmptyResult = errors.New("WMI returned without error, but zero results") )
Functions ¶
func UserProfiles ¶
UserProfiles returns a list of user profiles on the local device.
Types ¶
type DomainRole ¶
type DomainRole string
DomainRole indicates the role of a host on an Active Directory domain.
var ( // Workstation corresponds to a domain workstation. Workstation DomainRole = "Workstation" // Server corresponds to a domain server. Server DomainRole = "Server" // DomainController corresponds to an Active Directory domain controller. DomainController DomainRole = "Domain Controller" // RoleUnknown indicates an unknown domain role. RoleUnknown DomainRole = "Unknown" )
func GetDomainRole ¶
func GetDomainRole() (DomainRole, error)
GetDomainRole attempts to determine the host's Active Directory role.
type Type ¶
type Type string
Type is a device type as reported by the system enclosure.
func ChassisType ¶
ChassisType attempts to distinguish the chassis type for the device.
type Win32_ComputerSystem ¶
type Win32_ComputerSystem struct { DNSHostName string Domain string DomainRole int Model string SystemFamily string Manufacturer string }
Win32_ComputerSystem models the WMI object of the same name.
type Win32_NTDomain ¶
Win32_NTDomain models the WMI object of the same name.
type Win32_SystemEnclosure ¶
type Win32_SystemEnclosure struct {
ChassisTypes []int
}
Win32_SystemEnclosure models the WMI object of the same name.
Click to show internal directories.
Click to hide internal directories.