Documentation
¶
Index ¶
- Constants
- type CPU
- type Disk
- type Hardware
- type Info
- type LocalGroup
- type LocalGroupMember
- type LocalUser
- type Memory
- type MemoryDIMM
- type Network
- type NetworkSession
- type NetworkShare
- type OpenFile
- type OperatingSystem
- type Process
- type Service
- type SessionDetails
- type Software
- type UserInfoWksta
- type WindowsUpdate
- type WindowsUpdateHistory
Constants ¶
View Source
const ( SESS_INTERACTIVE_LOGON = 2 SESS_REMOTE_INTERACTIVE_LOGON = 10 SESS_CACHED_INTERACTIVE_LOGON = 11 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hardware ¶
type Hardware struct {
HardwareUUID string `json:"HardwareUUID"`
Manufacturer string `json:"Manufacturer"`
Model string `json:"Model"`
ServiceTag string `json:"ServiceTag"`
BIOSVersion string `json:"biosVersion"`
BIOSManufacturer string `json:"biosManufacturer"`
BIOSReleaseDate time.Time `json:"biosReleaseDate"`
IsUsingUEFI bool `json:"isUsingUEFI"`
SecureBootEnabled bool `json:"safebootEnabled"`
CPU []CPU `json:"cpus"`
Memory []MemoryDIMM `json:"memoryDIMMs"`
}
type LocalGroup ¶
A LocalGroup represents a locally defined group on a Windows system.
type LocalGroupMember ¶
type LocalGroupMember struct {
Domain string `json:"domain"`
Name string `json:"name"`
DomainAndName string `json:"domainAndName"`
}
A LocalGroupMember contains information about a member of a group.
type LocalUser ¶
type LocalUser struct {
Username string `json:"username"`
FullName string `json:"fullName"`
IsEnabled bool `json:"isEnabled"`
IsLocked bool `json:"isLocked"`
IsAdmin bool `json:"isAdmin"`
PasswordNeverExpires bool `json:"passwordNeverExpires"`
NoChangePassword bool `json:"noChangePassword"`
PasswordAge time.Duration `json:"passwordAge"`
LastLogon time.Time `json:"lastLogon"`
BadPasswordCount uint32 `json:"badPasswordCount"`
NumberOfLogons uint32 `json:"numberOfLogons"`
}
type MemoryDIMM ¶
type NetworkSession ¶
type NetworkShare ¶
type NetworkShare struct {
}
type OperatingSystem ¶
type Service ¶
type Service struct {
SCName string `json:"name"`
DisplayName string `json:"displayName"`
Status uint32 `json:"status"`
StatusText string `json:"statusText"`
ServiceType uint32 `json:"serviceType"`
IsRunning bool `json:"isRunning"`
AcceptStop bool `json:"acceptStop"`
RunningPid uint32 `json:"pid"`
}
type SessionDetails ¶
type SessionDetails struct {
Username string `json:"username"`
Domain string `json:"domain"`
LogonId string `json:"logonId"`
LocalUser bool `json:"isLocal"`
LocalAdmin bool `json:"isAdmin"`
LogonType uint32 `json:"logonType"`
LogonTime time.Time `json:"logonTime"`
DnsDomainName string `json:"dnsDomainName"`
AuthenticationPackage string `json:"authenticationPackage"`
LogonServer string `json:"logonServer"`
}
func (*SessionDetails) FullUser ¶
func (s *SessionDetails) FullUser() string
func (*SessionDetails) GetLogonType ¶
func (s *SessionDetails) GetLogonType() string
type Software ¶
type Software struct {
DisplayName string `json:"displayName"`
DisplayVersion string `json:"displayVersion"`
Arch string `json:"arch"`
Publisher string `json:"publisher"`
InstallDate time.Time `json:"installDate"`
EstimatedSize uint64 `json:"estimatedSize"`
Contact string `json:"Contact"`
HelpLink string `json:"HelpLink"`
InstallSource string `json:"InstallSource"`
VersionMajor uint64 `json:"VersionMajor"`
VersionMinor uint64 `json:"VersionMinor"`
}
EstimatedSize is in KB, As estimated & written to the registry by the installer itself, or Windows Installer for an MSI.
func (*Software) Architecture ¶
type UserInfoWksta ¶
type WindowsUpdate ¶
type WindowsUpdate struct {
UpdatesReq bool `json:"required"`
NumUpdates int `json:"number"`
UpdateHistory []*WindowsUpdateHistory `json:"history"`
}
Click to show internal directories.
Click to hide internal directories.