-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discover FQDN inside the host discovery loop (#313)
* Add go-fqdn library * Update tests * Add FQDN discovery to the host loop
- Loading branch information
1 parent
24bf295
commit 55335a2
Showing
6 changed files
with
56 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package hosts | ||
|
||
type DiscoveredHost struct { | ||
OSVersion string `json:"os_version"` | ||
HostIPAddresses []string `json:"ip_addresses"` | ||
HostName string `json:"hostname"` | ||
CPUCount int `json:"cpu_count"` | ||
SocketCount int `json:"socket_count"` | ||
TotalMemoryMB int `json:"total_memory_mb"` | ||
AgentVersion string `json:"agent_version"` | ||
InstallationSource string `json:"installation_source"` | ||
OSVersion string `json:"os_version"` | ||
HostIPAddresses []string `json:"ip_addresses"` | ||
HostName string `json:"hostname"` | ||
CPUCount int `json:"cpu_count"` | ||
SocketCount int `json:"socket_count"` | ||
TotalMemoryMB int `json:"total_memory_mb"` | ||
AgentVersion string `json:"agent_version"` | ||
InstallationSource string `json:"installation_source"` | ||
FullyQualifiedDomainName *string `json:"fully_qualified_domain_name,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters