Documentation
¶
Index ¶
- Variables
- type Attachment
- type AttachmentInfo
- type AttributeInfo
- type Category
- type ChangeLog
- type Comment
- type Date
- type DiskUsage
- type Error
- type Errors
- type Hours
- type Issue
- type IssueType
- type Milestone
- type Notification
- type NotificationInfo
- type NulabAccount
- type Priority
- type Project
- type ProjectStatus
- type PullRequest
- type Repository
- type Resolution
- type SharedFile
- type Space
- type Star
- type Status
- type Tag
- type TotalDiskUsage
- type User
- type Version
- type Wiki
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInternal = errors.New("internal error") ErrorLicense = errors.New("license error") ErrorLicenseExpired = errors.New("license expired error") ErrorAccessDenied = errors.New("access denied error") ErrorNoResource = errors.New("no resource error") ErrorInvalidRequest = errors.New("invalid request error") ErrorSpaceOverCapacity = errors.New(" space over capacity error") ErrorResourceOverflow = errors.New("resource overflow error") ErrorTooLargeFile = errors.New("too large file error") ErrorAuthentication = errors.New("authentication error") ErrorUnexpected = errors.New("unexpected error") )
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type AttachmentInfo ¶
type AttributeInfo ¶ added in v0.3.0
type ChangeLog ¶
type ChangeLog struct {
Field string `json:"field"`
NewValue *string `json:"newValue"`
OriginalValue *string `json:"originalValue"`
AttachmentInfo *AttachmentInfo `json:"attachmentInfo"`
AttributeInfo *AttributeInfo `json:"attributeInfo"`
NotificationInfo *NotificationInfo `json:"notificationInfo"`
}
type Comment ¶
type Comment struct {
Id int64 `json:"id"`
Content string `json:"content"`
ChangeLog []*ChangeLog `json:"changeLog"`
CreatedUser *User `json:"createdUser"`
Created *Date `json:"created"`
Updated *Date `json:"updated"`
Stars []*Star `json:"stars"`
Notifications []*Notification `json:"notifications"`
}
type Errors ¶
type Errors struct {
Errors []Error `json:"errors"`
}
type Issue ¶
type Issue struct {
Id int64 `json:"id"`
ProjectId *int64 `json:"projectId"`
IssueKey string `json:"issueKey"`
KeyId int64 `json:"keyId"`
IssueType *IssueType `json:"issueType"`
Summary string `json:"summary"`
Description string `json:"description"`
Resolution *Resolution `json:"resolution"`
Priority *Priority `json:"priority"`
Status *ProjectStatus `json:"status"`
Assignee *User `json:"assignee"`
Category []*Category `json:"category"`
Versions []*Version `json:"versions"`
Milestone []*Milestone `json:"milestone"`
StartDate *Date `json:"startDate"`
DueDate *Date `json:"dueDate"`
EstimatedHours *Hours `json:"estimatedHours"`
ActualHours *Hours `json:"actualHours"`
ParentIssueId *int64 `json:"parentIssueId"`
CreatedUser *User `json:"createdUser"`
Created *Date `json:"created"`
UpdatedUser *User `json:"updatedUser"`
Updated *Date `json:"updated"`
CustomFields []interface{} `json:"customFields"`
Attachments []Attachment `json:"attachments"`
Stars []*Star `json:"stars"`
}
type Notification ¶
type Notification struct {
Id int64 `json:"id"`
AlreadyRead bool `json:"alreadyRead"`
Reason int `json:"reason"`
ResourceAlreadyRead bool `json:"resourceAlreadyRead"`
Project Project `json:"project"`
Issue Issue `json:"issue"`
Comment Comment `json:"comment"`
PullRequest PullRequest `json:"pullRequest"`
PullRequestComment Comment `json:"pullRequestComment"`
Sender User `json:"sender"`
Created Date `json:"created"`
}
type NotificationInfo ¶
type NotificationInfo struct {
Type string `json:"type"`
}
type NulabAccount ¶
type Project ¶
type Project struct {
Id int64 `json:"id"`
ProjectKey string `json:"projectKey"`
Name string `json:"name"`
ChartEnabled bool `json:"chartEnabled"`
SubtaskingEnabled bool `json:"subtaskingEnabled"`
ProjectLeaderCanEditProjectLeader bool `json:"projectLeaderCanEditProjectLeader"`
TextFormattingRule string `json:"textFormattingRule"`
Archived bool `json:"archived"`
}
type ProjectStatus ¶
type PullRequest ¶
type PullRequest struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
RepositoryId int64 `json:"repositoryID"`
Number int `json:"number"`
Summary string `json:"summary"`
Description string `json:"description"`
Base string `json:"base"`
Branch string `json:"branch"`
Status *Status `json:"status"`
Assignee *User `json:"assignee"`
Issue *Issue `json:"issue"`
BaseCommit string `json:"baseCommit"`
BranchCommit string `json:"branchCommit"`
CloseAt *Date `json:"closeAt"`
MergeAt *Date `json:"mergeAt"`
CreatedUser *User `json:"createdUser"`
Created *Date `json:"created"`
UpdatedUser *User `json:"updatedUser"`
Updated *Date `json:"update"`
}
PullRequest represents the pull request.
func (*PullRequest) EncodeQuery ¶ added in v0.2.0
func (p *PullRequest) EncodeQuery() url.Values
type Repository ¶
type Repository struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
Name string `json:"name"`
Description string `json:"description"`
HookURL *string `json:"hookUrl"`
HTTPURL string `json:"httpUrl"`
SSHURL string `json:"sshUrl"`
DisplayOrder int `json:"displayOrder"`
PushedAt *Date `json:"pushedAt"`
CreatedUser *User `json:"createdUser"`
Created *Date `json:"created"`
UpdatedUser *User `json:"createdUser"`
Updated *Date `json:"created"`
}
Repository represents the git repository.
type Resolution ¶
type SharedFile ¶
type SharedFile struct {
}
type Space ¶
type Space struct {
SpaceKey string `json:"spaceKey"`
Name string `json:"name"`
OwnerId int64 `json:"ownerId"`
Lang string `json:"lang"`
ReportSendTime string `json:"reportSendTime"`
TextFormatingRule string `json:"textFormattingRule"`
Timezone string `json:"timezone"`
Created *Date `json:"created"`
Updated *Date `json:"updated"`
}
type TotalDiskUsage ¶ added in v0.6.0
type Wiki ¶
type Wiki struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
Name string `json:"name"`
Content string `json:"content"`
Tags []*Tag `json:"tags"`
Attachments []*Attachment `json:"attachment"`
Stars []*Star `json:"stars"`
CreatedUser *User `json:"createdUser"`
Created *Date `json:"created"`
UpdatedUser *User `json:"updatedUser"`
Updated *Date `json:"updated"`
}
Source Files
¶
- attachment.go
- attachmentinfo.go
- attributeinfo.go
- category.go
- changelog.go
- comment.go
- date.go
- diskusage.go
- errors.go
- hours.go
- issue.go
- issuetype.go
- milestone.go
- notification.go
- notificationinfo.go
- nulabaccount.go
- priority.go
- project.go
- projectstatus.go
- pullrequest.go
- repository.go
- resolution.go
- sharedfile.go
- space.go
- star.go
- status.go
- tag.go
- user.go
- version.go
- wiki.go
Click to show internal directories.
Click to hide internal directories.