Documentation
¶
Index ¶
- Variables
- func ArePortsReachable(ip string, ports ...string) error
- func CheckIfPathExist(path string) bool
- func CheckIfServiceIsInstalled(serv string) (bool, error)
- func CreateLinuxService(serviceName string, execStart string) error
- func CreatePathIfNotExist(path string) error
- func DownloadFile(url string, headers map[string]string, fileName string, path string, ...) error
- func Execute(c string, dir string, arg ...string) error
- func GenerateKey(baseKey string) ([]byte, error)
- func GenerateKeyByUUID(baseKey string, uuid string) ([]byte, error)
- func GetHostAliases(hostname string) ([]string, error)
- func GetIPAddress() (string, error)
- func GetMyPath() string
- func IncrementReconnectDelay(delay time.Duration, maxReconnectDelay time.Duration) time.Duration
- func InitLogger(filename string)
- func PrintBanner()
- func ReadJson(fileName string, data interface{}) error
- func ReadYAML(path string, result interface{}) error
- func StopService(name string) error
- func UninstallService(name string) error
- func WriteJSON(path string, data interface{}) error
- func WriteSecretStringToFile(fileName string, body string) error
- func WriteSecretYAML(url string, data interface{}) error
- func WriteStringToFile(fileName string, body string) error
- func WriteYAML(url string, data interface{}) 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 CheckIfPathExist ¶
func CreateLinuxService ¶
func CreatePathIfNotExist ¶
func DownloadFile ¶
func GenerateKey ¶
func GetHostAliases ¶
func GetIPAddress ¶
func IncrementReconnectDelay ¶
func InitLogger ¶
func InitLogger(filename string)
func PrintBanner ¶
func PrintBanner()
func StopService ¶
func UninstallService ¶
func WriteSecretStringToFile ¶
WriteSecretStringToFile writes a file that holds credential material: 0600, re-applied on every write so a file created before this existed does not keep its old world-readable mode.
func WriteSecretYAML ¶
WriteSecretYAML is WriteYAML for files that hold credential material.
func WriteStringToFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.