Skip to content

Commit

Permalink
Merge pull request #48 from HilkopterBob/ExtendedStructs
Browse files Browse the repository at this point in the history
This PR adds an Interface struct, enableing the management of multiple Network Interfaces and interface speciffic settings. It leaves general Network Information (Domain & DNS) to the general NetworkInfo Struct
  • Loading branch information
HilkopterBob authored Oct 1, 2024
2 parents 47ccdab + 014f244 commit ea5bd38
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,6 +41,7 @@ type Agent struct {

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

0 comments on commit ea5bd38

Please sign in to comment.