Documentation ¶
Index ¶
- func GitExecDiff(path, filename string) (string, error)
- func SendEmail(c *configuration.Config, subject, message string)
- func WriteFile(c string, name string, s configuration.Config)
- type Git
- func (g *Git) GitCommit() ([]string, error)
- func (g *Git) GitDiff(filename string) string
- func (g *Git) GitDiff2(filename string) string
- func (g *Git) GitDiff3(filename string) string
- func (g *Git) GitDiff4(filename string) string
- func (g *Git) GitHash(filename string) string
- func (g *Git) Open() error
- type SSHRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitExecDiff ¶
GitExecDiff uses os/exec to pull a git diff.
func SendEmail ¶
func SendEmail(c *configuration.Config, subject, message string)
SendEmail to user - Consider using a library.
Types ¶
type Git ¶
type Git struct { Repo *git.Repository // TODO: Consider whether it makes sense to allow path to be a value // that is not identical to Config.Workspace. Path string }
Git tracks the repository used through the application.
func (*Git) GitDiff4 ¶
GitDiff4 based on https://github.com/src-d/go-git/issues/468
type SSHRunner ¶
type SSHRunner struct { Ciphers []string ReadWait time.Duration // contains filtered or unexported fields }
SSHRunner holds the persistent pieces of a specific SSH device connection.
func (*SSHRunner) Close ¶
func (s *SSHRunner) Close()
Close attempts to close the session and connection.
func (*SSHRunner) StartShell ¶
func (s *SSHRunner) StartShell()
StartShell must be called once before running ShellCmd.
Click to show internal directories.
Click to hide internal directories.