Documentation ¶
Index ¶
- Constants
- Variables
- func AllUsersWithSockets() ([]*user.User, error)
- func Chown(path string, usr *user.User) error
- func CmdSocketPath(usr *user.User) string
- func ExecAndWait(cmd *exec.Cmd, input *[]byte) (*ExecResult, *Error)
- func FindLibexecProgram(name string) (string, error)
- func LogToStdoutStderr()
- func LongVersionStr() string
- func MakeCmdExitedChan(cmd *exec.Cmd) <-chan error
- func PerUserDirPath(usr *user.User) string
- func RunnerPidFilePath(usr *user.User) string
- func SetLogFile(paths ...string)
- func ShortVersionStr() string
- func Sudo(usr user.User, cmdStr string) *exec.Cmd
- func UseSyslog() error
- func UserOwnsFile(usr *user.User, path string) (bool, error)
- func UserOwnsFileF(usr *user.User, f *os.File) (bool, error)
- type Error
- type ExecResult
Constants ¶
View Source
const ( VarDirPath = "/var/jobber" CmdSocketFileName = "cmd.sock" )
View Source
const (
DaemonSocketAddr string = "/var/jobber_daemon.sock"
)
Variables ¶
Functions ¶
func AllUsersWithSockets ¶ added in v1.3.0
Get a list of all users for whom there is a jobberrunner process.
func CmdSocketPath ¶ added in v1.3.0
func ExecAndWait ¶ added in v1.3.0
func ExecAndWait(cmd *exec.Cmd, input *[]byte) (*ExecResult, *Error)
func FindLibexecProgram ¶ added in v1.3.0
func LogToStdoutStderr ¶ added in v1.3.0
func LogToStdoutStderr()
func LongVersionStr ¶
func LongVersionStr() string
func MakeCmdExitedChan ¶ added in v1.3.0
func PerUserDirPath ¶ added in v1.3.0
func RunnerPidFilePath ¶ added in v1.3.0
func SetLogFile ¶ added in v1.3.0
func SetLogFile(paths ...string)
func ShortVersionStr ¶
func ShortVersionStr() string
Types ¶
type ExecResult ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.