Documentation
¶
Index ¶
- type GitImplementer
- func (g *GitImplementer) Clone(repoUrl string, directory string, logger logr.Logger) (err error)
- func (g *GitImplementer) Hash(repo string, branch string, logger logr.Logger) (hash string, err error)
- func (g *GitImplementer) Poll(repo string, branch string, directory string, logger logr.Logger) (changes bool, err error)
- type GitOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitImplementer ¶
type GitImplementer struct{}
GitImplementer implements the GitOperator interface.
type GitOperator ¶
type GitOperator interface {
Clone(repoUrl string, dir string, logger logr.Logger) (err error)
Poll(repo string, branch string, directory string, logger logr.Logger) (changes bool, err error)
Hash(repo string, branch string, logger logr.Logger) (hash string, err error)
}
GitOperator defines the interface for git operations.
Click to show internal directories.
Click to hide internal directories.