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