Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended Structs with more Information #48

Merged
merged 4 commits into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions structs/structs.go
Original file line number Diff line number Diff line change
@@ -5,19 +5,27 @@
package structs

type Network_Info struct {
Ip_addr string
Mac_addr string
// TODO: add domain or FQDN
Interfaces []string
Domain string
DNSServers []string
}

type Interface struct {
Name string
IpAddr string
Gateway string
Netmask string
LinkSpeed int
MacAddr string
}
type Package_Manager struct {
Package_manager_name string
Package_repos []string // A Slice containing all Repository Links.
}

type Host struct {
// TODO: support different linux distros
Name string // FQDN
Name string // Hostname
Uname string //Linux Distro
ID int
Current_packages []string // A Slice with all currently installed Packages.
Network_info Network_Info
@@ -33,6 +41,7 @@ type Agent struct {

type User struct {
Username string
Group string
Password string
UserID string
APIToken []string
Loading