Documentation ¶
Index ¶
- Variables
- type IGitService
- type Service
- func (s *Service) CloneRepository(project *workspace.Project, auth *http.BasicAuth) error
- func (s *Service) CloneRepositoryCmd(project *workspace.Project, auth *http.BasicAuth) []string
- func (s *Service) GetGitStatus() (*workspace.GitStatus, error)
- func (s *Service) RepositoryExists(project *workspace.Project) (bool, error)
- func (s *Service) SetGitConfig(userData *gitprovider.GitUser) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MapStatus map[git.StatusCode]workspace.Status = map[git.StatusCode]workspace.Status{ git.Unmodified: workspace.Unmodified, git.Untracked: workspace.Untracked, git.Modified: workspace.Modified, git.Added: workspace.Added, git.Deleted: workspace.Deleted, git.Renamed: workspace.Renamed, git.Copied: workspace.Copied, git.UpdatedButUnmerged: workspace.UpdatedButUnmerged, }
Functions ¶
This section is empty.
Types ¶
type IGitService ¶
type IGitService interface { CloneRepository(project *workspace.Project, auth *http.BasicAuth) error CloneRepositoryCmd(project *workspace.Project, auth *http.BasicAuth) []string RepositoryExists(project *workspace.Project) (bool, error) SetGitConfig(userData *gitprovider.GitUser) error GetGitStatus() (*workspace.GitStatus, error) }
type Service ¶
type Service struct { ProjectDir string GitConfigFileName string LogWriter io.Writer OpenRepository *git.Repository }
func (*Service) CloneRepository ¶
func (*Service) CloneRepositoryCmd ¶ added in v0.22.0
func (*Service) GetGitStatus ¶ added in v0.15.0
func (*Service) RepositoryExists ¶
func (*Service) SetGitConfig ¶
func (s *Service) SetGitConfig(userData *gitprovider.GitUser) error
Click to show internal directories.
Click to hide internal directories.