Documentation ¶
Index ¶
- func ChownDirectory(dir string, userId int, groupId int) (int, error)
- func ExecCommand(cmd ...string) (string, error)
- func FormatDuration(duration time.Duration) string
- func GetAbsoluteDir(relPath string, userName string) (string, error)
- func GetRunType(headless bool) string
- func HttpGet(endpoint string, params map[string]string) ([]byte, error)
- func IsDirectory(str string) bool
- func IsExecutable(str string) bool
- func IsGitRepository(str string) bool
- func IsReadableFile(str string) bool
- func PathExists(str string) bool
- func Pluralise(n int, singular, plural string) string
- func SendMail(name, email, subject, body string) error
- type ExecContext
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecCommand ¶
func FormatDuration ¶
func GetRunType ¶
func IsDirectory ¶
func IsExecutable ¶
func IsGitRepository ¶
func IsReadableFile ¶
func PathExists ¶ added in v1.1.0
Types ¶
type ExecContext ¶
type ExecContext struct {
// contains filtered or unexported fields
}
func NewExecContext ¶
func NewExecContext(workDir string, writer func(string), env []string) ExecContext
func (ExecContext) NewCommand ¶
func (self ExecContext) NewCommand(cmd ...string) *exec.Cmd
func (ExecContext) Run ¶
func (self ExecContext) Run(cmd ...string) error
Click to show internal directories.
Click to hide internal directories.