Documentation
¶
Index ¶
- Variables
- func ArePortsReachable(ip string, ports ...string) error
- func CheckIfServiceIsActive(serv string) (bool, error)
- func CheckIfServiceIsInstalled(serv string) (bool, error)
- func CreateLinuxService(serviceName string, execStart string) error
- func DecryptAES(ciphertext, baseKey, uuid string) (string, error)
- func EncryptAES(plaintext, baseKey, uuid string) (string, error)
- func ExecuteWithResult(c string, dir string, arg ...string) (string, bool)
- func ExecuteWithResultRaw(c string, dir string, arg ...string) (string, bool)
- func GenerateKeyByUUID(baseKey string, uuid string) ([]byte, error)
- func GetHostAliases(hostname string) ([]string, error)
- func GetIPAddress() (string, error)
- func IncrementReconnectDelay(delay time.Duration, maxReconnectDelay time.Duration) time.Duration
- func InitLogger(filename string)
- func PrintBanner()
- func StartService(name string) error
- func StopService(name string) error
- func UninstallService(name string) error
- type LogLevels
- type OSInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Logger *logger.Logger LogLevelMap = map[string]int{ "debug": 100, "info": 200, "notice": 300, "warning": 400, "error": 500, "critical": 502, "alert": 509, } )
Functions ¶
func ArePortsReachable ¶
func CheckIfServiceIsActive ¶
func CreateLinuxService ¶
func DecryptAES ¶
DecryptAES decrypts ciphertext using AES with a key derived from baseKey and uuid.
func EncryptAES ¶
EncryptAES encrypts plaintext using AES with a key derived from baseKey and uuid.
func ExecuteWithResultRaw ¶
ExecuteWithResultRaw passes the command line to the shell unescaped on Windows, because Go's default quoting adds backslashes that cmd.exe rejects.
func GenerateKeyByUUID ¶
GenerateKeyByUUID generates an AES key from baseKey and uuid.
func GetHostAliases ¶
func GetIPAddress ¶
func IncrementReconnectDelay ¶
func InitLogger ¶
func InitLogger(filename string)
func PrintBanner ¶
func PrintBanner()
func StartService ¶
func StopService ¶
func UninstallService ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.