Versions in this module Expand all Collapse all v0 v0.2.54 Dec 20, 2023 v0.2.52 Dec 20, 2023 Changes in this version + type AnsiblePlaybook struct + Logger lib.Logger + Repository db.Repository + TemplateID int + func (p AnsiblePlaybook) GetFullPath() (path string) + func (p AnsiblePlaybook) RunGalaxy(args []string) error + func (p AnsiblePlaybook) RunPlaybook(args []string, environmentVars *[]string, cb func(*os.Process)) error + type CmdGitClient struct + func (c CmdGitClient) CanBePulled(r GitRepository) bool + func (c CmdGitClient) Checkout(r GitRepository, target string) error + func (c CmdGitClient) Clone(r GitRepository) error + func (c CmdGitClient) GetLastCommitHash(r GitRepository) (hash string, err error) + func (c CmdGitClient) GetLastCommitMessage(r GitRepository) (msg string, err error) + func (c CmdGitClient) GetLastRemoteCommitHash(r GitRepository) (hash string, err error) + func (c CmdGitClient) Pull(r GitRepository) error + type GitClient interface + CanBePulled func(r GitRepository) bool + Checkout func(r GitRepository, target string) error + Clone func(r GitRepository) error + GetLastCommitHash func(r GitRepository) (hash string, err error) + GetLastCommitMessage func(r GitRepository) (msg string, err error) + GetLastRemoteCommitHash func(r GitRepository) (hash string, err error) + Pull func(r GitRepository) error + func CreateCmdGitClient() GitClient + func CreateDefaultGitClient() GitClient + func CreateGoGitClient() GitClient + type GitRepository struct + Client GitClient + Logger lib.Logger + Repository db.Repository + TemplateID int + func (r GitRepository) CanBePulled() bool + func (r GitRepository) Checkout(target string) error + func (r GitRepository) Clone() error + func (r GitRepository) GetFullPath() (path string) + func (r GitRepository) GetLastCommitHash() (hash string, err error) + func (r GitRepository) GetLastCommitMessage() (msg string, err error) + func (r GitRepository) GetLastRemoteCommitHash() (hash string, err error) + func (r GitRepository) Pull() error + func (r GitRepository) ValidateRepo() error + type GitRepositoryDirType int + const GitRepositoryRepoDir + const GitRepositoryTmpDir + type GoGitClient struct + func (c GoGitClient) CanBePulled(r GitRepository) bool + func (c GoGitClient) Checkout(r GitRepository, target string) error + func (c GoGitClient) Clone(r GitRepository) error + func (c GoGitClient) GetLastCommitHash(r GitRepository) (hash string, err error) + func (c GoGitClient) GetLastCommitMessage(r GitRepository) (msg string, err error) + func (c GoGitClient) GetLastRemoteCommitHash(r GitRepository) (hash string, err error) + func (c GoGitClient) Pull(r GitRepository) error + type ProgressWrapper struct + Logger lib.Logger + func (t ProgressWrapper) Write(p []byte) (n int, err error)