v1

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 6 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

View Source
const HOST = "gitlab.com"

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 NewGitLabParser

func NewGitLabParser() *GitLabURL

NewGitHubParser empty instance of a github parser

func NewGitLabParserWithURL

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

NewGitHubParserWithURL parsed instance of a github parser

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) 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) GetURL

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

func (*GitLabURL) Parse

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

Parse URL

func (*GitLabURL) SetBranchName

func (gl *GitLabURL) SetBranchName(branch string)

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