Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkInterfaceByName ¶
func GetNetworkInterfaceByName(name string)
GetNetworkInterfaceByName returns details about a single user provided interface
func MaybeSendDiscoveryPacket ¶
func MaybeSendDiscoveryPacket(co ConfigOptions, p vrt.VRT)
MaybeSendDiscoveryPacket regenerates and sends the Discovery Packet if EnableBroadcast is true
func PrintVrtPacket ¶
Types ¶
type ConfigOptions ¶
type NetInteface ¶
type NetInteface struct {
Name string
IPAddress net.IP
MACAddress net.HardwareAddr
}
func ValidateNetworkInterfaceByName ¶
func ValidateNetworkInterfaceByName(name string) (NetInteface, error)
ValidateNetworkInterfaceByName returns details about a single user provided interface
type NetbirdApi ¶
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func UsersDb ¶
UsersDb creates a sqlite database with a clients table and schema if the file does not already exist
func (*Users) DeleteAllUsers ¶
DeleteAllUsers removes all user records from the db
func (*Users) GetUserIpAddresses ¶
GetUserIpAddresses returns the ip address of every user record in the db
type VpnRouteRow ¶
type VpnRouteRow struct {
AccessiblePeersCount int `json:"accessible_peers_count"`
ApprovalRequired bool `json:"approval_required"`
CityName string `json:"city_name"`
Connected bool `json:"connected"`
ConnectionIP string `json:"connection_ip"`
CountryCode string `json:"country_code"`
DNSLabel string `json:"dns_label"`
GeoNameID int `json:"geoname_id"`
Groups []struct {
ID string `json:"id"`
Name string `json:"name"`
PeersCount int `json:"peers_count"`
} `json:"groups"`
Hostname string `json:"hostname"`
ID string `json:"id"`
InactivityExpirationEnabled bool `json:"inactivity_expiration_enabled"`
IP string `json:"ip"`
KernelVersion string `json:"kernel_version"`
LastLogin string `json:"last_login"`
LastSeen string `json:"last_seen"`
LoginExpirationEnabled bool `json:"login_expiration_enabled"`
LoginExpired bool `json:"login_expired"`
Name string `json:"name"`
OS string `json:"os"`
SerialNumber string `json:"serial_number"`
SSHEnabled bool `json:"ssh_enabled"`
UIVersion string `json:"ui_version"`
UserID string `json:"user_id"`
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.