core

package
v0.0.0-...-62bb9e5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "opensnitch-daemon"
	Version = "1.3.0rc2"
	Author  = "Simone 'evilsocket' Margaritelli"
	Website = "https://github.com/evilsocket/opensnitch"
)

version related consts

Variables

View Source
var (
	// IPv6Enabled indicates if IPv6 protocol is enabled in the system
	IPv6Enabled = Exists("/proc/sys/net/ipv6")
)

Functions

func Exec

func Exec(executable string, args []string) (string, error)

Exec spawns a new process and reurns the output.

func Exists

func Exists(path string) bool

Exists checks if a path exists.

func ExpandPath

func ExpandPath(path string) (string, error)

ExpandPath replaces '~' shorthand with the user's home directory.

func GetHostname

func GetHostname() string

GetHostname returns the name of the host where the damon is running.

func GetKernelVersion

func GetKernelVersion() string

GetKernelVersion returns the name of the host where the damon is running.

func Trim

func Trim(s string) string

Trim remove trailing spaces from a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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