Skip to content

Commit

Permalink
Add PermissionSchemeService
Browse files Browse the repository at this point in the history
Expand the PermissionScheme struct of ProjectService.

Add new PermissionSchemeService with functions Get and GetList.

Add corresponding mocks and tests.
  • Loading branch information
Matthias Weiss authored and ghostsquad committed May 14, 2019
1 parent f4bc07d commit b2bcdc9
Show file tree
Hide file tree
Showing 6 changed files with 2,264 additions and 20 deletions.
32 changes: 17 additions & 15 deletions jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,22 @@ type Client struct {
session *Session

// Services used for talking to different parts of the JIRA API.
Authentication *AuthenticationService
Issue *IssueService
Project *ProjectService
Board *BoardService
Sprint *SprintService
User *UserService
Group *GroupService
Version *VersionService
Priority *PriorityService
Field *FieldService
Component *ComponentService
Resolution *ResolutionService
StatusCategory *StatusCategoryService
Filter *FilterService
Role *RoleService
Authentication *AuthenticationService
Issue *IssueService
Project *ProjectService
Board *BoardService
Sprint *SprintService
User *UserService
Group *GroupService
Version *VersionService
Priority *PriorityService
Field *FieldService
Component *ComponentService
Resolution *ResolutionService
StatusCategory *StatusCategoryService
Filter *FilterService
Role *RoleService
PermissionScheme *PermissionSchemeService
}

// NewClient returns a new JIRA API client.
Expand Down Expand Up @@ -85,6 +86,7 @@ func NewClient(httpClient *http.Client, baseURL string) (*Client, error) {
c.StatusCategory = &StatusCategoryService{client: c}
c.Filter = &FilterService{client: c}
c.Role = &RoleService{client: c}
c.PermissionScheme = &PermissionSchemeService{client: c}

return c, nil
}
Expand Down
Loading

0 comments on commit b2bcdc9

Please sign in to comment.