Documentation
¶
Overview ¶
Package api handle api layer
Index ¶
- type Board
- type BoardsResponse
- type Client
- type EmptyResponse
- type Issue
- type IssueAssignee
- type IssueComponent
- type IssueFields
- type IssueFixVersion
- type IssueStatus
- type MockClient
- func (c MockClient) GetActiveSprint(boardID string) (Sprint, error)
- func (c MockClient) GetBoards(projectID string) (BoardsResponse, error)
- func (c MockClient) GetProjects() (ProjectResponse, error)
- func (c MockClient) GetSprintIssues(sprintID int) (SprintIssuesResponse, error)
- func (c MockClient) GetSprints(boardID string) (SprintsResponse, error)
- type Project
- type ProjectResponse
- type RealClient
- func (c *RealClient) Do(method string, path string, body io.Reader) (*http.Response, error)
- func (c RealClient) GetActiveSprint(boardID string) (Sprint, error)
- func (c RealClient) GetBoards(projectID string) (BoardsResponse, error)
- func (c RealClient) GetProjects() (ProjectResponse, error)
- func (c RealClient) GetSprintIssues(sprintID int) (SprintIssuesResponse, error)
- func (c RealClient) GetSprints(boardID string) (SprintsResponse, error)
- type Sprint
- type SprintIssuesResponse
- type SprintsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardsResponse ¶
type Client ¶
type Client interface {
GetProjects() (ProjectResponse, error)
GetBoards(projectID string) (BoardsResponse, error)
GetSprints(boardID string) (SprintsResponse, error)
GetActiveSprint(boardID string) (Sprint, error)
GetSprintIssues(sprintID int) (SprintIssuesResponse, error)
}
func NewMockClient ¶
type EmptyResponse ¶
type EmptyResponse struct{}
type Issue ¶
type Issue struct {
ID string `json:"id"`
Fields IssueFields `json:"fields"`
}
type IssueAssignee ¶
type IssueComponent ¶
type IssueFields ¶
type IssueFields struct {
Assignee IssueAssignee `json:"assignee"`
Status IssueStatus `json:"status"`
Summary string `json:"summary"`
Description string `json:"description"`
Sprint Sprint `json:"sprint"`
FixVersions []IssueFixVersion `json:"fixVersions"`
StoryPoints float32 `json:"customfield_10024"`
Components []IssueComponent `json:"components"`
}
type IssueFixVersion ¶
type IssueStatus ¶
type IssueStatus struct {
Name string `json:"name"`
}
type MockClient ¶
type MockClient struct {
BasePath string
}
func (MockClient) GetActiveSprint ¶
func (c MockClient) GetActiveSprint(boardID string) (Sprint, error)
func (MockClient) GetBoards ¶
func (c MockClient) GetBoards(projectID string) (BoardsResponse, error)
func (MockClient) GetProjects ¶
func (c MockClient) GetProjects() (ProjectResponse, error)
func (MockClient) GetSprintIssues ¶
func (c MockClient) GetSprintIssues(sprintID int) (SprintIssuesResponse, error)
func (MockClient) GetSprints ¶
func (c MockClient) GetSprints(boardID string) (SprintsResponse, error)
type ProjectResponse ¶
type RealClient ¶
type RealClient struct {
// contains filtered or unexported fields
}
func (RealClient) GetActiveSprint ¶
func (c RealClient) GetActiveSprint(boardID string) (Sprint, error)
func (RealClient) GetBoards ¶
func (c RealClient) GetBoards(projectID string) (BoardsResponse, error)
func (RealClient) GetProjects ¶
func (c RealClient) GetProjects() (ProjectResponse, error)
func (RealClient) GetSprintIssues ¶
func (c RealClient) GetSprintIssues(sprintID int) (SprintIssuesResponse, error)
func (RealClient) GetSprints ¶
func (c RealClient) GetSprints(boardID string) (SprintsResponse, error)
type SprintIssuesResponse ¶
type SprintIssuesResponse struct {
Issues []Issue `json:"issues"`
}
type SprintsResponse ¶
Click to show internal directories.
Click to hide internal directories.