Documentation
¶
Index ¶
- 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) GetBranch() string
- func (gh *GitHubURL) GetHost() string
- func (gh *GitHubURL) GetOwner() string
- func (gh *GitHubURL) GetPath() string
- func (gh *GitHubURL) GetRepo() 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) SetBranch(branch string)
- func (gh *GitHubURL) SetDefaultBranch() error
- func (gh *GitHubURL) SetOwner(o string)
- func (gh *GitHubURL) SetPath(p string)
- func (gh *GitHubURL) SetRepo(r string)
- func (gh *GitHubURL) SetToken(token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) 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 ¶
ListFilesNamesWithExtention list all files in path with the desired extension
func (*GitHubURL) SetDefaultBranch ¶
Set the default brach of the repo
Click to show internal directories.
Click to hide internal directories.