Versions in this module Expand all Collapse all v0 v0.11.0 Jan 19, 2023 v0.10.0 Sep 2, 2022 Changes in this version + type Config struct + Session auth.SessionConfig + URL string + type Instance interface + GetIssues func(ctx context.Context, token *Token, jql string, startAt, maxResults int) ([]jira.Issue, int, error) + GetName func() string + GetProjects func(ctx context.Context, token *Token) (*jira.ProjectList, error) + GetSelf func(ctx context.Context, token *Token) (*jira.User, error) + GetURL func() string + TokenFromCookie func(r *http.Request) (*Token, error) + TokenToCookie func(token *Token) (*http.Cookie, error) + func New(name string, options map[string]any) (Instance, error) + type MockInstance struct + func NewMockInstance(t NewMockInstanceT) *MockInstance + func (_m *MockInstance) GetIssues(ctx context.Context, token *Token, jql string, startAt int, maxResults int) ([]jira.Issue, int, error) + func (_m *MockInstance) GetName() string + func (_m *MockInstance) GetProjects(ctx context.Context, token *Token) (*jira.ProjectList, error) + func (_m *MockInstance) GetSelf(ctx context.Context, token *Token) (*jira.User, error) + func (_m *MockInstance) GetURL() string + func (_m *MockInstance) TokenFromCookie(r *http.Request) (*Token, error) + func (_m *MockInstance) TokenToCookie(token *Token) (*http.Cookie, error) + type NewMockInstanceT interface + Cleanup func(func()) + type Token struct + Email string + Token string