Versions in this module Expand all Collapse all v0 v0.8.4 Oct 11, 2022 Changes in this version + const DefaultScope + const DescBlocked + const DescCanceled + const DescDeclined + const DescFailure + const DescPending + const DescRunning + const DescSuccess + const StatusCanceled + const StatusFailure + const StatusPending + const StatusRunning + const StatusSuccess + func ExtractFromPath(str string) (string, string, error) + func GetKeyTitle(rawurl string) (string, error) + func GetProjectId(r *Gitlab, c *client.Client, owner, name string) (projectId string, err error) + func GetUserAvatar(email string) string + func GetUserEmail(c *client.Client, defaultURL string) (*client.Client, error) + func IsAdmin(proj *client.Project) bool + func IsRead(proj *client.Project) bool + func IsWrite(proj *client.Project) bool + func New(opts Opts) (remote.Remote, error) + func NewClient(url, accessToken string, skipVerify bool) *client.Client + type Gitlab struct + Client string + HideArchives bool + Machine string + Password string + PrivateMode bool + Search bool + Secret string + SkipVerify bool + URL string + Username string + func Load(config string) *Gitlab + func (g *Gitlab) Activate(user *model.User, repo *model.Repo, link string) error + func (g *Gitlab) Auth(token, secret string) (string, error) + func (g *Gitlab) Deactivate(user *model.User, repo *model.Repo, link string) error + func (g *Gitlab) File(user *model.User, repo *model.Repo, build *model.Build, f string) ([]byte, error) + func (g *Gitlab) FileRef(u *model.User, r *model.Repo, ref, f string) ([]byte, error) + func (g *Gitlab) Hook(req *http.Request) (*model.Repo, *model.Build, error) + func (g *Gitlab) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) + func (g *Gitlab) Netrc(u *model.User, r *model.Repo) (*model.Netrc, error) + func (g *Gitlab) Oauth2Transport(r *http.Request) *oauth2.Transport + func (g *Gitlab) Perm(u *model.User, owner, name string) (*model.Perm, error) + func (g *Gitlab) Repo(u *model.User, owner, name string) (*model.Repo, error) + func (g *Gitlab) Repos(u *model.User) ([]*model.Repo, error) + func (g *Gitlab) Status(u *model.User, repo *model.Repo, b *model.Build, link string) error + func (g *Gitlab) Teams(u *model.User) ([]*model.Team, error) + type Opts struct + Client string + Password string + PrivateMode bool + Secret string + SkipVerify bool + URL string + Username string