types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Id          uint64 `json:"id"`
	Name        string `json:"name"`
	Size        int    `json:"size"`
	CreatedUser User   `json:"createdUser"`
	Created     Date   `json:"created"`
	UpdatedUser User   `json:"updatedUser"`
	Updated     Date   `json:"updated"`
}

type AttachmentInfo

type AttachmentInfo struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type Category

type Category struct {
	Id           int    `json:"id"`
	Name         string `json:"name"`
	DisplayOrder int    `json:"displayOrder"`
}

type ChangeLog

type ChangeLog struct {
	Field            string           `json:"field"`
	NewValue         string           `json:"newValue"`
	OriginalValue    string           `json:"originalValue"`
	AttachmentInfo   AttachmentInfo   `json:"attachmentInfo"`
	AttributeInfo    string           `json:"attributeInfo"`
	NotificationInfo NotificationInfo `json:"notificationInfo"`
}

type Comment

type Comment struct {
	Id            uint64         `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 Date

type Date string

func NewDate added in v0.1.0

func NewDate(s string) *Date

func (*Date) String added in v0.1.0

func (d *Date) String() string

func (*Date) Time

func (d *Date) Time() time.Time

type Error

type Error struct {
	Message  string `json:"message"`
	Code     int    `json:"code"`
	MoreInfo string `json:"moreInfo"`
}

func (Error) Error

func (e Error) Error() string

type Errors

type Errors struct {
	Errors []Error `json:"errors"`
}

type Hours added in v0.1.0

type Hours float64

func NewHours added in v0.1.0

func NewHours(f float64) *Hours

func (*Hours) String added in v0.1.0

func (h *Hours) String() string

type Issue

type Issue struct {
	Id             uint64         `json:"id"`
	ProjectId      *uint64        `json:"projectId"`
	IssueKey       string         `json:"issueKey"`
	KeyId          uint64         `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  *uint64        `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"`
	SharedFiles    []*SharedFile  `json:"sharedFiles"`
	Stars          []*Star        `json:"stars"`
}

type IssueType

type IssueType struct {
	Id           uint64 `json:"id"`
	ProjectId    uint64 `json:"projectId"`
	Name         string `json:"name"`
	Color        string `json:"color"`
	DisplayOrder int    `json:"displayOrder"`
}

type Milestone

type Milestone struct {
	Id             int    `json:"id"`
	ProjectId      int    `json:"projectId"`
	Name           string `json:"name"`
	Description    string `json:"description"`
	StartDate      Date   `json:"startDate"`
	ReleaseDueDate Date   `json:"releaseDueDate"`
	Archived       bool   `json:"archived"`
	DisplayOrder   int    `json:"displayOrder"`
}

type Notification

type Notification struct {
	Id                  uint64      `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 NulabAccount struct {
	NulabId  string `json:"nulabId"`
	Name     string `json:"name"`
	UniqueId string `json:"uniqueId"`
}

type Priority

type Priority struct {
	Id   uint64 `json:"id"`
	Name string `json:"name"`
}

type Project

type Project struct {
	Id                                uint64 `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 ProjectStatus struct {
	Id           uint64 `json:"id"`
	ProjectId    uint64 `json:"projectId"`
	Name         string `json:"name"`
	Color        string `json:"color"`
	DisplayOrder int64  `json:"displayOrder"`
}

type PullRequest

type PullRequest struct {
	Id           uint64  `json:"id"`
	ProjectId    uint64  `json:"projectId"`
	RepositoryId uint64  `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      *string `json:"closeAt"`
	MergeAt      string  `json:"mergeAt"`
	CreatedUser  User    `json:"createdUser"`
	Created      Date    `json:"created"`
	UpdatedUser  User    `json:"updatedUser"`
	Updated      Date    `json:"update"`
}

PullRequest represents the pull request.

type Repository

type Repository struct {
	Id           uint64  `json:"id"`
	ProjectId    uint64  `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 Resolution struct {
	Id   uint64 `json:"id"`
	Name string `json:"name"`
}

type SharedFile

type SharedFile struct {
	Id          uint64 `json:"id"`
	Type        string `json:"type"`
	Dir         string `json:"dir"`
	Name        string `json:"name"`
	Size        int    `json:"size"`
	CreatedUser User   `json:"createdUser"`
	Created     Date   `json:"created"`
	UpdatedUser User   `json:"updatedUser"`
	Updated     Date   `json:"updated"`
}

type Space

type Space struct {
	SpaceKey          string `json:"spaceKey"`
	Name              string `json:"name"`
	OwnerId           uint64 `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 Star

type Star struct {
	Id        uint64 `json:"id"`
	Comment   string `json:"comment"`
	URL       string `json:"url"`
	Title     string `json:"title"`
	Presenter User   `json:"presenter"`
	Created   Date   `json:"created"`
}

type Status

type Status struct {
	Id   uint64 `json:"id"`
	Name string `json:"name"`
}

type Tag

type Tag struct {
	Id   uint64 `json:"id"`
	Name string `json:"name"`
}

type User

type User struct {
	Id           uint64       `json:"id"`
	UserId       string       `json:"userId"`
	Name         string       `json:"name"`
	RoleType     int          `json:"roleType"`
	Lang         string       `json:"lang"`
	MailAddress  string       `json:"mailAddress"`
	NulabAccount NulabAccount `json:"nulabAccount"`
}

type Version

type Version struct {
	Id             uint64 `json:"id"`
	ProjectId      uint64 `json:"projectId"`
	Name           string `json:"name"`
	Description    string `json:"description"`
	StartDate      Date   `json:"startDate"`
	ReleaseDueDate Date   `json:"releaseDueDate"`
	Archived       bool   `json:"archived"`
	DisplayOrder   int    `json:"displayOrder"`
}

type Wiki

type Wiki struct {
	Id          uint64       `json:"id"`
	ProjectId   uint64       `json:"projectId"`
	Name        string       `json:"name"`
	Content     string       `json:"content"`
	Tags        []Tag        `json:"tags"`
	Attachments []Attachment `json:"attachment"`
	SharedFiles []SharedFile `json:"sharedFiles"`
	Stars       []Star       `json:"stars"`
	CreatedUser User         `json:"createdUser"`
	Created     Date         `json:"created"`
	UpdatedUser User         `json:"updatedUser"`
	Updated     Date         `json:"updated"`
}

Jump to

Keyboard shortcuts

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