sysinfo

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSystemdStuff

func CreateSystemdStuff(iface, wgdir string) error

func DefaultIP4Interface

func DefaultIP4Interface() string

func DefaultIP6Interface

func DefaultIP6Interface() string

func DiscoverIPOld

func DiscoverIPOld() string

func EnableNat

func EnableNat(ip4, ip6 bool) error

func GetSystemEditorPath

func GetSystemEditorPath() string

GetSystemEditorPath gets editor using EDITOR env variable with common fallbacks if not set

func HasIP6

func HasIP6() bool

func HasIPTables

func HasIPTables() bool

func HasSystemd

func HasSystemd() bool

func HasWireguard

func HasWireguard() bool

func IsRoot

func IsRoot() bool

func NatEnabledIPv4

func NatEnabledIPv4() bool

func NatEnabledIPv6

func NatEnabledIPv6() bool

func NetworkInterfaceExists

func NetworkInterfaceExists(iface string) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL