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) 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 ¶ added in v0.0.8
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 ¶ added in v0.0.5
func (*GitHubURL) GetHostName ¶ added in v0.0.5
func (*GitHubURL) GetLatestCommit ¶ added in v0.0.6
ListAll list all directories and files in url tree
func (*GitHubURL) GetOwnerName ¶ added in v0.0.5
func (*GitHubURL) GetProvider ¶ added in v0.0.5
func (*GitHubURL) GetRepoName ¶ added in v0.0.5
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 ¶ added in v0.0.5
func (*GitHubURL) SetDefaultBranchName ¶ added in v0.0.5
Set the default brach of the repo
func (*GitHubURL) SetOwnerName ¶ added in v0.0.5
func (*GitHubURL) SetRepoName ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.