Documentation
¶
Index ¶
- type CPU
- type Disk
- type Hardware
- type LocalUser
- type Memory
- type MemoryDIMM
- type Network
- type OperatingSystem
- type Process
- type Service
- type SessionDetails
- type Software
- func (s *Software) Architecture() string
- func (s *Software) Contact() string
- func (s *Software) EstimatedSize() uint64
- func (s *Software) HelpLink() string
- func (s *Software) InstallDate() string
- func (s *Software) InstallSource() string
- func (s *Software) Name() string
- func (s *Software) Publisher() string
- func (s *Software) Version() string
- func (s *Software) VersionMajor() uint64
- func (s *Software) VersionMinor() uint64
- type WindowsUpdate
- type WindowsUpdateHistory
Constants ¶
This section is empty.
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 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 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"`
LocalUser bool `json:"isLocal"`
LocalAdmin bool `json:"isAdmin"`
}
func (*SessionDetails) FullUser ¶
func (s *SessionDetails) FullUser() string
type Software ¶
type Software struct {
R_DisplayName string `json:"displayName"`
R_DisplayVersion string `json:"displayVersion"`
R_Arch string `json:"arch"`
R_Pub string `json:"publisher"`
R_InsDate string `json:"installDate"`
R_ESize uint64 `json:"estimatedSize"`
R_Contact string `json:"Contact"`
R_HelpLink string `json:"HelpLink"`
R_InstallSource string `json:"InstallSource"`
R_VersionMajor uint64 `json:"VersionMajor"`
R_VersionMinor uint64 `json:"VersionMinor"`
}
func (*Software) Architecture ¶
func (*Software) EstimatedSize ¶
func (*Software) InstallDate ¶
func (*Software) InstallSource ¶
func (*Software) VersionMajor ¶
func (*Software) VersionMinor ¶
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.