v1

package
v0.0.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 12 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHostGitLab

func IsHostGitLab(host string) bool

Types

type GitLabURL

type GitLabURL struct {
	// contains filtered or unexported fields
}

func NewGitLabParserWithURL

func NewGitLabParserWithURL(host, fullURL string) (*GitLabURL, error)

NewGitLabParserWithURL parses a repository on the configured host (including any non-default port). An empty host selects gitlab.com.

func (*GitLabURL) DownloadAllFiles added in v0.0.20

func (gl *GitLabURL) DownloadAllFiles() (map[string][]byte, map[string]error)

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 (gl *GitLabURL) GetBranchName() string

func (*GitLabURL) GetHostName

func (gl *GitLabURL) GetHostName() string

func (*GitLabURL) GetHttpCloneURL

func (gl *GitLabURL) GetHttpCloneURL() string

func (*GitLabURL) GetLatestCommit added in v0.0.20

func (gl *GitLabURL) GetLatestCommit() (*apis.Commit, error)

ListAll list all directories and files in url tree

func (*GitLabURL) GetOwnerName

func (gl *GitLabURL) GetOwnerName() string

func (*GitLabURL) GetPath

func (gl *GitLabURL) GetPath() string

func (*GitLabURL) GetProjectName

func (gl *GitLabURL) GetProjectName() string

func (*GitLabURL) GetProvider

func (gl *GitLabURL) GetProvider() string

func (*GitLabURL) GetRepoName

func (gl *GitLabURL) GetRepoName() string

func (*GitLabURL) GetToken

func (gl *GitLabURL) GetToken() string

func (*GitLabURL) GetTree added in v0.0.20

func (gl *GitLabURL) GetTree() (*gitlabapi.Tree, error)

ListAll list all directories and files in url tree

func (*GitLabURL) GetURL

func (gl *GitLabURL) GetURL() *url.URL

func (*GitLabURL) ListAllNames added in v0.0.20

func (gl *GitLabURL) ListAllNames() ([]string, error)

ListAllNames list all directories and files in url tree

func (*GitLabURL) ListDirsNames added in v0.0.20

func (gl *GitLabURL) ListDirsNames() ([]string, error)

ListDirsNames list all directories in url tree

func (*GitLabURL) ListFilesNames added in v0.0.20

func (gl *GitLabURL) ListFilesNames() ([]string, error)

ListAll list all files in url tree

func (*GitLabURL) ListFilesNamesWithExtension added in v0.0.20

func (gl *GitLabURL) ListFilesNamesWithExtension(filesExtensions []string) ([]string, error)

ListFilesNamesWithExtension list all files in path with the desired extension

func (*GitLabURL) Parse

func (gl *GitLabURL) Parse(fullURL string) error

Parse URL

func (*GitLabURL) SetBranchName

func (gl *GitLabURL) SetBranchName(branch string)

func (*GitLabURL) SetDefaultBranchName added in v0.0.20

func (gl *GitLabURL) SetDefaultBranchName() error

Set the default brach of the repo

func (*GitLabURL) SetOwnerName

func (gl *GitLabURL) SetOwnerName(o string)

func (*GitLabURL) SetPath

func (gl *GitLabURL) SetPath(p string)

func (*GitLabURL) SetProjectName

func (gl *GitLabURL) SetProjectName(project string)

func (*GitLabURL) SetRepoName

func (gl *GitLabURL) SetRepoName(r string)

func (*GitLabURL) SetToken

func (gl *GitLabURL) SetToken(token string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL