util

package
v0.0.0-...-f78b0ad Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterNodes

func FilterNodes(Reserved, agents []string) []string

FilterNodes filter nodes for safe

func GetPidFromfile

func GetPidFromfile(file string) (string, error)

GetPidFromfile read pid from file

func ListAllFileByName

func ListAllFileByName(dir, suffix string) ([]string, error)

ListAllFileByName list all the file with specified suffix

func NewUUID

func NewUUID() string

NewUUID create unique id

func RunCommand

func RunCommand(command string) ([]byte, error)

RunCommand execute a command as shell

func StartCommand

func StartCommand(command string) error

StartCommand execute a command

Types

This section is empty.

Jump to

Keyboard shortcuts

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