utils

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupFile

func BackupFile(filePath string, cfg *config.Config) error

BackupFile backs up a file

func CheckSubnet

func CheckSubnet(subnet string) (bool, error)

CheckSubnet checks if the specified subnet is present in the system's interfaces

func PrintHeader

func PrintHeader()

PrintHeader prints a standard header

func PrintLogo()

PrintLogo prints the script logo

func PrintLogs

func PrintLogs(logPath string)

PrintLogs prints the content of the log file

func RunCommand

func RunCommand(name string, args ...string) (string, error)

RunCommand runs a command and returns its output

func SetupHushlogin

func SetupHushlogin(cfg *config.Config) error

SetupHushlogin creates a .hushlogin file in the home directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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