client

package
v0.0.0-...-1f04c9c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdaptorInterface

type AdaptorInterface interface {
	GetAllBoards(*jira.BoardListOptions) (*jira.BoardsList, *jira.Response, error)
	SearchIssuesWithContext(context.Context, string, *jira.SearchOptions) ([]jira.Issue, *jira.Response, error)
}

type Client

type Client struct {
	Config *config.JiraConfig
	// contains filtered or unexported fields
}

func (*Client) DashboardBytes

func (c *Client) DashboardBytes() ([]byte, error)

func (*Client) GetAllBoards

func (c *Client) GetAllBoards(opt *jira.BoardListOptions) (*jira.BoardsList, *jira.Response, error)

func (*Client) IssueIterator

func (c *Client) IssueIterator(opts IssueIteratorOptions) (IssueIteratorInterface, error)

func (*Client) ProjectBytes

func (c *Client) ProjectBytes() ([]byte, error)

type ClientInterface

type ClientInterface interface {
	IssueIterator(opts IssueIteratorOptions) (IssueIteratorInterface, error)
	GetAllBoards(opt *jira.BoardListOptions) (*jira.BoardsList, *jira.Response, error)
	DashboardBytes() ([]byte, error)
	ProjectBytes() ([]byte, error)
}

func NewClient

func NewClient(cfg *config.JiraConfig, opts ...Option) (ClientInterface, error)

type FakeAdaptor

type FakeAdaptor struct {
	// contains filtered or unexported fields
}

func (*FakeAdaptor) GetAllBoards

func (a *FakeAdaptor) GetAllBoards(opt *jira.BoardListOptions) (*jira.BoardsList, *jira.Response, error)

func (*FakeAdaptor) SearchIssuesWithContext

func (a *FakeAdaptor) SearchIssuesWithContext(ctx context.Context, jql string, options *jira.SearchOptions) ([]jira.Issue, *jira.Response, error)

type IssueIterator

type IssueIterator struct {
	// contains filtered or unexported fields
}

func (*IssueIterator) Next

func (it *IssueIterator) Next(ctx context.Context) (*jira.Issue, error)

type IssueIteratorInterface

type IssueIteratorInterface interface {
	Next(ctx context.Context) (*jira.Issue, error)
}

type IssueIteratorOptions

type IssueIteratorOptions struct {
	Query    string
	Expand   string
	PageSize int
}

type Option

type Option func(*Client)

func InjectJiraAdaptorOption

func InjectJiraAdaptorOption(adaptor AdaptorInterface) Option

Jump to

Keyboard shortcuts

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