Documentation ¶
Index ¶
- Constants
- type Client
- 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
- type Group
- type GroupInterface
- type GroupMember
- type GroupMemberInterface
- type NewClient
- type 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
- type ProjectMember
- type ProjectMemberInterface
- type Repository
- type RepositoryFile
- type RepositoryFileInterface
- type RepositoryInterface
- type Session
- type SessionInterface
- type TreeNode
- type User
- type UserInterface
Constants ¶
View Source
const (
ApiVersion = "/api/v3"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*gitlab.Client
}
func (*Client) Group ¶
func (c *Client) Group() GroupInterface
func (*Client) GroupMember ¶
func (c *Client) GroupMember() GroupMemberInterface
func (*Client) Project ¶
func (c *Client) Project() ProjectInterface
func (*Client) ProjectMember ¶
func (c *Client) ProjectMember() ProjectMemberInterface
func (*Client) Repository ¶
func (c *Client) Repository() RepositoryInterface
func (*Client) RepositoryFile ¶
func (c *Client) RepositoryFile() RepositoryFileInterface
func (*Client) Session ¶
func (c *Client) Session() SessionInterface
func (*Client) User ¶
func (c *Client) User() UserInterface
type ClientInterface ¶
type ClientInterface interface { SetBaseURL(baseUrl string) error Session() SessionInterface Group() GroupInterface GroupMember() GroupMemberInterface Project() ProjectInterface ProjectMember() ProjectMemberInterface RepositoryFile() RepositoryFileInterface Repository() RepositoryInterface User() UserInterface }
type GroupInterface ¶
type GroupInterface interface { ListGroups(opt *gitlab.ListGroupsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Group, *gitlab.Response, error) GetGroup(gid interface{}, options ...gitlab.OptionFunc) (*gitlab.Group, *gitlab.Response, error) ListGroupProjects(gid interface{}, opt *gitlab.ListGroupProjectsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Project, *gitlab.Response, error) }
type GroupMember ¶
type GroupMember struct { scm.GroupMember // contains filtered or unexported fields }
func NewGroupMember ¶
func NewGroupMember(c NewClient) *GroupMember
func (*GroupMember) GetGroupMember ¶
func (gm *GroupMember) GetGroupMember(token, baseUrl string, gid, uid int) (*scm.GroupMember, error)
func (*GroupMember) ListGroupMembers ¶
func (gm *GroupMember) ListGroupMembers(token, baseUrl string, gid, uid int) (int, error)
type GroupMemberInterface ¶
type GroupMemberInterface interface {
ListGroupMembers(gid interface{}, opt *gitlab.ListGroupMembersOptions, options ...gitlab.OptionFunc) ([]*gitlab.GroupMember, *gitlab.Response, error)
}
type NewClient ¶
type NewClient func(url, token string) ClientInterface
type Project ¶
func NewProject ¶
func (*Project) GetGroupId ¶
func (*Project) GetProject ¶
func (*Project) ListProjects ¶
type ProjectInterface ¶
type ProjectMember ¶
type ProjectMember struct { scm.ProjectMember // contains filtered or unexported fields }
func NewProjectMember ¶
func NewProjectMember(c NewClient) *ProjectMember
func (*ProjectMember) GetProjectMember ¶
func (p *ProjectMember) GetProjectMember(token, baseUrl string, pid, uid, gid int) (scm.ProjectMember, error)
type ProjectMemberInterface ¶
type Repository ¶
func NewRepository ¶
func NewRepository(c NewClient) *Repository
type RepositoryFile ¶
func NewRepositoryFile ¶
func NewRepositoryFile(c NewClient) *RepositoryFile
func (*RepositoryFile) GetRepository ¶
func (r *RepositoryFile) GetRepository(baseUrl, token, filePath, ref string, pid int) (string, error)
type RepositoryFileInterface ¶
type RepositoryFileInterface interface {
GetFile(pid interface{}, opt *gitlab.GetFileOptions, options ...gitlab.OptionFunc) (*gitlab.File, *gitlab.Response, error)
}
type RepositoryInterface ¶
type RepositoryInterface interface {
ListTree(pid interface{}, opt *gitlab.ListTreeOptions, options ...gitlab.OptionFunc) ([]*gitlab.TreeNode, *gitlab.Response, error)
}
type SessionInterface ¶
type SessionInterface interface {
GetSession(opt *gitlab.GetSessionOptions, options ...gitlab.OptionFunc) (*gitlab.Session, *gitlab.Response, error)
}
type UserInterface ¶
type UserInterface interface {
CurrentUser(options ...gitlab.OptionFunc) (*gitlab.User, *gitlab.Response, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.