Documentation ¶
Index ¶
- Constants
- func GenerateKeys() (string, string, error)
- func GetClonePath(c ChaosHubConfig) string
- func GitClone(repoData model.CloningInput, projectID string) error
- func GitPlainOpen(repoPath string) error
- func GitSyncDefaultHub(repoData model.CloningInput) error
- func GitSyncHandlerForProjects(repoData model.CloningInput, projectID string) error
- type ChaosHubConfig
Constants ¶
View Source
const DefaultPath = "/tmp/"
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, projectID string) error
GitClone Trigger is responsible for setting off the go routine for git-op
func GitPlainOpen ¶
func GitSyncDefaultHub ¶
func GitSyncDefaultHub(repoData model.CloningInput) error
GitSyncDefaultHub ...
func GitSyncHandlerForProjects ¶
func GitSyncHandlerForProjects(repoData model.CloningInput, projectID string) error
GitSyncHandlerForProjects ...
Types ¶
type ChaosHubConfig ¶
type ChaosHubConfig struct { ProjectID string RepositoryURL string RemoteName string LocalCommit string RemoteCommit string HubName string Branch string IsPrivate bool IsDefault 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, projectID string) 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.