Documentation ¶
Index ¶
- func CreateSystemdStuff(iface, wgdir string) error
- func DefaultIP4Interface() string
- func DefaultIP6Interface() string
- func DiscoverIPOld() string
- func EnableNat(ip4, ip6 bool) error
- func GetSystemEditorPath() string
- func HasIP6() bool
- func HasIPTables() bool
- func HasSystemd() bool
- func HasWireguard() bool
- func IsRoot() bool
- func NatEnabledIPv4() bool
- func NatEnabledIPv6() bool
- func NetworkInterfaceExists(iface string) bool
- type DiscoverStep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSystemdStuff ¶
func DefaultIP4Interface ¶
func DefaultIP4Interface() string
func DefaultIP6Interface ¶
func DefaultIP6Interface() string
func DiscoverIPOld ¶
func DiscoverIPOld() string
func GetSystemEditorPath ¶
func GetSystemEditorPath() string
GetSystemEditorPath gets editor using EDITOR env variable with common fallbacks if not set
func HasIPTables ¶
func HasIPTables() bool
func HasSystemd ¶
func HasSystemd() bool
func HasWireguard ¶
func HasWireguard() bool
func NatEnabledIPv4 ¶
func NatEnabledIPv4() bool
func NatEnabledIPv6 ¶
func NatEnabledIPv6() bool
func NetworkInterfaceExists ¶
Types ¶
type DiscoverStep ¶
type DiscoverStep struct { Result string Service string Log string // contains filtered or unexported fields }
func DiscoverIP ¶
func DiscoverIP(d DiscoverStep) DiscoverStep
func NewDiscoverIPStep ¶
func NewDiscoverIPStep() DiscoverStep
Click to show internal directories.
Click to hide internal directories.