jira

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package jira is a generated GoMock package.

Index

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) GetBoard

func (c *Client) GetBoard(name string) (*jira.Board, error)

GetBoard will return a single board given a name

func (*Client) GetBoardLayout

func (c *Client) GetBoardLayout(name string) ([]string, error)

GetBoardLayout will return what the columns are for a given board

func (*Client) GetBoards

func (c *Client) GetBoards() ([]jira.Board, error)

GetBoards will return the boards you can access

func (*Client) GetIssueCustomFields

func (c *Client) GetIssueCustomFields(issueID string) (jira.CustomFields, error)

GetIssueCustomFields returns all custom field data for a given Issue

func (*Client) GetIssues

func (c *Client) GetIssues(boardName, sprintName string) ([]jira.Issue, error)

GetIssues will return a list of issues for a given board and sprint

func (*Client) GetIssuesForBoard

func (c *Client) GetIssuesForBoard(boardName string) ([]jira.Issue, error)

GetIssuesForBoard will return a list of issues for a given board

func (*Client) GetSprints

func (c *Client) GetSprints(boardName string) ([]jira.Sprint, error)

GetSprints will return a list of sprints

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) GetBoard

func (m *MockAPI) GetBoard(name string) (*go_jira.Board, error)

GetBoard mocks base method

func (*MockAPI) GetBoardLayout

func (m *MockAPI) GetBoardLayout(name string) ([]string, error)

GetBoardLayout mocks base method

func (*MockAPI) GetBoards

func (m *MockAPI) GetBoards() ([]go_jira.Board, error)

GetBoards mocks base method

func (*MockAPI) GetIssueCustomFields

func (m *MockAPI) GetIssueCustomFields(issueID string) (go_jira.CustomFields, error)

GetIssueCustomFields mocks base method

func (*MockAPI) GetIssues

func (m *MockAPI) GetIssues(boardName, sprintName string) ([]go_jira.Issue, error)

GetIssues mocks base method

func (*MockAPI) GetIssuesForBoard

func (m *MockAPI) GetIssuesForBoard(boardName string) ([]go_jira.Issue, error)

GetIssuesForBoard mocks base method

func (*MockAPI) GetSprints

func (m *MockAPI) GetSprints(boardName string) ([]go_jira.Sprint, error)

GetSprints 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

Jump to

Keyboard shortcuts

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