Documentation ¶
Index ¶
- func IsHostGitHub(host string) bool
- type GitHubURL
- func (gh *GitHubURL) DownloadAllFiles() (map[string][]byte, map[string]error)
- func (gh *GitHubURL) DownloadFilesWithExtension(filesExtensions []string) (map[string][]byte, map[string]error)
- func (gh *GitHubURL) GetBranchName() string
- func (gh *GitHubURL) GetHostName() string
- func (gh *GitHubURL) GetHttpCloneURL() string
- func (gh *GitHubURL) GetLatestCommit() (*apis.Commit, error)
- func (gh *GitHubURL) GetOwnerName() string
- func (gh *GitHubURL) GetPath() string
- func (gh *GitHubURL) GetProvider() string
- func (gh *GitHubURL) GetRepoName() string
- func (gh *GitHubURL) GetToken() string
- func (gh *GitHubURL) GetTree() (*githubapi.Tree, error)
- func (gh *GitHubURL) GetURL() *url.URL
- func (gh *GitHubURL) ListAllNames() ([]string, error)
- func (gh *GitHubURL) ListDirsNames() ([]string, error)
- func (gh *GitHubURL) ListFilesNames() ([]string, error)
- func (gh *GitHubURL) ListFilesNamesWithExtension(filesExtensions []string) ([]string, error)
- func (gh *GitHubURL) Parse(fullURL string) error
- func (gh *GitHubURL) SetBranchName(branch string)
- func (gh *GitHubURL) SetDefaultBranchName() error
- func (gh *GitHubURL) SetOwnerName(o string)
- func (gh *GitHubURL) SetPath(p string)
- func (gh *GitHubURL) SetRepoName(r string)
- func (gh *GitHubURL) SetToken(token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHostGitHub ¶
Types ¶
type GitHubURL ¶
type GitHubURL struct {
// contains filtered or unexported fields
}
func NewGitHubParser ¶
func NewGitHubParser() *GitHubURL
NewGitHubParser empty instance of a github parser
func NewGitHubParserWithURL ¶
NewGitHubParserWithURL parsed instance of a github parser
func (*GitHubURL) DownloadAllFiles ¶
DownloadAllFiles download files from git repo tree return map of (url:file, url:error)
func (*GitHubURL) DownloadFilesWithExtension ¶
func (gh *GitHubURL) DownloadFilesWithExtension(filesExtensions []string) (map[string][]byte, map[string]error)
DownloadFilesWithExtension download files from git repo tree based on file extension return map of (url:file, url:error)
func (*GitHubURL) GetBranchName ¶
func (*GitHubURL) GetHostName ¶
func (*GitHubURL) GetHttpCloneURL ¶
func (*GitHubURL) GetLatestCommit ¶
ListAll list all directories and files in url tree
func (*GitHubURL) GetOwnerName ¶
func (*GitHubURL) GetProvider ¶
func (*GitHubURL) GetRepoName ¶
func (*GitHubURL) ListAllNames ¶
ListAllNames list all directories and files in url tree
func (*GitHubURL) ListDirsNames ¶
ListDirsNames list all directories in url tree
func (*GitHubURL) ListFilesNames ¶
ListAll list all files in url tree
func (*GitHubURL) ListFilesNamesWithExtension ¶
ListFilesNamesWithExtension list all files in path with the desired extension
func (*GitHubURL) SetBranchName ¶
func (*GitHubURL) SetDefaultBranchName ¶
Set the default brach of the repo
func (*GitHubURL) SetOwnerName ¶
func (*GitHubURL) SetRepoName ¶
Click to show internal directories.
Click to hide internal directories.