Documentation ¶
Index ¶
- func NewClient(url, token string) (client gitlab.ClientInterface)
- type Client
- func (c *Client) Group() gitlab.GroupInterface
- func (c *Client) GroupMember() gitlab.GroupMemberInterface
- func (c *Client) Project() gitlab.ProjectInterface
- func (c *Client) ProjectMember() gitlab.ProjectMemberInterface
- func (c *Client) Repository() gitlab.RepositoryInterface
- func (c *Client) RepositoryFile() gitlab.RepositoryFileInterface
- func (c *Client) Session() gitlab.SessionInterface
- func (c *Client) SetBaseURL(urlStr string) error
- func (c *Client) User() gitlab.UserInterface
- type GroupsService
- func (c *GroupsService) GetGroup(gid interface{}, options ...gitlab.OptionFunc) (*gitlab.Group, *gitlab.Response, error)
- func (c *GroupsService) ListGroupMembers(gid interface{}, opt *gitlab.ListGroupMembersOptions, ...) ([]*gitlab.GroupMember, *gitlab.Response, error)
- func (c *GroupsService) ListGroupProjects(gid interface{}, opt *gitlab.ListGroupProjectsOptions, ...) ([]*gitlab.Project, *gitlab.Response, error)
- func (c *GroupsService) ListGroups(opt *gitlab.ListGroupsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Group, *gitlab.Response, error)
- type ProjectsService
- func (c *ProjectsService) GetProject(pid interface{}, options ...gitlab.OptionFunc) (*gitlab.Project, *gitlab.Response, error)
- func (c *ProjectsService) GetProjectMember(pid interface{}, user int, options ...gitlab.OptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error)
- func (c *ProjectsService) ListProjects(opt *gitlab.ListProjectsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Project, *gitlab.Response, error)
- type RepositoriesService
- type RepositoryFilesService
- type SessionService
- type UsersService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(url, token string) (client gitlab.ClientInterface)
Types ¶
type Client ¶
type Client struct { mock.Mock GroupsService *GroupsService ProjectsService *ProjectsService RepositoriesService *RepositoriesService RepositoryFilesService *RepositoryFilesService SessionService *SessionService UsersService *UsersService }
func (*Client) Group ¶
func (c *Client) Group() gitlab.GroupInterface
func (*Client) GroupMember ¶
func (c *Client) GroupMember() gitlab.GroupMemberInterface
func (*Client) Project ¶
func (c *Client) Project() gitlab.ProjectInterface
func (*Client) ProjectMember ¶
func (c *Client) ProjectMember() gitlab.ProjectMemberInterface
func (*Client) Repository ¶
func (c *Client) Repository() gitlab.RepositoryInterface
func (*Client) RepositoryFile ¶
func (c *Client) RepositoryFile() gitlab.RepositoryFileInterface
func (*Client) Session ¶
func (c *Client) Session() gitlab.SessionInterface
func (*Client) SetBaseURL ¶
func (*Client) User ¶
func (c *Client) User() gitlab.UserInterface
type GroupsService ¶
func (*GroupsService) GetGroup ¶
func (c *GroupsService) GetGroup(gid interface{}, options ...gitlab.OptionFunc) (*gitlab.Group, *gitlab.Response, error)
func (*GroupsService) ListGroupMembers ¶
func (c *GroupsService) ListGroupMembers(gid interface{}, opt *gitlab.ListGroupMembersOptions, options ...gitlab.OptionFunc) ([]*gitlab.GroupMember, *gitlab.Response, error)
func (*GroupsService) ListGroupProjects ¶
func (c *GroupsService) ListGroupProjects(gid interface{}, opt *gitlab.ListGroupProjectsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Project, *gitlab.Response, error)
func (*GroupsService) ListGroups ¶
func (c *GroupsService) ListGroups(opt *gitlab.ListGroupsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Group, *gitlab.Response, error)
type ProjectsService ¶
func (*ProjectsService) GetProject ¶
func (c *ProjectsService) GetProject(pid interface{}, options ...gitlab.OptionFunc) (*gitlab.Project, *gitlab.Response, error)
func (*ProjectsService) GetProjectMember ¶
func (c *ProjectsService) GetProjectMember(pid interface{}, user int, options ...gitlab.OptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error)
func (*ProjectsService) ListProjects ¶
func (c *ProjectsService) ListProjects(opt *gitlab.ListProjectsOptions, options ...gitlab.OptionFunc) ([]*gitlab.Project, *gitlab.Response, error)
type RepositoriesService ¶
func (*RepositoriesService) ListTree ¶
func (c *RepositoriesService) ListTree(pid interface{}, opt *gitlab.ListTreeOptions, options ...gitlab.OptionFunc) ([]*gitlab.TreeNode, *gitlab.Response, error)
type RepositoryFilesService ¶
func (*RepositoryFilesService) GetFile ¶
func (c *RepositoryFilesService) GetFile(pid interface{}, opt *gitlab.GetFileOptions, options ...gitlab.OptionFunc) (*gitlab.File, *gitlab.Response, error)
type SessionService ¶
func (*SessionService) GetSession ¶
func (c *SessionService) GetSession(opt *gitlab.GetSessionOptions, options ...gitlab.OptionFunc) (*gitlab.Session, *gitlab.Response, error)
type UsersService ¶
func (*UsersService) CurrentUser ¶
func (c *UsersService) CurrentUser(options ...gitlab.OptionFunc) (*gitlab.User, *gitlab.Response, error)
Click to show internal directories.
Click to hide internal directories.