Documentation ¶
Index ¶
- type Remote
- func (_m *Remote) AddIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int, ...) error
- func (_m *Remote) DelHook(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 string) error
- func (_m *Remote) GetComments(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 int) ([]*model.Comment, error)
- func (_m *Remote) GetContents(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 string) ([]byte, error)
- func (_m *Remote) GetHook(c context.Context, r *http.Request) (*model.Hook, error)
- func (_m *Remote) GetIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int) ([]string, error)
- func (_m *Remote) GetMembers(c context.Context, _a0 *model.User, _a1 string) ([]*model.Member, error)
- func (_m *Remote) GetPerm(c context.Context, _a0 *model.User, _a1 string, _a2 string) (*model.Perm, error)
- func (_m *Remote) GetRepo(c context.Context, _a0 *model.User, _a1 string, _a2 string) (*model.Repo, error)
- func (_m *Remote) GetRepos(c context.Context, _a0 *model.User) ([]*model.Repo, error)
- func (_m *Remote) GetReviews(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 int) ([]*model.Review, error)
- func (_m *Remote) GetTeams(c context.Context, _a0 *model.User) ([]*model.Team, error)
- func (_m *Remote) GetUser(c context.Context, _a0 http.ResponseWriter, _a1 *http.Request) (*model.User, error)
- func (_m *Remote) GetUserToken(c context.Context, _a0 string) (string, error)
- func (_m *Remote) RemoveIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int, ...) error
- func (_m *Remote) SetHook(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 string) error
- func (_m *Remote) SetStatus(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 int, _a3 int, _a4 int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Remote ¶
Remote is an autogenerated mock type for the Remote type
func (*Remote) AddIssueLabels ¶
func (_m *Remote) AddIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int, lables []string) error
AddIssueLabels provides a mock function with given fields: user, repo, number, lables
func (*Remote) GetComments ¶
func (_m *Remote) GetComments(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 int) ([]*model.Comment, error)
GetComments provides a mock function with given fields: _a0, _a1, _a2
func (*Remote) GetContents ¶
func (_m *Remote) GetContents(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 string) ([]byte, error)
GetContents provides a mock function with given fields: _a0, _a1, _a2
func (*Remote) GetIssueLabels ¶
func (_m *Remote) GetIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int) ([]string, error)
GetIssueLabels get all the labels of an issue
func (*Remote) GetMembers ¶
func (_m *Remote) GetMembers(c context.Context, _a0 *model.User, _a1 string) ([]*model.Member, error)
GetMembers provides a mock function with given fields: _a0, _a1
func (*Remote) GetPerm ¶
func (_m *Remote) GetPerm(c context.Context, _a0 *model.User, _a1 string, _a2 string) (*model.Perm, error)
GetPerm provides a mock function with given fields: _a0, _a1, _a2
func (*Remote) GetRepo ¶
func (_m *Remote) GetRepo(c context.Context, _a0 *model.User, _a1 string, _a2 string) (*model.Repo, error)
GetRepo provides a mock function with given fields: _a0, _a1, _a2
func (*Remote) GetReviews ¶
func (_m *Remote) GetReviews(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 int) ([]*model.Review, error)
GetReviews provides a mock function with given fields: _a0
func (*Remote) GetUser ¶
func (_m *Remote) GetUser(c context.Context, _a0 http.ResponseWriter, _a1 *http.Request) (*model.User, error)
GetUser provides a mock function with given fields: _a0, _a1
func (*Remote) GetUserToken ¶
GetUserToken provides a mock function with given fields: _a0
func (*Remote) RemoveIssueLabels ¶
func (_m *Remote) RemoveIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int, labels []string) error
RemoveIssueLabels provides a mock function with given fields: user, repo, number, labels