Documentation ¶
Index ¶
- func Chown(file, user string) error
- func CreateUser(name string) error
- func DropRunAs(name string, debug bool, files ...*os.File) (*os.Process, error)
- func GetDbValidatorInterval() int
- func GetUserGUID(name string) (int, int, error)
- func HasElem(s interface{}, elem interface{}) bool
- func IsRegularFile(path string) (bool, error)
- func IsUserExist(name string) bool
- func SubtractStringSlice(slice, s []string) []string
- func UnifyMapParamsTypes(pluginParams map[string]interface{}) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDbValidatorInterval ¶
func GetDbValidatorInterval() int
GetDbValidatorInterval getter for db validator interval
func HasElem ¶
func HasElem(s interface{}, elem interface{}) bool
HasElem Helper function to find if a elem in a slice
func IsRegularFile ¶
IsRegularFile checks if given path point to a file - not to symlink nor directory
func SubtractStringSlice ¶
SubtractStringSlice remove string from slice
func UnifyMapParamsTypes ¶
UnifyMapParamsTypes responsible to unify types of parameters in map to avoid misleading types when passing values to plugins Example: 3.0 can be json.Number but should be float RMD plugins expects following type of params: => int64 (for integers) => float64 (for real numbers) => bool => string => nil => []float64 => []int64 => interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.