Documentation
¶
Index ¶
- func Branch(repo *git.Repository, ref string) error
- func CloneToTmpFs(repoName string, privateKeyPath string) (string, *git.Repository, error)
- func Commit(repo *git.Repository, message string) (string, error)
- func CommitFilesToGit(repo *git.Repository, files map[string]string, env string, app string, ...) (string, error)
- func Content(repo *git.Repository, path string) (string, error)
- func DelDir(repo *git.Repository, path string) error
- func DeleteCommit(c *object.Commit) bool
- func Envs(repo *git.Repository) ([]string, error)
- func Folder(repo *git.Repository, path string) (map[string]string, error)
- func HasBeenReverted(repo *git.Repository, commit *object.Commit, env string, app string) (bool, error)
- func NativePush(repoPath string, privateKeyPath string, branch string) error
- func NativeRevert(repoPath string, sha string) error
- func NewCommitDirIterFromIter(dir string, commitIter object.CommitIter, r *git.Repository) object.CommitIter
- func NothingToCommit(repo *git.Repository) (bool, error)
- func Push(repo *git.Repository, privateKeyPath string) error
- func Releases(repo *git.Repository, app, env string, since, until *time.Time, limit int, ...) ([]*dx.Release, error)
- func RollbackCommit(c *object.Commit) bool
- func StageFolder(repo *git.Repository, folder string) error
- func Status(repo *git.Repository, app, env string, perf *prometheus.HistogramVec) (map[string]*dx.Release, error)
- func TmpFsCleanup(path string) error
- type GitopsRepoCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneToTmpFs ¶
func CommitFilesToGit ¶
func DeleteCommit ¶
func HasBeenReverted ¶
func NativePush ¶ added in v0.5.3
func NativeRevert ¶
func NewCommitDirIterFromIter ¶ added in v0.5.2
func NewCommitDirIterFromIter(dir string, commitIter object.CommitIter, r *git.Repository) object.CommitIter
NewCommitPathIterFromIter returns a commit iterator which performs diffTree between successive trees returned from the commit iterator from the argument. The purpose of this is to find the commits that explain how the files that match the path came to be. If checkParent is true then the function double checks if potential parent (next commit in a path) is one of the parents in the tree (it's used by `git log --all`). pathFilter is a function that takes path of file as argument and returns true if we want it
func NothingToCommit ¶
func RollbackCommit ¶
func StageFolder ¶
func Status ¶
func Status( repo *git.Repository, app, env string, perf *prometheus.HistogramVec, ) (map[string]*dx.Release, error)
func TmpFsCleanup ¶
Types ¶
type GitopsRepoCache ¶
type GitopsRepoCache struct {
// contains filtered or unexported fields
}
func NewGitopsRepoCache ¶
func NewGitopsRepoCache( gitopsRepo string, gitopsRepoDeployKeyPath string, stopCh chan struct{}, ) (*GitopsRepoCache, error)
func (*GitopsRepoCache) CleanupWrittenRepo ¶
func (r *GitopsRepoCache) CleanupWrittenRepo(path string) error
func (*GitopsRepoCache) InstanceForRead ¶
func (r *GitopsRepoCache) InstanceForRead() *git.Repository
func (*GitopsRepoCache) InstanceForWrite ¶
func (r *GitopsRepoCache) InstanceForWrite() (*git.Repository, string, error)
func (*GitopsRepoCache) Invalidate ¶
func (r *GitopsRepoCache) Invalidate()
func (*GitopsRepoCache) Run ¶
func (r *GitopsRepoCache) Run()
Click to show internal directories.
Click to hide internal directories.