Versions in this module Expand all Collapse all v0 v0.4.2 Apr 28, 2016 Changes in this version + const DescCanceled + 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 GetUserAvatar(email string) string type Gitlab + HideArchives bool + func (g *Gitlab) File(user *model.User, repo *model.Repo, build *model.Build, f string) ([]byte, error) v0.4.0 Oct 26, 2015 Changes in this version + const DefaultScope + func GetKeyTitle(rawurl string) (string, error) + func GetProjectId(r *Gitlab, client *gogitlab.Gitlab, owner, name string) (projectId string, err error) + func GetUserEmail(client *gogitlab.Gitlab, defaultURL string) (*gogitlab.Gitlab, error) + func IsAdmin(proj *gogitlab.Project) bool + func IsRead(proj *gogitlab.Project) bool + func IsWrite(proj *gogitlab.Project) bool + func NewClient(url, accessToken string, skipVerify bool) *gogitlab.Gitlab + type Gitlab struct + AllowedOrgs []string + Client string + CloneMode string + Open bool + PrivateMode bool + Search bool + Secret string + SkipVerify bool + URL string + func Load(env envconfig.Env) *Gitlab + func (g *Gitlab) Activate(user *model.User, repo *model.Repo, k *model.Key, 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) GetOpen() bool + func (g *Gitlab) GetOrgs() []string + func (g *Gitlab) Hook(req *http.Request) (*model.Repo, *model.Build, error) + func (g *Gitlab) Login(res http.ResponseWriter, req *http.Request) (*model.User, bool, 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.RepoLite, error) + func (g *Gitlab) Scope() string + func (g *Gitlab) Script(user *model.User, repo *model.Repo, build *model.Build) ([]byte, []byte, error) + func (g *Gitlab) Status(u *model.User, repo *model.Repo, b *model.Build, link string) error