Versions in this module Expand all Collapse all v0 v0.4.1 Nov 23, 2018 v0.4.0 Nov 22, 2018 Changes in this version + const ApiVersion + type Client struct + func (c *Client) Group() GroupInterface + func (c *Client) GroupMember() GroupMemberInterface + func (c *Client) Project() ProjectInterface + func (c *Client) ProjectMember() ProjectMemberInterface + func (c *Client) Repository() RepositoryInterface + func (c *Client) RepositoryFile() RepositoryFileInterface + func (c *Client) Session() SessionInterface + func (c *Client) User() UserInterface + type ClientInterface interface + Group func() GroupInterface + GroupMember func() GroupMemberInterface + Project func() ProjectInterface + ProjectMember func() ProjectMemberInterface + Repository func() RepositoryInterface + RepositoryFile func() RepositoryFileInterface + Session func() SessionInterface + SetBaseURL func(baseUrl string) error + User func() UserInterface + type Group struct + func NewGroup(client NewClient) *Group + func (g *Group) GetGroup(token, baseUrl string, gid int) (*scm.Group, error) + func (g *Group) ListGroupProjects(token, baseUrl string, gid, page int) ([]scm.Project, error) + func (g *Group) ListGroups(token, baseUrl string, page int) ([]scm.Group, error) + type GroupInterface interface + GetGroup func(gid interface{}, options ...gitlab.OptionFunc) (*gitlab.Group, *gitlab.Response, error) + ListGroupProjects func(gid interface{}, opt *gitlab.ListGroupProjectsOptions, ...) ([]*gitlab.Project, *gitlab.Response, error) + ListGroups func(opt *gitlab.ListGroupsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Group, *gitlab.Response, error) + type GroupMember struct + func NewGroupMember(c NewClient) *GroupMember + func (gm *GroupMember) GetGroupMember(token, baseUrl string, gid, uid int) (*scm.GroupMember, error) + func (gm *GroupMember) ListGroupMembers(token, baseUrl string, gid, uid int) (int, error) + type GroupMemberInterface interface + ListGroupMembers func(gid interface{}, opt *gitlab.ListGroupMembersOptions, ...) ([]*gitlab.GroupMember, *gitlab.Response, error) + type NewClient func(url, token string) ClientInterface + type Project struct + func NewProject(c NewClient) *Project + func (p *Project) GetGroupId(baseUrl, token string, pid int) (int, error) + func (p *Project) GetProject(baseUrl, id, token string) (int, int, error) + func (p *Project) ListProjects(baseUrl, token, search string, page int) ([]scm.Project, error) + func (p *Project) Search(baseUrl, token, search string) ([]scm.Project, error) + type ProjectInterface interface + GetProject func(pid interface{}, options ...gitlab.OptionFunc) (*gitlab.Project, *gitlab.Response, error) + ListProjects func(opt *gitlab.ListProjectsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Project, *gitlab.Response, error) + type ProjectMember struct + func NewProjectMember(c NewClient) *ProjectMember + func (p *ProjectMember) GetProjectMember(token, baseUrl string, pid, uid, gid int) (scm.ProjectMember, error) + type ProjectMemberInterface interface + GetProjectMember func(pid interface{}, user int, options ...gitlab.OptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error) + type Repository struct + func NewRepository(c NewClient) *Repository + func (r *Repository) ListTree(baseUrl, token, ref string, pid int) ([]scm.TreeNode, error) + type RepositoryFile struct + func NewRepositoryFile(c NewClient) *RepositoryFile + func (r *RepositoryFile) GetRepository(baseUrl, token, filePath, ref string, pid int) (string, error) + type RepositoryFileInterface interface + GetFile func(pid interface{}, opt *gitlab.GetFileOptions, options ...gitlab.OptionFunc) (*gitlab.File, *gitlab.Response, error) + type RepositoryInterface interface + ListTree func(pid interface{}, opt *gitlab.ListTreeOptions, options ...gitlab.OptionFunc) ([]*gitlab.TreeNode, *gitlab.Response, error) + type Session struct + func NewSession(c NewClient) *Session + func (s *Session) GetId() int + func (s *Session) GetSession(baseUrl, username, password string) error + func (s *Session) GetToken() string + type SessionInterface interface + GetSession func(opt *gitlab.GetSessionOptions, options ...gitlab.OptionFunc) (*gitlab.Session, *gitlab.Response, error) + type TreeNode struct + type User struct + func NewUser(c NewClient) *User + func (s *User) GetUser(baseUrl, accessToken string) (*scm.User, error) + type UserInterface interface + CurrentUser func(options ...gitlab.OptionFunc) (*gitlab.User, *gitlab.Response, error)