Documentation ¶
Index ¶
- func Trigger()
- type GitConfig
- func (c GitConfig) CompareLocalandRemoteCommit(version string) (bool, error)
- func (c GitConfig) GitGetStatus(version string) (bool, error)
- func (c GitConfig) GitHardReset(version string) error
- func (c GitConfig) GitPull(version string) error
- func (c GitConfig) HandlerForCleanStatus(version string) error
- func (c GitConfig) HandlerForDirtyStatus(version string) error
- func (c GitConfig) HandlerForExistingRepository(version string) error
- func (c GitConfig) HandlerForMismatchCommits(version string) error
- func (c GitConfig) HandlerForNonExistingRepository(version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitConfig ¶
type GitConfig struct { RepositoryName string RepositoryURL string RemoteName string LocalCommit string RemoteCommit string }
func (GitConfig) CompareLocalandRemoteCommit ¶
CompareLocalandRemoteCommit compares local and remote latest commit
func (GitConfig) GitGetStatus ¶
GitGetStatus excutes "git get status --porcelain" for the provided Repository Path, returns false if the repository is clean and true if the repository is dirtygitConfig
func (GitConfig) GitHardReset ¶
GitHardReset executes "git reset --hard HEAD" in provided Repository Path
func (GitConfig) HandlerForCleanStatus ¶
HandlerForCleanStatus calls relative functions if the GitGetStatus gives a clean status as a result
func (GitConfig) HandlerForDirtyStatus ¶
HandlerForDirtyStatus calls relative functions if the GitGetStatus gives a clean status as a result
func (GitConfig) HandlerForExistingRepository ¶
HandlerForExistingRepository relative functions if the isRepositoryExists fails
func (GitConfig) HandlerForMismatchCommits ¶
HandlerForMismatchCommits calls relative functions if the Local and Remote Commits do not match
func (GitConfig) HandlerForNonExistingRepository ¶
HandlerForNonExistingRepository calls function GitPlainClone, which is called only when the repository exists