Documentation
¶
Index ¶
- func GetRepoNameFromUrl(url string) string
- type FileEntry
- type GitRepo
- func (r *GitRepo) DetectBlobContentType(blob string) (string, []byte, error)
- func (r *GitRepo) FetchAll() error
- func (r *GitRepo) FilterBlob(blobId string, filter func(line string) bool, before int, after int) []util.TextPreview
- func (r *GitRepo) GetBlobContent(blob string) ([]byte, error)
- func (r *GitRepo) GetBlobSize(blob string) (int64, error)
- func (r *GitRepo) GetBranchCommitID(name string) (string, error)
- func (r *GitRepo) GetBranches() ([]string, error)
- func (r *GitRepo) GetDiffEntriesIterator(from string, to string, callback func(fileEntry FileEntry, status string)) error
- func (r *GitRepo) GetDiffList(from string, to string) ([]FileEntry, []FileEntry, error)
- func (r *GitRepo) GetFileEntries(commitId string) ([]FileEntry, error)
- func (r *GitRepo) GetFileEntriesIterator(commitId string, callback func(fileEntry FileEntry)) error
- type GitRepoReader
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepoNameFromUrl ¶
Types ¶
type GitRepo ¶
type GitRepo struct {
Organization string
Project string
Repository string
Path string
Debug bool
// contains filtered or unexported fields
}
func NewGitRepo ¶
func (*GitRepo) DetectBlobContentType ¶
func (*GitRepo) FilterBlob ¶
func (*GitRepo) GetBranchCommitID ¶
func (*GitRepo) GetBranches ¶
func (*GitRepo) GetDiffEntriesIterator ¶
func (*GitRepo) GetDiffList ¶
func (*GitRepo) GetFileEntries ¶
type GitRepoReader ¶
func NewGitRepoReader ¶
func NewGitRepoReader(config config.Config) *GitRepoReader
func (*GitRepoReader) CloneGitRepo ¶
func (*GitRepoReader) GetGitRepo ¶
Click to show internal directories.
Click to hide internal directories.