Documentation ¶
Index ¶
- Variables
- func Datestamp() (stamp string)
- func DropPrivilegesTo(userName, groupName string) (err error)
- func GetIntFromFile(src string) (v int, err error)
- func GetProcessFromPid(pid int) (proc *process.Process, err error)
- func GetProcessFromPidFile(pidFile string) (proc *process.Process, err error)
- func GetUidGid(userName, groupName string) (uid, gid int, err error)
- func Gpg(home string, argv ...string) (o, e string, status int, err error)
- func GpgShowOnly(home, file string) (fingerprints []string, err error)
- func IsAddressPortOpen(host string, port int) (ok bool)
- func IsAddressPortOpenWithTimeout(host string, port int, timeout time.Duration) (ok bool)
- func ParseControlArgv(input string) (argv []string, err error)
- func ParseSshKey(input string) (prefix, data, comment, id string, ok bool)
- func PerformChmod(target string, mode os.FileMode) (err error)
- func PerformChown(target string, uid, gid int) (err error)
- func PerformChownChmod(uid, gid int, fileMode, dirMode os.FileMode, paths ...string) (err error)
- func PerformMkdirChownChmod(uid, gid int, fileMode, dirMode os.FileMode, directories ...string) (err error)
- func ReadProcfile(procfile string) (procTypes map[string]string, err error)
- func RepairOwnership(path, userName, groupName string) (err error)
- func SendSignalToPidFromFile(pidFile string, sig process.Signal) (err error)
- func SendSignalToPidTreeFromFile(pidFile string, sig process.Signal) (err error)
- func SetPgrpPriority(pid, priority int) (err error)
- func SetPidPriority(pid, priority int) (err error)
- func UniqueHash() (hash string)
- type SignalErrors
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DatestampFormat = "20060102-1504.05"
)
View Source
var RxSlugProcfileEntry = regexp.MustCompile(`^([a-zA-Z0-9]+):\s*(.+?)\s*$`)
View Source
var (
RxSshPubKey = regexp.MustCompile(`^(\S+)\s+(\S+)((?:\s*).*)$`)
)
Functions ¶
func DropPrivilegesTo ¶
func GetIntFromFile ¶
func GetProcessFromPidFile ¶
func GpgShowOnly ¶
func IsAddressPortOpen ¶
func ParseControlArgv ¶
func ParseSshKey ¶
func PerformChown ¶
func PerformChownChmod ¶
func PerformMkdirChownChmod ¶
func RepairOwnership ¶
func SendSignalToPidFromFile ¶
func SendSignalToPidTreeFromFile ¶ added in v0.1.9
func SetPgrpPriority ¶
func SetPidPriority ¶
func UniqueHash ¶
func UniqueHash() (hash string)
Types ¶
type SignalErrors ¶ added in v0.1.9
type SignalErrors []error
func NewSignalErrors ¶ added in v0.1.9
func NewSignalErrors() (e *SignalErrors)
func SendSignalToPidTree ¶ added in v0.1.9
func SendSignalToPidTree(pid int, sig process.Signal) (signalErrors *SignalErrors)
func (*SignalErrors) Append ¶ added in v0.1.9
func (e *SignalErrors) Append(errs ...error)
func (*SignalErrors) Error ¶ added in v0.1.9
func (e *SignalErrors) Error() (message string)
func (*SignalErrors) Errors ¶ added in v0.1.9
func (e *SignalErrors) Errors() []error
func (*SignalErrors) Len ¶ added in v0.1.9
func (e *SignalErrors) Len() int
Click to show internal directories.
Click to hide internal directories.