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, sha string, env string, app string) (bool, error)
- func NativeRevert(repoPath string, sha string) error
- 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 NativeRevert ¶
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.