Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClonePath ¶
func GetClonePath(c ChaosHubConfig) string
GetClonePath is used to construct path for Repository.
func GitClone ¶
func GitClone(repoData model.CloningInput) error
GitClone Trigger is responsible for setting off the go routine for git-op
func GitSyncHandlerForProjects ¶
func GitSyncHandlerForProjects(repoData model.CloningInput) error
GitSyncHandlerForProjects ...
Types ¶
type ChaosHubConfig ¶
type ChaosHubConfig struct { ProjectID string RepositoryURL string RemoteName string LocalCommit string RemoteCommit string HubName string Branch string IsPrivate bool UserName *string Password *string AuthType model.AuthType Token *string SSHPrivateKey *string }
ChaosHubConfig is the config used for all git operations
func GitConfigConstruct ¶
func GitConfigConstruct(repoData model.CloningInput) ChaosHubConfig
GitConfigConstruct is used for constructing the gitconfig
func (ChaosHubConfig) GitPull ¶
func (c ChaosHubConfig) GitPull() error
GitPull updates the repository in provided Path
Click to show internal directories.
Click to hide internal directories.