Documentation ¶
Overview ¶
Package jira is a generated GoMock package.
Index ¶
- type API
- type Client
- func (c *Client) GetBoard(name string) (*jira.Board, error)
- func (c *Client) GetBoardLayout(name string) ([]string, error)
- func (c *Client) GetBoards() ([]jira.Board, error)
- func (c *Client) GetIssueCustomFields(issueID string) (jira.CustomFields, error)
- func (c *Client) GetIssues(boardName, sprintName string) ([]jira.Issue, error)
- func (c *Client) GetIssuesForBoard(boardName string) ([]jira.Issue, error)
- func (c *Client) GetSprints(boardName string) ([]jira.Sprint, error)
- type MockAPI
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetBoard(name string) (*go_jira.Board, error)
- func (m *MockAPI) GetBoardLayout(name string) ([]string, error)
- func (m *MockAPI) GetBoards() ([]go_jira.Board, error)
- func (m *MockAPI) GetIssueCustomFields(issueID string) (go_jira.CustomFields, error)
- func (m *MockAPI) GetIssues(boardName, sprintName string) ([]go_jira.Issue, error)
- func (m *MockAPI) GetIssuesForBoard(boardName string) ([]go_jira.Issue, error)
- func (m *MockAPI) GetSprints(boardName string) ([]go_jira.Sprint, error)
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) GetBoard(name interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetBoardLayout(name interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetBoards() *gomock.Call
- func (mr *MockAPIMockRecorder) GetIssueCustomFields(issueID interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetIssues(boardName, sprintName interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetIssuesForBoard(boardName interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetSprints(boardName interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { GetBoards() ([]jira.Board, error) GetBoard(name string) (*jira.Board, error) GetBoardLayout(name string) ([]string, error) GetSprints(boardName string) ([]jira.Sprint, error) GetIssues(boardName, sprintName string) ([]jira.Issue, error) GetIssuesForBoard(boardName string) ([]jira.Issue, error) GetIssueCustomFields(issueID string) (jira.CustomFields, error) }
API defines the interface
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the concrete implementation of the API interface
func NewClient ¶
func NewClient() Client
NewClient will return a new internal jira client. This only defines what the application uses
func (*Client) GetBoardLayout ¶
GetBoardLayout will return what the columns are for a given board
func (*Client) GetIssueCustomFields ¶
func (c *Client) GetIssueCustomFields(issueID string) (jira.CustomFields, error)
GetIssueCustomFields returns all custom field data for a given Issue
func (*Client) GetIssuesForBoard ¶
GetIssuesForBoard will return a list of issues for a given board
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAPI) GetBoardLayout ¶
GetBoardLayout mocks base method
func (*MockAPI) GetIssueCustomFields ¶
func (m *MockAPI) GetIssueCustomFields(issueID string) (go_jira.CustomFields, error)
GetIssueCustomFields mocks base method
func (*MockAPI) GetIssuesForBoard ¶
GetIssuesForBoard mocks base method
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI
func (*MockAPIMockRecorder) GetBoard ¶
func (mr *MockAPIMockRecorder) GetBoard(name interface{}) *gomock.Call
GetBoard indicates an expected call of GetBoard
func (*MockAPIMockRecorder) GetBoardLayout ¶
func (mr *MockAPIMockRecorder) GetBoardLayout(name interface{}) *gomock.Call
GetBoardLayout indicates an expected call of GetBoardLayout
func (*MockAPIMockRecorder) GetBoards ¶
func (mr *MockAPIMockRecorder) GetBoards() *gomock.Call
GetBoards indicates an expected call of GetBoards
func (*MockAPIMockRecorder) GetIssueCustomFields ¶
func (mr *MockAPIMockRecorder) GetIssueCustomFields(issueID interface{}) *gomock.Call
GetIssueCustomFields indicates an expected call of GetIssueCustomFields
func (*MockAPIMockRecorder) GetIssues ¶
func (mr *MockAPIMockRecorder) GetIssues(boardName, sprintName interface{}) *gomock.Call
GetIssues indicates an expected call of GetIssues
func (*MockAPIMockRecorder) GetIssuesForBoard ¶
func (mr *MockAPIMockRecorder) GetIssuesForBoard(boardName interface{}) *gomock.Call
GetIssuesForBoard indicates an expected call of GetIssuesForBoard
func (*MockAPIMockRecorder) GetSprints ¶
func (mr *MockAPIMockRecorder) GetSprints(boardName interface{}) *gomock.Call
GetSprints indicates an expected call of GetSprints