Documentation
¶
Index ¶
- 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 Envs(repo *git.Repository) ([]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 RemoteHasChanges(repo *git.Repository, privateKeyPath string) (bool, 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 RepoCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneToTmpFs ¶
func CommitFilesToGit ¶
func HasBeenReverted ¶
func NativeRevert ¶
func NothingToCommit ¶
func RemoteHasChanges ¶ added in v0.3.1
func RollbackCommit ¶
func StageFolder ¶
func Status ¶ added in v0.2.0
func Status( repo *git.Repository, app, env string, perf *prometheus.HistogramVec, ) (map[string]*dx.Release, error)
func TmpFsCleanup ¶
Types ¶
type RepoCache ¶ added in v0.3.1
type RepoCache struct {
// contains filtered or unexported fields
}
func NewRepoCache ¶ added in v0.3.1
func (*RepoCache) InstanceForRead ¶ added in v0.3.1
func (w *RepoCache) InstanceForRead() *git.Repository
func (*RepoCache) Invalidate ¶ added in v0.3.1
func (w *RepoCache) Invalidate()
Click to show internal directories.
Click to hide internal directories.