agent

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DjangoStringResp

func DjangoStringResp(resp string) string

DjangoStringResp removes double quotes from django rest api resp

func FileExists

func FileExists(path string) bool

FileExists checks whether a file exists

func GenerateAgentID

func GenerateAgentID() string

GenerateAgentID creates and returns a unique agent id

func IsValidIP

func IsValidIP(ip string) bool

IsValidIP checks for a valid ipv4 or ipv6

func KillProc

func KillProc(pid int32) error

KillProc kills a process and its children

func ShowVersionInfo

func ShowVersionInfo(ver string)

ShowVersionInfo prints basic debugging info

func StripAll

func StripAll(s string) string

StripAll strips all whitespace and newline chars

func TestTCP added in v1.1.0

func TestTCP(addr string) error

func Unzip added in v1.3.0

func Unzip(src, dest string) error

https://golangcode.com/unzip-files-in-go/

Types

This section is empty.

Jump to

Keyboard shortcuts

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