fake

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (c *Client) SetBaseURL(urlStr string) error

func (*Client) User

func (c *Client) User() gitlab.UserInterface

type GroupsService

type GroupsService struct {
	mock.Mock
}

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

type ProjectsService struct {
	mock.Mock
}

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

type RepositoriesService struct {
	mock.Mock
}

func (*RepositoriesService) ListTree

func (c *RepositoriesService) ListTree(pid interface{}, opt *gitlab.ListTreeOptions, options ...gitlab.OptionFunc) ([]*gitlab.TreeNode, *gitlab.Response, error)

type RepositoryFilesService

type RepositoryFilesService struct {
	mock.Mock
}

func (*RepositoryFilesService) GetFile

func (c *RepositoryFilesService) GetFile(pid interface{}, opt *gitlab.GetFileOptions, options ...gitlab.OptionFunc) (*gitlab.File, *gitlab.Response, error)

type SessionService

type SessionService struct {
	mock.Mock
}

func (*SessionService) GetSession

func (c *SessionService) GetSession(opt *gitlab.GetSessionOptions, options ...gitlab.OptionFunc) (*gitlab.Session, *gitlab.Response, error)

type UsersService

type UsersService struct {
	mock.Mock
}

func (*UsersService) CurrentUser

func (c *UsersService) CurrentUser(options ...gitlab.OptionFunc) (*gitlab.User, *gitlab.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL