Versions in this module Expand all Collapse all v0 v0.2.1 Nov 5, 2022 v0.2.0 Nov 5, 2022 v0.1.0 Nov 5, 2022 Changes in this version + var ErrNotFound = errors.New("received 404") + var ErrUnauthorized = errors.New("received 401") + func NewAuthenticatedJira(service, user string) (ticket.TicketSystem, error) + func NewJira(service, user string) ticket.TicketSystem + type ApplicationRoles struct + Callback Callback + Items []ApplicationRolesItem + MaxResults int64 + PagingCallback Callback + Size int64 + type ApplicationRolesItem struct + DefaultGroups []string + Defined bool + Groups []string + HasUnlimitedSeats bool + Key string + Name string + NumberOfSeats int64 + Platform bool + RemainingSeats int64 + SelectedByDefault bool + UserCount int64 + UserCountDescription string + type Attachment struct + Author AttachmentAuthor + Content string + Created string + Filename string + ID int64 + MIMEType string + MediaAPIFileID string + Self string + Size int64 + Thumbnail string + type AttachmentAuthor struct + AccountID string + AccountType string + Active bool + AvatarUrls AvatarUrls + DisplayName string + Key string + Name string + Self string + type AuthorElement struct + AccountID string + Active bool + DisplayName string + Self string + type AvatarUrls struct + The16X16 string + The24X24 string + The32X32 string + The48X48 string + type Backend interface + Call func(method, path, username, password string, body interface{}, v interface{}) (*http.Response, error) + func NewBackend(u string) Backend + type BackendImplementation struct + URL *url.URL + func (s *BackendImplementation) BasicAuth(username, password string) string + func (s *BackendImplementation) Call(method, path, username, password string, body interface{}, v interface{}) (*http.Response, error) + func (s *BackendImplementation) Do(req *http.Request, v interface{}) (*http.Response, error) + func (s *BackendImplementation) NewRequest(method, path, auth, contentType string, body interface{}) (*http.Request, error) + type Callback struct + type Comment struct + Author AuthorElement + Body Description + Created string + ID string + Self string + UpdateAuthor AuthorElement + Updated string + Visibility Visibility + type ContentContent struct + Text string + Type string + type Description struct + Content []DescriptionContent + Type string + Version int64 + type DescriptionContent struct + Content []ContentContent + Type string + type Groups struct + Callback Callback + Items []GroupsItem + MaxResults int64 + PagingCallback Callback + Size int64 + type GroupsItem struct + Name string + Self string + type Insight struct + LastIssueUpdateTime string + TotalIssueCount int64 + type InwardIssueFields struct + Status Status + type IssueBean struct + Expand string + Fields IssueBeanFields + ID string + Key string + Self string + func UnmarshalIssueBean(data []byte) (IssueBean, error) + func (r *IssueBean) Marshal() ([]byte, error) + type IssueBeanFields struct + Attachment []Attachment + Comment []Comment + Description Description + Issuelinks []Issuelink + Issuetype Issuetype + Project Project + SubTasks []Issuelink + Summary string + Updated int64 + Watcher Watcher + Worklog []Worklog + type IssueResource interface + GetIssue func(key string) (IssueBean, error) + type Issuelink struct + ID string + InwardIssue *WardIssue + OutwardIssue *WardIssue + Type Type + type Issuetype struct + AvatarID int64 + Description string + HierarchyLevel int64 + ID string + IconURL string + Name string + Self string + Subtask bool + type JiraClient interface + SaveToKeyring func(service, user string) error + func InitializeApiFromInit(email, domain, token string) JiraClient + func NewJiraClient(service, user string) (JiraClient, error) + type JiraCredentials struct + Domain string + Email string + Token string + type MyselfResource interface + GetCurrentUser func() (User, error) + type Project struct + AvatarUrls AvatarUrls + ID string + Insight Insight + Key string + Name string + ProjectCategory ProjectCategory + Self string + Simplified bool + Style string + type ProjectCategory struct + Description string + ID string + Name string + Self string + type Status struct + IconURL string + Name string + type Timetracking struct + OriginalEstimate string + OriginalEstimateSeconds int64 + RemainingEstimate string + RemainingEstimateSeconds int64 + TimeSpent string + TimeSpentSeconds int64 + type Type struct + ID string + Inward string + Name string + Outward string + type User struct + AccountID string + AccountType string + Active bool + ApplicationRoles ApplicationRoles + AvatarUrls AvatarUrls + DisplayName string + EmailAddress string + Expand string + Groups Groups + Key string + Locale string + Name string + Self string + TimeZone string + func UnmarshalUser(data []byte) (User, error) + func (r *User) Marshal() ([]byte, error) + type Visibility struct + Type string + Value string + type WardIssue struct + Fields InwardIssueFields + ID string + Key string + Self string + type Watcher struct + IsWatching bool + Self string + WatchCount int64 + Watchers []AuthorElement + type Worklog struct + Author AuthorElement + Comment Description + ID string + IssueID string + Self string + Started string + TimeSpent string + TimeSpentSeconds int64 + UpdateAuthor AuthorElement + Updated string + Visibility Visibility