Documentation ¶
Index ¶
- Constants
- func FileExists(filePath string) bool
- func FileExistsInPath(fileName string) bool
- func GetLocalIP() string
- func GetPathParts(path string) (dirPath, fileName, absPath string)
- func GetThisPathParts() (dirPath, fileName, absPath string)
- func HomeDir() string
- func LogFile() string
- func ParseAddress(addr string) (proto string, path string, err error)
- func PidFile() string
- func RandomString(length int) string
- func ReadPidFile() (int, error)
- func StringInSlice(a string, list []string) bool
- func WritePidFile(pid int) error
Constants ¶
View Source
const ( LETTER_BYTES = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" LETTER_INDEX_BITS = 6 LETTER_INDEX_MASK = 1<<LETTER_INDEX_BITS - 1 LETTER_INDEX_MAX = 63 / LETTER_INDEX_BITS )
View Source
const ADDR_PATT = "(?i)^((?:(?:tcp|udp|ip)[46]?)|(?:unix(?:gram|packet)?))://(.+)$"
View Source
const CLILOG = "/var/log/rexray.log"
View Source
const LOGDIR = "/var/log/rexray"
View Source
const LOGFILE = "/var/log/rexray.log"
View Source
const PIDDIR = "/var/run/rexray"
View Source
const PIDFILE = "/var/run/rexray.pid"
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FileExistsInPath ¶
func GetPathParts ¶
func GetThisPathParts ¶
func GetThisPathParts() (dirPath, fileName, absPath string)
func RandomString ¶
func ReadPidFile ¶
func StringInSlice ¶
func WritePidFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.