model/net/nic.go

21 lines
650 B
Go
Raw Permalink Normal View History

2018-08-20 08:25:51 +00:00
package net
import (
omm "git.loafle.net/overflow/model/meta"
)
type Interface struct {
2018-09-13 03:27:20 +00:00
Iface string `json:"iface,omitempty"`
FriendlyName string `json:"friendlyName,omitempty"`
Mac string `json:"mac,omitempty"`
Addresses []*InterfaceAddress `json:"addresses,omitempty"`
2018-08-20 08:25:51 +00:00
}
type InterfaceAddress struct {
MetaIPType *omm.MetaIPType `json:"metaIPType,omitempty"`
Address string `json:"address,omitempty"`
Netmask string `json:"netmask,omitempty"`
2018-08-22 06:30:33 +00:00
Network string `json:"network,omitempty"`
Gateway string `json:"gateway,omitempty"`
2018-08-20 08:25:51 +00:00
}