Documentation ¶
Index ¶
- Constants
- func Bool(v bool) *bool
- func Int(v int) *int
- func Int64(v int64) *int64
- func OptionDebug(b bool) func(*Client)
- func OptionHTTPClient(client httpClient) func(*Client)
- func OptionLog(l logger) func(*Client)
- func String(v string) *string
- type Activity
- type AddAttachmentToWikiInput
- type AddProjectAdministratorInput
- type AddProjectTeamInput
- type AddProjectUserInput
- type Attachment
- type AttachmentInfo
- type AttributeInfo
- type Category
- type Change
- type ChangeLog
- type Client
- func (c *Client) AddAttachmentToWiki(wikiID int, input *AddAttachmentToWikiInput) ([]*Attachment, error)
- func (c *Client) AddAttachmentToWikiContext(ctx context.Context, wikiID int, input *AddAttachmentToWikiInput) ([]*Attachment, error)
- func (c *Client) AddOptions(s string, opts interface{}) (string, error)
- func (c *Client) AddProjectAdministrator(projectIDOrKey interface{}, input *AddProjectAdministratorInput) (*User, error)
- func (c *Client) AddProjectAdministratorContext(ctx context.Context, projectIDOrKey interface{}, ...) (*User, error)
- func (c *Client) AddProjectTeam(projectIDOrKey interface{}, input *AddProjectTeamInput) (*Team, error)
- func (c *Client) AddProjectTeamContext(ctx context.Context, projectIDOrKey interface{}, input *AddProjectTeamInput) (*Team, error)
- func (c *Client) AddProjectUser(projectIDOrKey interface{}, input *AddProjectUserInput) (*User, error)
- func (c *Client) AddProjectUserContext(ctx context.Context, projectIDOrKey interface{}, input *AddProjectUserInput) (*User, error)
- func (c *Client) CreateCategory(projectIDOrKey interface{}, input *CreateCategoryInput) (*Category, error)
- func (c *Client) CreateCategoryContext(ctx context.Context, projectIDOrKey interface{}, input *CreateCategoryInput) (*Category, error)
- func (c *Client) CreateIssue(input *CreateIssueInput) (*Issue, error)
- func (c *Client) CreateIssueComment(issueIDOrKey string, input *CreateIssueCommentInput) (*IssueComment, error)
- func (c *Client) CreateIssueCommentContext(ctx context.Context, issueIDOrKey string, input *CreateIssueCommentInput) (*IssueComment, error)
- func (c *Client) CreateIssueCommentsNotification(issueIDOrKey string, commentID int, ...) (*IssueComment, error)
- func (c *Client) CreateIssueCommentsNotificationContext(ctx context.Context, issueIDOrKey string, commentID int, ...) (*IssueComment, error)
- func (c *Client) CreateIssueContext(ctx context.Context, input *CreateIssueInput) (*Issue, error)
- func (c *Client) CreateIssueSharedFiles(issueIDOrKey string, input *CreateIssueSharedFilesInput) ([]*SharedFile, error)
- func (c *Client) CreateIssueSharedFilesContext(ctx context.Context, issueIDOrKey string, input *CreateIssueSharedFilesInput) ([]*SharedFile, error)
- func (c *Client) CreateIssueType(projectIDOrKey interface{}, input *CreateIssueTypeInput) (*IssueType, error)
- func (c *Client) CreateIssueTypeContext(ctx context.Context, projectIDOrKey interface{}, input *CreateIssueTypeInput) (*IssueType, error)
- func (c *Client) CreateProject(input *CreateProjectInput) (*Project, error)
- func (c *Client) CreateProjectContext(ctx context.Context, input *CreateProjectInput) (*Project, error)
- func (c *Client) CreateStatus(projectIDOrKey interface{}, input *CreateStatusInput) (*Status, error)
- func (c *Client) CreateStatusContext(ctx context.Context, projectIDOrKey interface{}, input *CreateStatusInput) (*Status, error)
- func (c *Client) CreateTeam(input *CreateTeamInput) (*Team, error)
- func (c *Client) CreateTeamContext(ctx context.Context, input *CreateTeamInput) (*Team, error)
- func (c *Client) CreateUser(input *CreateUserInput) (*User, error)
- func (c *Client) CreateUserContext(ctx context.Context, input *CreateUserInput) (*User, error)
- func (c *Client) CreateVersion(projectIDOrKey interface{}, input *CreateVersionInput) (*Version, error)
- func (c *Client) CreateVersionContext(ctx context.Context, projectIDOrKey interface{}, input *CreateVersionInput) (*Version, error)
- func (c *Client) CreateWatching(input *CreateWatchingInput) (*Watching, error)
- func (c *Client) CreateWatchingContext(ctx context.Context, input *CreateWatchingInput) (*Watching, error)
- func (c *Client) CreateWebhook(projectIDOrKey interface{}, webhook *CreateWebhookInput) (*Webhook, error)
- func (c *Client) CreateWebhookContext(ctx context.Context, projectIDOrKey interface{}, input *CreateWebhookInput) (*Webhook, error)
- func (c *Client) CreateWiki(input *CreateWikiInput) (*Wiki, error)
- func (c *Client) CreateWikiContext(ctx context.Context, input *CreateWikiInput) (*Wiki, error)
- func (c *Client) Debug() bool
- func (c *Client) Debugf(format string, v ...interface{})
- func (c *Client) Debugln(v ...interface{})
- func (c *Client) DeleteAttachmentInWiki(wikiID, attachmentID int) (*Attachment, error)
- func (c *Client) DeleteAttachmentInWikiContext(ctx context.Context, wikiID, attachmentID int) (*Attachment, error)
- func (c *Client) DeleteCategory(projectIDOrKey interface{}, categoryID int) (*Category, error)
- func (c *Client) DeleteCategoryContext(ctx context.Context, projectIDOrKey interface{}, categoryID int) (*Category, error)
- func (c *Client) DeleteIssue(issueIDOrKey string) (*Issue, error)
- func (c *Client) DeleteIssueAttachment(issueIDOrKey string, attachmentID int) (*Attachment, error)
- func (c *Client) DeleteIssueAttachmentContext(ctx context.Context, issueIDOrKey string, attachmentID int) (*Attachment, error)
- func (c *Client) DeleteIssueComment(issueIDOrKey string, commentID int) (*IssueComment, error)
- func (c *Client) DeleteIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int) (*IssueComment, error)
- func (c *Client) DeleteIssueContext(ctx context.Context, issueIDOrKey string) (*Issue, error)
- func (c *Client) DeleteIssueSharedFile(issueIDOrKey string, sharedFileID int) (*SharedFile, error)
- func (c *Client) DeleteIssueSharedFileContext(ctx context.Context, issueIDOrKey string, sharedFileID int) (*SharedFile, error)
- func (c *Client) DeleteIssueType(projectIDOrKey interface{}, issueTypeID int, input *DeleteIssueTypeInput) (*IssueType, error)
- func (c *Client) DeleteIssueTypeContext(ctx context.Context, projectIDOrKey interface{}, issueTypeID int, ...) (*IssueType, error)
- func (c *Client) DeleteProject(projectIDOrKey interface{}) (*Project, error)
- func (c *Client) DeleteProjectAdministrator(projectIDOrKey interface{}, input *DeleteProjectAdministratorInput) (*User, error)
- func (c *Client) DeleteProjectAdministratorContext(ctx context.Context, projectIDOrKey interface{}, ...) (*User, error)
- func (c *Client) DeleteProjectContext(ctx context.Context, projectIDOrKey interface{}) (*Project, error)
- func (c *Client) DeleteProjectTeam(projectIDOrKey interface{}, input *DeleteProjectTeamInput) (*Team, error)
- func (c *Client) DeleteProjectTeamContext(ctx context.Context, projectIDOrKey interface{}, input *DeleteProjectTeamInput) (*Team, error)
- func (c *Client) DeleteProjectUser(projectIDOrKey interface{}, input *DeleteProjectUserInput) (*User, error)
- func (c *Client) DeleteProjectUserContext(ctx context.Context, projectIDOrKey interface{}, input *DeleteProjectUserInput) (*User, error)
- func (c *Client) DeleteStatus(projectIDOrKey interface{}, statusID int, input *DeleteStatusInput) (*Status, error)
- func (c *Client) DeleteStatusContext(ctx context.Context, projectIDOrKey interface{}, statusID int, ...) (*Status, error)
- func (c *Client) DeleteTeam(teamID int) (*Team, error)
- func (c *Client) DeleteTeamContext(ctx context.Context, teamID int) (*Team, error)
- func (c *Client) DeleteUser(id int) (*User, error)
- func (c *Client) DeleteUserContext(ctx context.Context, id int) (*User, error)
- func (c *Client) DeleteVersion(projectIDOrKey interface{}, versionID int) (*Version, error)
- func (c *Client) DeleteVersionContext(ctx context.Context, projectIDOrKey interface{}, versionID int) (*Version, error)
- func (c *Client) DeleteWatching(watchingID int) (*Watching, error)
- func (c *Client) DeleteWatchingContext(ctx context.Context, watchingID int) (*Watching, error)
- func (c *Client) DeleteWebhook(projectIDOrKey interface{}, webhookID int) (*Webhook, error)
- func (c *Client) DeleteWebhookContext(ctx context.Context, projectIDOrKey interface{}, webhookID int) (*Webhook, error)
- func (c *Client) DeleteWiki(wikiID int) (*Wiki, error)
- func (c *Client) DeleteWikiContext(ctx context.Context, wikiID int) (*Wiki, error)
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) error
- func (c *Client) GetCategories(projectIDOrKey interface{}) ([]*Category, error)
- func (c *Client) GetCategoriesContext(ctx context.Context, projectIDOrKey interface{}) ([]*Category, error)
- func (c *Client) GetCustomFields(projectIDOrKey interface{}) ([]*CustomField, error)
- func (c *Client) GetCustomFieldsContext(ctx context.Context, projectIDOrKey interface{}) ([]*CustomField, error)
- func (c *Client) GetIssue(issueIDOrKey string) (*Issue, error)
- func (c *Client) GetIssueAttachment(issueIDOrKey string, attachmentID int, writer io.Writer) error
- func (c *Client) GetIssueAttachmentContext(ctx context.Context, issueIDOrKey string, attachmentID int, writer io.Writer) error
- func (c *Client) GetIssueAttachments(issueIDOrKey string) ([]*Attachment, error)
- func (c *Client) GetIssueAttachmentsContext(ctx context.Context, issueIDOrKey string) ([]*Attachment, error)
- func (c *Client) GetIssueComment(issueIDOrKey string, commentID int) (*IssueComment, error)
- func (c *Client) GetIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int) (*IssueComment, error)
- func (c *Client) GetIssueComments(issueIDOrKey string, opts *GetIssueCommentsOptions) ([]*IssueComment, error)
- func (c *Client) GetIssueCommentsContext(ctx context.Context, issueIDOrKey string, opts *GetIssueCommentsOptions) ([]*IssueComment, error)
- func (c *Client) GetIssueCommentsCount(issueIDOrKey string) (int, error)
- func (c *Client) GetIssueCommentsCountContext(ctx context.Context, issueIDOrKey string) (int, error)
- func (c *Client) GetIssueCommentsNotifications(issueIDOrKey string, commentID int) ([]*Notification, error)
- func (c *Client) GetIssueCommentsNotificationsContext(ctx context.Context, issueIDOrKey string, commentID int) ([]*Notification, error)
- func (c *Client) GetIssueContext(ctx context.Context, issueIDOrKey string) (*Issue, error)
- func (c *Client) GetIssueCount(opts *GetIssuesCountOptions) (int, error)
- func (c *Client) GetIssueCountContext(ctx context.Context, opts *GetIssuesCountOptions) (int, error)
- func (c *Client) GetIssueParticipants(issueIDOrKey string) ([]*User, error)
- func (c *Client) GetIssueParticipantsContext(ctx context.Context, issueIDOrKey string) ([]*User, error)
- func (c *Client) GetIssueSharedFiles(issueIDOrKey string) ([]*SharedFile, error)
- func (c *Client) GetIssueSharedFilesContext(ctx context.Context, issueIDOrKey string) ([]*SharedFile, error)
- func (c *Client) GetIssueTypes(projectIDOrKey interface{}) ([]*IssueType, error)
- func (c *Client) GetIssueTypesContext(ctx context.Context, projectIDOrKey interface{}) ([]*IssueType, error)
- func (c *Client) GetIssues(opts *GetIssuesOptions) ([]*Issue, error)
- func (c *Client) GetIssuesContext(ctx context.Context, opts *GetIssuesOptions) ([]*Issue, error)
- func (c *Client) GetLicence() (*License, error)
- func (c *Client) GetLicenceContext(ctx context.Context) (*License, error)
- func (c *Client) GetMyRecentlyViewedProjects(opts *GetMyRecentlyViewedProjectsOptions) ([]*RecentlyViewedProject, error)
- func (c *Client) GetMyRecentlyViewedProjectsContext(ctx context.Context, opts *GetMyRecentlyViewedProjectsOptions) ([]*RecentlyViewedProject, error)
- func (c *Client) GetMyRecentlyViewedWikis(opts *GetMyRecentlyViewedWikisOptions) ([]*RecentlyViewedWiki, error)
- func (c *Client) GetMyRecentlyViewedWikisContext(ctx context.Context, opts *GetMyRecentlyViewedWikisOptions) ([]*RecentlyViewedWiki, error)
- func (c *Client) GetPriorities() ([]*Priority, error)
- func (c *Client) GetPrioritiesContext(ctx context.Context) ([]*Priority, error)
- func (c *Client) GetProject(projectIDOrKey interface{}) (*Project, error)
- func (c *Client) GetProjectActivities(projectIDOrKey interface{}, opts *GetProjectActivitiesOptions) ([]*Activity, error)
- func (c *Client) GetProjectActivitiesContext(ctx context.Context, projectIDOrKey interface{}, ...) ([]*Activity, error)
- func (c *Client) GetProjectAdministrators(projectIDOrKey interface{}) ([]*User, error)
- func (c *Client) GetProjectAdministratorsContext(ctx context.Context, projectIDOrKey interface{}) ([]*User, error)
- func (c *Client) GetProjectContext(ctx context.Context, projectIDOrKey interface{}) (*Project, error)
- func (c *Client) GetProjectDiskUsage(projectIDOrKey interface{}) (*ProjectDiskUsage, error)
- func (c *Client) GetProjectDiskUsageContext(ctx context.Context, projectIDOrKey interface{}) (*ProjectDiskUsage, error)
- func (c *Client) GetProjectIcon(projectIDOrKey interface{}, writer io.Writer) error
- func (c *Client) GetProjectIconContext(ctx context.Context, projectIDOrKey interface{}, writer io.Writer) error
- func (c *Client) GetProjectTeams(projectIDOrKey interface{}) ([]*Team, error)
- func (c *Client) GetProjectTeamsContext(ctx context.Context, projectIDOrKey interface{}) ([]*Team, error)
- func (c *Client) GetProjectUsers(projectIDOrKey interface{}, opts *GetProjectUsersOptions) ([]*User, error)
- func (c *Client) GetProjectUsersContext(ctx context.Context, projectIDOrKey interface{}, opts *GetProjectUsersOptions) ([]*User, error)
- func (c *Client) GetProjects(opts *GetProjectsOptions) ([]*Project, error)
- func (c *Client) GetProjectsContext(ctx context.Context, opts *GetProjectsOptions) ([]*Project, error)
- func (c *Client) GetRateLimit() (*RateLimit, error)
- func (c *Client) GetRateLimitContext(ctx context.Context) (*RateLimit, error)
- func (c *Client) GetResolutions() ([]*Resolution, error)
- func (c *Client) GetResolutionsContext(ctx context.Context) ([]*Resolution, error)
- func (c *Client) GetSpace() (*Space, error)
- func (c *Client) GetSpaceContext(ctx context.Context) (*Space, error)
- func (c *Client) GetSpaceDiskUsage() (*SpaceDiskUsage, error)
- func (c *Client) GetSpaceDiskUsageContext(ctx context.Context) (*SpaceDiskUsage, error)
- func (c *Client) GetSpaceIcon(writer io.Writer) error
- func (c *Client) GetSpaceIconContext(ctx context.Context, writer io.Writer) error
- func (c *Client) GetSpaceNotification() (*SpaceNotification, error)
- func (c *Client) GetSpaceNotificationContext(ctx context.Context) (*SpaceNotification, error)
- func (c *Client) GetStatuses(projectIDOrKey interface{}) ([]*Status, error)
- func (c *Client) GetStatusesContext(ctx context.Context, projectIDOrKey interface{}) ([]*Status, error)
- func (c *Client) GetTeam(teamID int) (*Team, error)
- func (c *Client) GetTeamContext(ctx context.Context, teamID int) (*Team, error)
- func (c *Client) GetTeamIcon(teamID int, writer io.Writer) error
- func (c *Client) GetTeamIconContext(ctx context.Context, teamID int, writer io.Writer) error
- func (c *Client) GetTeams(opts *GetTeamsOptions) ([]*Team, error)
- func (c *Client) GetTeamsContext(ctx context.Context, opts *GetTeamsOptions) ([]*Team, error)
- func (c *Client) GetUser(id int) (*User, error)
- func (c *Client) GetUserActivities(id int, opts *GetUserActivitiesOptions) ([]*Activity, error)
- func (c *Client) GetUserActivitiesContext(ctx context.Context, id int, opts *GetUserActivitiesOptions) ([]*Activity, error)
- func (c *Client) GetUserContext(ctx context.Context, id int) (*User, error)
- func (c *Client) GetUserIcon(id int, writer io.Writer) error
- func (c *Client) GetUserIconContext(ctx context.Context, id int, writer io.Writer) error
- func (c *Client) GetUserMySelf() (*User, error)
- func (c *Client) GetUserMySelfContext(ctx context.Context) (*User, error)
- func (c *Client) GetUserMySelfRecentrlyViewedIssues(opts *GetUserMySelfRecentrlyViewedIssuesOptions) (Issues, error)
- func (c *Client) GetUserMySelfRecentrlyViewedIssuesContext(ctx context.Context, opts *GetUserMySelfRecentrlyViewedIssuesOptions) (Issues, error)
- func (c *Client) GetUserStarCount(id int, opts *GetUserStarCountOptions) (int, error)
- func (c *Client) GetUserStarCountContext(ctx context.Context, id int, opts *GetUserStarCountOptions) (int, error)
- func (c *Client) GetUserStars(id int, opts *GetUserStarsOptions) ([]*Star, error)
- func (c *Client) GetUserStarsContext(ctx context.Context, id int, opts *GetUserStarsOptions) ([]*Star, error)
- func (c *Client) GetUserWatchings(userID int) ([]*Watching, error)
- func (c *Client) GetUserWatchingsContext(ctx context.Context, userID int) ([]*Watching, error)
- func (c *Client) GetUserWatchingsCount(userID int, opts *GetUserWatchingsCountOptions) (int, error)
- func (c *Client) GetUserWatchingsCountContext(ctx context.Context, userID int, opts *GetUserWatchingsCountOptions) (int, error)
- func (c *Client) GetUsers() ([]*User, error)
- func (c *Client) GetUsersContext(ctx context.Context) ([]*User, error)
- func (c *Client) GetVersions(projectIDOrKey interface{}) ([]*Version, error)
- func (c *Client) GetVersionsContext(ctx context.Context, projectIDOrKey interface{}) ([]*Version, error)
- func (c *Client) GetWatching(watchingID int) (*Watching, error)
- func (c *Client) GetWatchingContext(ctx context.Context, watchingID int) (*Watching, error)
- func (c *Client) GetWebhook(projectIDOrKey interface{}, webhookID int) (*Webhook, error)
- func (c *Client) GetWebhookContext(ctx context.Context, projectIDOrKey interface{}, webhookID int) (*Webhook, error)
- func (c *Client) GetWebhooks(projectIDOrKey interface{}) ([]*Webhook, error)
- func (c *Client) GetWebhooksContext(ctx context.Context, projectIDOrKey interface{}) ([]*Webhook, error)
- func (c *Client) GetWiki(wikiID int) (*Wiki, error)
- func (c *Client) GetWikiAttachmentContent(wikiID, attachmentID int, w io.Writer) error
- func (c *Client) GetWikiAttachmentContentContext(ctx context.Context, wikiID, attachmentID int, w io.Writer) error
- func (c *Client) GetWikiAttachments(wikiID int) ([]*Attachment, error)
- func (c *Client) GetWikiAttachmentsContext(ctx context.Context, wikiID int) ([]*Attachment, error)
- func (c *Client) GetWikiContext(ctx context.Context, wikiID int) (*Wiki, error)
- func (c *Client) GetWikiCount(opts *GetWikiCountOptions) (int, error)
- func (c *Client) GetWikiCountContext(ctx context.Context, opts *GetWikiCountOptions) (int, error)
- func (c *Client) GetWikiTags(opts *GetWikiTagsOptions) ([]*Tag, error)
- func (c *Client) GetWikiTagsContext(ctx context.Context, opts *GetWikiTagsOptions) ([]*Tag, error)
- func (c *Client) GetWikis(opts *GetWikisOptions) ([]*Wiki, error)
- func (c *Client) GetWikisContext(ctx context.Context, opts *GetWikisOptions) ([]*Wiki, error)
- func (c *Client) MarkAsReadWatching(watchingID int) error
- func (c *Client) MarkAsReadWatchingContext(ctx context.Context, watchingID int) error
- func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)
- func (c *Client) SortStatuses(projectIDOrKey interface{}, input *SortStatusesInput) ([]*Status, error)
- func (c *Client) SortStatusesContext(ctx context.Context, projectIDOrKey interface{}, input *SortStatusesInput) ([]*Status, error)
- func (c *Client) UpdateCategory(projectIDOrKey interface{}, categoryID int, input *UpdateCategoryInput) (*Category, error)
- func (c *Client) UpdateCategoryContext(ctx context.Context, projectIDOrKey interface{}, categoryID int, ...) (*Category, error)
- func (c *Client) UpdateIssue(issueIDOrKey string, input *UpdateIssueInput) (*Issue, error)
- func (c *Client) UpdateIssueComment(issueIDOrKey string, commentID int, input *UpdateIssueCommentInput) (*IssueComment, error)
- func (c *Client) UpdateIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int, ...) (*IssueComment, error)
- func (c *Client) UpdateIssueContext(ctx context.Context, issueIDOrKey string, input *UpdateIssueInput) (*Issue, error)
- func (c *Client) UpdateIssueType(projectIDOrKey interface{}, issueTypeID int, input *UpdateIssueTypeInput) (*IssueType, error)
- func (c *Client) UpdateIssueTypeContext(ctx context.Context, projectIDOrKey interface{}, issueTypeID int, ...) (*IssueType, error)
- func (c *Client) UpdateProject(id int, input *UpdateProjectInput) (*Project, error)
- func (c *Client) UpdateProjectContext(ctx context.Context, id int, input *UpdateProjectInput) (*Project, error)
- func (c *Client) UpdateSpaceNotification(input *UpdateSpaceNotificationInput) (*SpaceNotification, error)
- func (c *Client) UpdateSpaceNotificationContext(ctx context.Context, input *UpdateSpaceNotificationInput) (*SpaceNotification, error)
- func (c *Client) UpdateStatus(projectIDOrKey interface{}, statusID int, input *UpdateStatusInput) (*Status, error)
- func (c *Client) UpdateStatusContext(ctx context.Context, projectIDOrKey interface{}, statusID int, ...) (*Status, error)
- func (c *Client) UpdateTeam(teamID int, input *UpdateTeamInput) (*Team, error)
- func (c *Client) UpdateTeamContext(ctx context.Context, teamID int, input *UpdateTeamInput) (*Team, error)
- func (c *Client) UpdateUser(id int, input *UpdateUserInput) (*User, error)
- func (c *Client) UpdateUserContext(ctx context.Context, id int, input *UpdateUserInput) (*User, error)
- func (c *Client) UpdateVersion(projectIDOrKey interface{}, versionID int, input *UpdateVersionInput) (*Version, error)
- func (c *Client) UpdateVersionContext(ctx context.Context, projectIDOrKey interface{}, versionID int, ...) (*Version, error)
- func (c *Client) UpdateWatching(watchingID int, input *UpdateWatchingInput) (*Watching, error)
- func (c *Client) UpdateWatchingContext(ctx context.Context, watchingID int, input *UpdateWatchingInput) (*Watching, error)
- func (c *Client) UpdateWebhook(projectIDOrKey interface{}, webhookID int, input *UpdateWebhookInput) (*Webhook, error)
- func (c *Client) UpdateWebhookContext(ctx context.Context, projectIDOrKey interface{}, webhookID int, ...) (*Webhook, error)
- func (c *Client) UpdateWiki(wikiID int, input *UpdateWikiInput) (*Wiki, error)
- func (c *Client) UpdateWikiContext(ctx context.Context, wikiID int, input *UpdateWikiInput) (*Wiki, error)
- func (c *Client) UploadFile(fpath string) (*FileUploadResponse, error)
- func (c *Client) UploadFileContext(ctx context.Context, fpath string) (*FileUploadResponse, error)
- func (c *Client) UploadMultipartFile(ctx context.Context, method, urlStr, fpath, field string, v interface{}) (err error)
- type Comment
- type Content
- type CreateCategoryInput
- type CreateIssueCommentInput
- type CreateIssueCommentsNotificationInput
- type CreateIssueInput
- type CreateIssueSharedFilesInput
- type CreateIssueTypeInput
- type CreateProjectInput
- type CreateStatusInput
- type CreateTeamInput
- type CreateUserInput
- type CreateVersionInput
- type CreateWatchingInput
- type CreateWebhookInput
- type CreateWikiInput
- type CustomField
- type DeleteIssueTypeInput
- type DeleteProjectAdministratorInput
- type DeleteProjectTeamInput
- type DeleteProjectUserInput
- type DeleteStatusInput
- type Error
- type ErrorResponse
- type FileUploadResponse
- type GetIssueCommentsOptions
- type GetIssuesCountOptions
- type GetIssuesOptions
- type GetMyRecentlyViewedProjectsOptions
- type GetMyRecentlyViewedWikisOptions
- type GetProjectActivitiesOptions
- type GetProjectUsersOptions
- type GetProjectsOptions
- type GetTeamsOptions
- type GetUserActivitiesOptions
- type GetUserMySelfRecentrlyViewedIssuesOptions
- type GetUserStarCountOptions
- type GetUserStarsOptions
- type GetUserWatchingsCountOptions
- type GetUserWatchingsOptions
- type GetWikiCountOptions
- type GetWikiTagsOptions
- type GetWikisOptions
- type Issue
- type IssueComment
- type IssueCustomField
- type IssueType
- type Issues
- type Item
- type License
- type LimitStatus
- type Milestone
- type Notification
- type NotificationInfo
- type Option
- type Order
- type Page
- type Priority
- type Project
- type ProjectDiskUsage
- type RateLimit
- type RecentlyViewedProject
- type RecentlyViewedWiki
- type Resolution
- type ResponseIssue
- type ResponseRateLimit
- type RoleType
- type SharedFile
- type Sort
- type SortStatusesInput
- type Space
- type SpaceDiskUsage
- type SpaceDiskUsageDetail
- type SpaceNotification
- type Star
- type Status
- type Tag
- type Team
- type Timestamp
- type UpdateCategoryInput
- type UpdateIssueCommentInput
- type UpdateIssueInput
- type UpdateIssueTypeInput
- type UpdateProjectInput
- type UpdateSpaceNotificationInput
- type UpdateStatusInput
- type UpdateTeamInput
- type UpdateUserInput
- type UpdateVersionInput
- type UpdateWatchingInput
- type UpdateWebhookInput
- type UpdateWikiInput
- type User
- type Version
- type Watching
- type Webhook
- type Wiki
Constants ¶
const ( SortIssueType = Sort(rune(iota)) SortCategory SortVersion SortMilestone SortSummary SortStatus SortPriority SortAttachment SortCreated SortCreatedUser SortUpdated SortUpdatedUser SortAssignee SortStartDate SortDueDate SortEstimatedHours SortActualHours SortChildIssue )
IssueType is used in sort type
const ( RoleTypeAdministrator = RoleType(iota) RoleTypeGeneralUser RoleTypeReporter RoleTypeViewer RoleTypeGuestReporter RoleTypeGuestViewer )
RoleType
const ( OrderAsc = Order(rune(iota)) OrderDesc )
Order by asc, desc
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
func Int ¶
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
func Int64 ¶
Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.
func OptionDebug ¶
OptionDebug enable debugging for the client
func OptionHTTPClient ¶
func OptionHTTPClient(client httpClient) func(*Client)
OptionHTTPClient - provide a custom http client to the backlog client.
Types ¶
type Activity ¶
type Activity struct { ID *int `json:"id,omitempty"` // User.ID Project *Project `json:"project,omitempty"` Type *int `json:"type,omitempty"` Content *Content `json:"content,omitempty"` Notifications []*Notification `json:"notifications,omitempty"` CreatedUser *User `json:"createdUser,omitempty"` Created *Timestamp `json:"created,omitempty"` }
Activity : activity
type AddAttachmentToWikiInput ¶
type AddAttachmentToWikiInput struct {
AttachmentIDs []int `json:"attachmentId"`
}
AddAttachmentToWikiInput contains all the parameters necessary (including the optional ones) for a AddAttachmentToWiki() request.
type AddProjectAdministratorInput ¶
type AddProjectAdministratorInput struct {
UserID *int `json:"userId"`
}
AddProjectAdministratorInput specifies parameters to the AddProjectAdministrator method.
type AddProjectTeamInput ¶
type AddProjectTeamInput struct {
TeamID *int `json:"teamId"`
}
AddProjectTeamInput specifies parameters to the AddProjectTeam method.
type AddProjectUserInput ¶
type AddProjectUserInput struct {
UserID *int `json:"userId"`
}
AddProjectUserInput specifies parameters to the AddProjectUser method.
type Attachment ¶
type Attachment struct { ID *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` Size *int `json:"size,omitempty"` CreatedUser *User `json:"createdUser,omitempty"` Created *Timestamp `json:"created,omitempty"` }
Attachment : attachment of wiki
type AttachmentInfo ¶
AttachmentInfo : attachment information
type AttributeInfo ¶
AttributeInfo : attribute information
type Category ¶
type Category struct { ID *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` DisplayOrder *int `json:"displayOrder,omitempty"` }
Category : category
type Change ¶
type Change struct { Field *string `json:"field,omitempty"` NewValue *string `json:"new_value,omitempty"` OldValue *string `json:"old_value,omitempty"` Type *string `json:"type,omitempty"` }
Change : -
type ChangeLog ¶
type ChangeLog struct { AttachmentInfo *AttachmentInfo `json:"attachmentInfo,omitempty"` AttributeInfo *AttributeInfo `json:"attributeInfo,omitempty"` Field *string `json:"field,omitempty"` NewValue *string `json:"newValue,omitempty"` NotificationInfo *NotificationInfo `json:"notificationInfo,omitempty"` OriginalValue *string `json:"originalValue,omitempty"` }
ChangeLog : change log
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client : backlog client
func (*Client) AddAttachmentToWiki ¶
func (c *Client) AddAttachmentToWiki(wikiID int, input *AddAttachmentToWikiInput) ([]*Attachment, error)
AddAttachmentToWiki adds attachments to a wiki
func (*Client) AddAttachmentToWikiContext ¶
func (c *Client) AddAttachmentToWikiContext(ctx context.Context, wikiID int, input *AddAttachmentToWikiInput) ([]*Attachment, error)
AddAttachmentToWikiContext adds attachments to a wiki with context
func (*Client) AddOptions ¶
AddOptions adds the parameters in opt as URL query parameters to s. opt must be a struct whose fields may contain "url" tags.
func (*Client) AddProjectAdministrator ¶
func (c *Client) AddProjectAdministrator(projectIDOrKey interface{}, input *AddProjectAdministratorInput) (*User, error)
AddProjectAdministrator adds an administrator in a project
func (*Client) AddProjectAdministratorContext ¶
func (c *Client) AddProjectAdministratorContext(ctx context.Context, projectIDOrKey interface{}, input *AddProjectAdministratorInput) (*User, error)
AddProjectAdministratorContext adds an administrator in a project with context
func (*Client) AddProjectTeam ¶
func (c *Client) AddProjectTeam(projectIDOrKey interface{}, input *AddProjectTeamInput) (*Team, error)
AddProjectTeam adds a team to a project
func (*Client) AddProjectTeamContext ¶
func (c *Client) AddProjectTeamContext(ctx context.Context, projectIDOrKey interface{}, input *AddProjectTeamInput) (*Team, error)
AddProjectTeamContext adds a team to a project with context
func (*Client) AddProjectUser ¶
func (c *Client) AddProjectUser(projectIDOrKey interface{}, input *AddProjectUserInput) (*User, error)
AddProjectUser adds a user to a project
func (*Client) AddProjectUserContext ¶
func (c *Client) AddProjectUserContext(ctx context.Context, projectIDOrKey interface{}, input *AddProjectUserInput) (*User, error)
AddProjectUserContext adds a user to a project with context
func (*Client) CreateCategory ¶
func (c *Client) CreateCategory(projectIDOrKey interface{}, input *CreateCategoryInput) (*Category, error)
CreateCategory creates a category
func (*Client) CreateCategoryContext ¶
func (c *Client) CreateCategoryContext(ctx context.Context, projectIDOrKey interface{}, input *CreateCategoryInput) (*Category, error)
CreateCategoryContext creates a category with Context
func (*Client) CreateIssue ¶
func (c *Client) CreateIssue(input *CreateIssueInput) (*Issue, error)
CreateIssue creates a issue
func (*Client) CreateIssueComment ¶
func (c *Client) CreateIssueComment(issueIDOrKey string, input *CreateIssueCommentInput) (*IssueComment, error)
CreateIssueComment creates a issue comments
func (*Client) CreateIssueCommentContext ¶
func (c *Client) CreateIssueCommentContext(ctx context.Context, issueIDOrKey string, input *CreateIssueCommentInput) (*IssueComment, error)
CreateIssueCommentContext creates a issue comments with context
func (*Client) CreateIssueCommentsNotification ¶
func (c *Client) CreateIssueCommentsNotification(issueIDOrKey string, commentID int, input *CreateIssueCommentsNotificationInput) (*IssueComment, error)
CreateIssueCommentsNotification creates a notification
func (*Client) CreateIssueCommentsNotificationContext ¶
func (c *Client) CreateIssueCommentsNotificationContext(ctx context.Context, issueIDOrKey string, commentID int, input *CreateIssueCommentsNotificationInput) (*IssueComment, error)
CreateIssueCommentsNotificationContext creates a notification with context
func (*Client) CreateIssueContext ¶
CreateIssueContext creates a issue with context
func (*Client) CreateIssueSharedFiles ¶
func (c *Client) CreateIssueSharedFiles(issueIDOrKey string, input *CreateIssueSharedFilesInput) ([]*SharedFile, error)
CreateIssueSharedFiles link a shared files to a issue
func (*Client) CreateIssueSharedFilesContext ¶
func (c *Client) CreateIssueSharedFilesContext(ctx context.Context, issueIDOrKey string, input *CreateIssueSharedFilesInput) ([]*SharedFile, error)
CreateIssueSharedFilesContext link a shared files to a issue with context
func (*Client) CreateIssueType ¶
func (c *Client) CreateIssueType(projectIDOrKey interface{}, input *CreateIssueTypeInput) (*IssueType, error)
CreateIssueType creates an issue type
func (*Client) CreateIssueTypeContext ¶
func (c *Client) CreateIssueTypeContext(ctx context.Context, projectIDOrKey interface{}, input *CreateIssueTypeInput) (*IssueType, error)
CreateIssueTypeContext creates an issue type with Context
func (*Client) CreateProject ¶
func (c *Client) CreateProject(input *CreateProjectInput) (*Project, error)
CreateProject creates a project
func (*Client) CreateProjectContext ¶
func (c *Client) CreateProjectContext(ctx context.Context, input *CreateProjectInput) (*Project, error)
CreateProjectContext creates a project with Context
func (*Client) CreateStatus ¶
func (c *Client) CreateStatus(projectIDOrKey interface{}, input *CreateStatusInput) (*Status, error)
CreateStatus creates a status
func (*Client) CreateStatusContext ¶
func (c *Client) CreateStatusContext(ctx context.Context, projectIDOrKey interface{}, input *CreateStatusInput) (*Status, error)
CreateStatusContext creates a status
func (*Client) CreateTeam ¶
func (c *Client) CreateTeam(input *CreateTeamInput) (*Team, error)
CreateTeam creates a team a space backlog.com cannot use this API
func (*Client) CreateTeamContext ¶
CreateTeamContext creates a team with Context a space backlog.com cannot use this API
func (*Client) CreateUser ¶
func (c *Client) CreateUser(input *CreateUserInput) (*User, error)
CreateUser creates a user
func (*Client) CreateUserContext ¶
CreateUserContext creates a user with Context
func (*Client) CreateVersion ¶
func (c *Client) CreateVersion(projectIDOrKey interface{}, input *CreateVersionInput) (*Version, error)
CreateVersion creates a versions (milestone) of a project
func (*Client) CreateVersionContext ¶
func (c *Client) CreateVersionContext(ctx context.Context, projectIDOrKey interface{}, input *CreateVersionInput) (*Version, error)
CreateVersionContext creates a versions (milestone) of a project with Context
func (*Client) CreateWatching ¶
func (c *Client) CreateWatching(input *CreateWatchingInput) (*Watching, error)
CreateWatching creates a watching
func (*Client) CreateWatchingContext ¶
func (c *Client) CreateWatchingContext(ctx context.Context, input *CreateWatchingInput) (*Watching, error)
CreateWatchingContext creates a watching with Context
func (*Client) CreateWebhook ¶
func (c *Client) CreateWebhook(projectIDOrKey interface{}, webhook *CreateWebhookInput) (*Webhook, error)
CreateWebhook adds a webhook
func (*Client) CreateWebhookContext ¶
func (c *Client) CreateWebhookContext(ctx context.Context, projectIDOrKey interface{}, input *CreateWebhookInput) (*Webhook, error)
CreateWebhookContext adds a webhook with context
func (*Client) CreateWiki ¶
func (c *Client) CreateWiki(input *CreateWikiInput) (*Wiki, error)
CreateWiki creates a wiki
func (*Client) CreateWikiContext ¶
CreateWikiContext creates a wiki with Context
func (*Client) DeleteAttachmentInWiki ¶
func (c *Client) DeleteAttachmentInWiki(wikiID, attachmentID int) (*Attachment, error)
DeleteAttachmentInWiki deletes a attachment in a wiki
func (*Client) DeleteAttachmentInWikiContext ¶
func (c *Client) DeleteAttachmentInWikiContext(ctx context.Context, wikiID, attachmentID int) (*Attachment, error)
DeleteAttachmentInWikiContext deletes a attachment in a wiki with context
func (*Client) DeleteCategory ¶
DeleteCategory deletes a category
func (*Client) DeleteCategoryContext ¶
func (c *Client) DeleteCategoryContext(ctx context.Context, projectIDOrKey interface{}, categoryID int) (*Category, error)
DeleteCategoryContext deletes a category with Context
func (*Client) DeleteIssue ¶
DeleteIssue deletes an issue
func (*Client) DeleteIssueAttachment ¶
func (c *Client) DeleteIssueAttachment(issueIDOrKey string, attachmentID int) (*Attachment, error)
DeleteIssueAttachment deletes an issue attachment
func (*Client) DeleteIssueAttachmentContext ¶
func (c *Client) DeleteIssueAttachmentContext(ctx context.Context, issueIDOrKey string, attachmentID int) (*Attachment, error)
DeleteIssueAttachmentContext deletes an issue attachments with context
func (*Client) DeleteIssueComment ¶
func (c *Client) DeleteIssueComment(issueIDOrKey string, commentID int) (*IssueComment, error)
DeleteIssueComment deletes a issue comment
func (*Client) DeleteIssueCommentContext ¶
func (c *Client) DeleteIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int) (*IssueComment, error)
DeleteIssueCommentContext deletes a issue comment with context
func (*Client) DeleteIssueContext ¶
DeleteIssueContext deletes an issue with context
func (*Client) DeleteIssueSharedFile ¶
func (c *Client) DeleteIssueSharedFile(issueIDOrKey string, sharedFileID int) (*SharedFile, error)
DeleteIssueSharedFile link a shared files to a issue
func (*Client) DeleteIssueSharedFileContext ¶
func (c *Client) DeleteIssueSharedFileContext(ctx context.Context, issueIDOrKey string, sharedFileID int) (*SharedFile, error)
DeleteIssueSharedFileContext link a shared files to a issue with context
func (*Client) DeleteIssueType ¶
func (c *Client) DeleteIssueType(projectIDOrKey interface{}, issueTypeID int, input *DeleteIssueTypeInput) (*IssueType, error)
DeleteIssueType deletes an issue type
func (*Client) DeleteIssueTypeContext ¶
func (c *Client) DeleteIssueTypeContext(ctx context.Context, projectIDOrKey interface{}, issueTypeID int, input *DeleteIssueTypeInput) (*IssueType, error)
DeleteIssueTypeContext deletes an issue type with Context
func (*Client) DeleteProject ¶
DeleteProject deletes a project
func (*Client) DeleteProjectAdministrator ¶
func (c *Client) DeleteProjectAdministrator(projectIDOrKey interface{}, input *DeleteProjectAdministratorInput) (*User, error)
DeleteProjectAdministrator deletes a administrator in a project
func (*Client) DeleteProjectAdministratorContext ¶
func (c *Client) DeleteProjectAdministratorContext(ctx context.Context, projectIDOrKey interface{}, input *DeleteProjectAdministratorInput) (*User, error)
DeleteProjectAdministratorContext deletes a administrator in a project with Context
func (*Client) DeleteProjectContext ¶
func (c *Client) DeleteProjectContext(ctx context.Context, projectIDOrKey interface{}) (*Project, error)
DeleteProjectContext deletes a project with Context
func (*Client) DeleteProjectTeam ¶
func (c *Client) DeleteProjectTeam(projectIDOrKey interface{}, input *DeleteProjectTeamInput) (*Team, error)
DeleteProjectTeam deletes a team to a project
func (*Client) DeleteProjectTeamContext ¶
func (c *Client) DeleteProjectTeamContext(ctx context.Context, projectIDOrKey interface{}, input *DeleteProjectTeamInput) (*Team, error)
DeleteProjectTeamContext deletes a team to a project with context
func (*Client) DeleteProjectUser ¶
func (c *Client) DeleteProjectUser(projectIDOrKey interface{}, input *DeleteProjectUserInput) (*User, error)
DeleteProjectUser deletes a user in a project
func (*Client) DeleteProjectUserContext ¶
func (c *Client) DeleteProjectUserContext(ctx context.Context, projectIDOrKey interface{}, input *DeleteProjectUserInput) (*User, error)
DeleteProjectUserContext deletes a user in a project with Context
func (*Client) DeleteStatus ¶
func (c *Client) DeleteStatus(projectIDOrKey interface{}, statusID int, input *DeleteStatusInput) (*Status, error)
DeleteStatus deletes a status
func (*Client) DeleteStatusContext ¶
func (c *Client) DeleteStatusContext(ctx context.Context, projectIDOrKey interface{}, statusID int, input *DeleteStatusInput) (*Status, error)
DeleteStatusContext deletes a status
func (*Client) DeleteTeam ¶
DeleteTeam deletes a team
func (*Client) DeleteTeamContext ¶
DeleteTeamContext deletes a team with Context
func (*Client) DeleteUser ¶
DeleteUser deletes a user
func (*Client) DeleteUserContext ¶
DeleteUserContext deletes a user with Context
func (*Client) DeleteVersion ¶
DeleteVersion deletes a versions (milestone) of a project
func (*Client) DeleteVersionContext ¶
func (c *Client) DeleteVersionContext(ctx context.Context, projectIDOrKey interface{}, versionID int) (*Version, error)
DeleteVersionContext deletes a versions (milestone) of a project with Context
func (*Client) DeleteWatching ¶
DeleteWatching deletes a watching
func (*Client) DeleteWatchingContext ¶
DeleteWatchingContext deletes a watching with Context
func (*Client) DeleteWebhook ¶
DeleteWebhook deletes a webhook
func (*Client) DeleteWebhookContext ¶
func (c *Client) DeleteWebhookContext(ctx context.Context, projectIDOrKey interface{}, webhookID int) (*Webhook, error)
DeleteWebhookContext updates a webhook with context
func (*Client) DeleteWiki ¶
DeleteWiki deletes a wiki
func (*Client) DeleteWikiContext ¶
DeleteWikiContext deletes a wiki with Context
func (*Client) Do ¶
Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response body will be written to v, without attempting to first decode it. If rate limit is exceeded and reset time is in the future, Do returns *RateLimitError immediately without making a network API call.
The provided ctx must be non-nil, if it is nil an error is returned. If it is canceled or times out, ctx.Err() will be returned.
func (*Client) GetCategories ¶
GetCategories returns the list of categories
func (*Client) GetCategoriesContext ¶
func (c *Client) GetCategoriesContext(ctx context.Context, projectIDOrKey interface{}) ([]*Category, error)
GetCategoriesContext returns the list of categories with context
func (*Client) GetCustomFields ¶
func (c *Client) GetCustomFields(projectIDOrKey interface{}) ([]*CustomField, error)
GetCustomFields returns the list of custom fields
func (*Client) GetCustomFieldsContext ¶
func (c *Client) GetCustomFieldsContext(ctx context.Context, projectIDOrKey interface{}) ([]*CustomField, error)
GetCustomFieldsContext returns the list of custom fields with context
func (*Client) GetIssueAttachment ¶
GetIssueAttachment downloads an issue attachment
func (*Client) GetIssueAttachmentContext ¶
func (c *Client) GetIssueAttachmentContext(ctx context.Context, issueIDOrKey string, attachmentID int, writer io.Writer) error
GetIssueAttachmentContext downloads an issue attachment with context
func (*Client) GetIssueAttachments ¶
func (c *Client) GetIssueAttachments(issueIDOrKey string) ([]*Attachment, error)
GetIssueAttachments gets issue attachments
func (*Client) GetIssueAttachmentsContext ¶
func (c *Client) GetIssueAttachmentsContext(ctx context.Context, issueIDOrKey string) ([]*Attachment, error)
GetIssueAttachmentsContext gets issue attachments with context
func (*Client) GetIssueComment ¶
func (c *Client) GetIssueComment(issueIDOrKey string, commentID int) (*IssueComment, error)
GetIssueComment gets a issue comment
func (*Client) GetIssueCommentContext ¶
func (c *Client) GetIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int) (*IssueComment, error)
GetIssueCommentContext gets a issue comment with context
func (*Client) GetIssueComments ¶
func (c *Client) GetIssueComments(issueIDOrKey string, opts *GetIssueCommentsOptions) ([]*IssueComment, error)
GetIssueComments get list of the issue comments
func (*Client) GetIssueCommentsContext ¶
func (c *Client) GetIssueCommentsContext(ctx context.Context, issueIDOrKey string, opts *GetIssueCommentsOptions) ([]*IssueComment, error)
GetIssueCommentsContext gets list of the issue comments with context
func (*Client) GetIssueCommentsCount ¶
GetIssueCommentsCount gets count of issue comments
func (*Client) GetIssueCommentsCountContext ¶
func (c *Client) GetIssueCommentsCountContext(ctx context.Context, issueIDOrKey string) (int, error)
GetIssueCommentsCountContext gets count of issue comments with context
func (*Client) GetIssueCommentsNotifications ¶
func (c *Client) GetIssueCommentsNotifications(issueIDOrKey string, commentID int) ([]*Notification, error)
GetIssueCommentsNotifications gets notifications in issue comments
func (*Client) GetIssueCommentsNotificationsContext ¶
func (c *Client) GetIssueCommentsNotificationsContext(ctx context.Context, issueIDOrKey string, commentID int) ([]*Notification, error)
GetIssueCommentsNotificationsContext gets a issue comment with context
func (*Client) GetIssueContext ¶
GetIssueContext gets a issue with context
func (*Client) GetIssueCount ¶
func (c *Client) GetIssueCount(opts *GetIssuesCountOptions) (int, error)
GetIssueCount returns the count of issues
func (*Client) GetIssueCountContext ¶
func (c *Client) GetIssueCountContext(ctx context.Context, opts *GetIssuesCountOptions) (int, error)
GetIssueCountContext returns the count of issues with context
func (*Client) GetIssueParticipants ¶
GetIssueParticipants gets participants of a issue
func (*Client) GetIssueParticipantsContext ¶
func (c *Client) GetIssueParticipantsContext(ctx context.Context, issueIDOrKey string) ([]*User, error)
GetIssueParticipantsContext gets participants of a issue with context
func (*Client) GetIssueSharedFiles ¶
func (c *Client) GetIssueSharedFiles(issueIDOrKey string) ([]*SharedFile, error)
GetIssueSharedFiles gets shared files of a issue
func (*Client) GetIssueSharedFilesContext ¶
func (c *Client) GetIssueSharedFilesContext(ctx context.Context, issueIDOrKey string) ([]*SharedFile, error)
GetIssueSharedFilesContext gets shared files of a issue with context
func (*Client) GetIssueTypes ¶
GetIssueTypes returns the list of categories
func (*Client) GetIssueTypesContext ¶
func (c *Client) GetIssueTypesContext(ctx context.Context, projectIDOrKey interface{}) ([]*IssueType, error)
GetIssueTypesContext returns the list of categories with context
func (*Client) GetIssues ¶
func (c *Client) GetIssues(opts *GetIssuesOptions) ([]*Issue, error)
GetIssues returns the list of issues
func (*Client) GetIssuesContext ¶
GetIssuesContext returns the list of issues with context
func (*Client) GetLicence ¶
GetLicence returns the license information
func (*Client) GetLicenceContext ¶
GetLicenceContext returns the license information with context
func (*Client) GetMyRecentlyViewedProjects ¶
func (c *Client) GetMyRecentlyViewedProjects(opts *GetMyRecentlyViewedProjectsOptions) ([]*RecentlyViewedProject, error)
GetMyRecentlyViewedProjects returns the list of projects I recently viewed
func (*Client) GetMyRecentlyViewedProjectsContext ¶
func (c *Client) GetMyRecentlyViewedProjectsContext(ctx context.Context, opts *GetMyRecentlyViewedProjectsOptions) ([]*RecentlyViewedProject, error)
GetMyRecentlyViewedProjectsContext returns the list of projects I recently viewed with context
func (*Client) GetMyRecentlyViewedWikis ¶
func (c *Client) GetMyRecentlyViewedWikis(opts *GetMyRecentlyViewedWikisOptions) ([]*RecentlyViewedWiki, error)
GetMyRecentlyViewedWikis returns the list of wikis I recently viewed
func (*Client) GetMyRecentlyViewedWikisContext ¶
func (c *Client) GetMyRecentlyViewedWikisContext(ctx context.Context, opts *GetMyRecentlyViewedWikisOptions) ([]*RecentlyViewedWiki, error)
GetMyRecentlyViewedWikisContext returns the list of wikis I recently viewed with context
func (*Client) GetPriorities ¶
GetPriorities returns the list of priorities
func (*Client) GetPrioritiesContext ¶
GetPrioritiesContext returns the list of priorities with context
func (*Client) GetProject ¶
GetProject returns a project
func (*Client) GetProjectActivities ¶
func (c *Client) GetProjectActivities(projectIDOrKey interface{}, opts *GetProjectActivitiesOptions) ([]*Activity, error)
GetProjectActivities returns the list of a project's activities
func (*Client) GetProjectActivitiesContext ¶
func (c *Client) GetProjectActivitiesContext(ctx context.Context, projectIDOrKey interface{}, opts *GetProjectActivitiesOptions) ([]*Activity, error)
GetProjectActivitiesContext returns the list of a project's activities with context
func (*Client) GetProjectAdministrators ¶
GetProjectAdministrators returns the list of administrators in a project
func (*Client) GetProjectAdministratorsContext ¶
func (c *Client) GetProjectAdministratorsContext(ctx context.Context, projectIDOrKey interface{}) ([]*User, error)
GetProjectAdministratorsContext returns the list of administrators in a project with context
func (*Client) GetProjectContext ¶
func (c *Client) GetProjectContext(ctx context.Context, projectIDOrKey interface{}) (*Project, error)
GetProjectContext returns a project with context
func (*Client) GetProjectDiskUsage ¶
func (c *Client) GetProjectDiskUsage(projectIDOrKey interface{}) (*ProjectDiskUsage, error)
GetProjectDiskUsage returns disk usage of a project
func (*Client) GetProjectDiskUsageContext ¶
func (c *Client) GetProjectDiskUsageContext(ctx context.Context, projectIDOrKey interface{}) (*ProjectDiskUsage, error)
GetProjectDiskUsageContext returns the list of administrators in a project with context
func (*Client) GetProjectIcon ¶
GetProjectIcon downloads project icon
func (*Client) GetProjectIconContext ¶
func (c *Client) GetProjectIconContext(ctx context.Context, projectIDOrKey interface{}, writer io.Writer) error
GetProjectIconContext downloads project icon with context
func (*Client) GetProjectTeams ¶
GetProjectTeams returns the list of teams in a project
func (*Client) GetProjectTeamsContext ¶
func (c *Client) GetProjectTeamsContext(ctx context.Context, projectIDOrKey interface{}) ([]*Team, error)
GetProjectTeamsContext returns the list of teams in a project with context
func (*Client) GetProjectUsers ¶
func (c *Client) GetProjectUsers(projectIDOrKey interface{}, opts *GetProjectUsersOptions) ([]*User, error)
GetProjectUsers returns the list of users in a project
func (*Client) GetProjectUsersContext ¶
func (c *Client) GetProjectUsersContext(ctx context.Context, projectIDOrKey interface{}, opts *GetProjectUsersOptions) ([]*User, error)
GetProjectUsersContext returns the list of users in a project with context
func (*Client) GetProjects ¶
func (c *Client) GetProjects(opts *GetProjectsOptions) ([]*Project, error)
GetProjects returns the list of projects
func (*Client) GetProjectsContext ¶
func (c *Client) GetProjectsContext(ctx context.Context, opts *GetProjectsOptions) ([]*Project, error)
GetProjectsContext returns the list of projects
func (*Client) GetRateLimit ¶
GetRateLimit returns the rate limit
func (*Client) GetRateLimitContext ¶
GetRateLimitContext returns the rate limit
func (*Client) GetResolutions ¶
func (c *Client) GetResolutions() ([]*Resolution, error)
GetResolutions returns the list of resolutions
func (*Client) GetResolutionsContext ¶
func (c *Client) GetResolutionsContext(ctx context.Context) ([]*Resolution, error)
GetResolutionsContext returns the list of resolutions with context
func (*Client) GetSpaceContext ¶
GetSpaceContext returns backlog space with context
func (*Client) GetSpaceDiskUsage ¶
func (c *Client) GetSpaceDiskUsage() (*SpaceDiskUsage, error)
GetSpaceDiskUsage returns the disk usage of a space
func (*Client) GetSpaceDiskUsageContext ¶
func (c *Client) GetSpaceDiskUsageContext(ctx context.Context) (*SpaceDiskUsage, error)
GetSpaceDiskUsageContext returns the disk usage of a space with context
func (*Client) GetSpaceIcon ¶
GetSpaceIcon downloads space icon
func (*Client) GetSpaceIconContext ¶
GetSpaceIconContext downloads space icon with context
func (*Client) GetSpaceNotification ¶
func (c *Client) GetSpaceNotification() (*SpaceNotification, error)
GetSpaceNotification returns a space notification
func (*Client) GetSpaceNotificationContext ¶
func (c *Client) GetSpaceNotificationContext(ctx context.Context) (*SpaceNotification, error)
GetSpaceNotificationContext returns a space notification with context
func (*Client) GetStatuses ¶
GetStatuses returns the statuses of a project
func (*Client) GetStatusesContext ¶
func (c *Client) GetStatusesContext(ctx context.Context, projectIDOrKey interface{}) ([]*Status, error)
GetStatusesContext returns the statuses of a project with context
func (*Client) GetTeamContext ¶
GetTeamContext returns a team with context
func (*Client) GetTeamIcon ¶
GetTeamIcon downloads team icon
func (*Client) GetTeamIconContext ¶
GetTeamIconContext downloads team icon with context
func (*Client) GetTeams ¶
func (c *Client) GetTeams(opts *GetTeamsOptions) ([]*Team, error)
GetTeams returns the list of teams
func (*Client) GetTeamsContext ¶
GetTeamsContext returns the list of teams with context
func (*Client) GetUserActivities ¶
func (c *Client) GetUserActivities(id int, opts *GetUserActivitiesOptions) ([]*Activity, error)
GetUserActivities returns the list of a user's activities
func (*Client) GetUserActivitiesContext ¶
func (c *Client) GetUserActivitiesContext(ctx context.Context, id int, opts *GetUserActivitiesOptions) ([]*Activity, error)
GetUserActivitiesContext returns the list of a user's activities with context
func (*Client) GetUserContext ¶
GetUserContext will retrieve the complete user information by id with a custom context
func (*Client) GetUserIcon ¶
GetUserIcon downloads user icon
func (*Client) GetUserIconContext ¶
GetUserIconContext downloads user icon with context
func (*Client) GetUserMySelf ¶
GetUserMySelf returns get my user information
func (*Client) GetUserMySelfContext ¶
GetUserMySelfContext will retrieve the complete my user information by id with a custom context
func (*Client) GetUserMySelfRecentrlyViewedIssues ¶
func (c *Client) GetUserMySelfRecentrlyViewedIssues(opts *GetUserMySelfRecentrlyViewedIssuesOptions) (Issues, error)
GetUserMySelfRecentrlyViewedIssues returns the list of issues a user view recently This api returns a json below: [
{ "issue":{ "id":1111111, ... } }, { "issue":{ "id":2222222, ... } } ...
]
func (*Client) GetUserMySelfRecentrlyViewedIssuesContext ¶
func (c *Client) GetUserMySelfRecentrlyViewedIssuesContext(ctx context.Context, opts *GetUserMySelfRecentrlyViewedIssuesOptions) (Issues, error)
GetUserMySelfRecentrlyViewedIssuesContext returns the list of issues a user view recently with context
func (*Client) GetUserStarCount ¶
func (c *Client) GetUserStarCount(id int, opts *GetUserStarCountOptions) (int, error)
GetUserStarCount returns the count of stars
func (*Client) GetUserStarCountContext ¶
func (c *Client) GetUserStarCountContext(ctx context.Context, id int, opts *GetUserStarCountOptions) (int, error)
GetUserStarCountContext returns the count of stars with context
func (*Client) GetUserStars ¶
func (c *Client) GetUserStars(id int, opts *GetUserStarsOptions) ([]*Star, error)
GetUserStars returns the list of stared contents
func (*Client) GetUserStarsContext ¶
func (c *Client) GetUserStarsContext(ctx context.Context, id int, opts *GetUserStarsOptions) ([]*Star, error)
GetUserStarsContext returns the list of a user's activities with context
func (*Client) GetUserWatchings ¶
GetUserWatchings returns the list of user's watchings
func (*Client) GetUserWatchingsContext ¶
GetUserWatchingsContext returns the list of user's watchings with context
func (*Client) GetUserWatchingsCount ¶
func (c *Client) GetUserWatchingsCount(userID int, opts *GetUserWatchingsCountOptions) (int, error)
GetUserWatchingsCount returns the count of user's watchings
func (*Client) GetUserWatchingsCountContext ¶
func (c *Client) GetUserWatchingsCountContext(ctx context.Context, userID int, opts *GetUserWatchingsCountOptions) (int, error)
GetUserWatchingsCountContext returns the count of user's watchings with context
func (*Client) GetUsersContext ¶
GetUsersContext returns the list of users
func (*Client) GetVersions ¶
GetVersions returns the list of versions in a project
func (*Client) GetVersionsContext ¶
func (c *Client) GetVersionsContext(ctx context.Context, projectIDOrKey interface{}) ([]*Version, error)
GetVersionsContext returns a version of a project with context
func (*Client) GetWatching ¶
GetWatching returns a watching
func (*Client) GetWatchingContext ¶
GetWatchingContext returns a watching with context
func (*Client) GetWebhook ¶
GetWebhook returns the list of webhooks
func (*Client) GetWebhookContext ¶
func (c *Client) GetWebhookContext(ctx context.Context, projectIDOrKey interface{}, webhookID int) (*Webhook, error)
GetWebhookContext returns the list of webhooks with context
func (*Client) GetWebhooks ¶
GetWebhooks returns the list of webhooks
func (*Client) GetWebhooksContext ¶
func (c *Client) GetWebhooksContext(ctx context.Context, projectIDOrKey interface{}) ([]*Webhook, error)
GetWebhooksContext returns the list of webhooks with context
func (*Client) GetWikiAttachmentContent ¶
GetWikiAttachmentContent writes the content to writer
func (*Client) GetWikiAttachmentContentContext ¶
func (c *Client) GetWikiAttachmentContentContext(ctx context.Context, wikiID, attachmentID int, w io.Writer) error
GetWikiAttachmentContentContext writes the content to writer
func (*Client) GetWikiAttachments ¶
func (c *Client) GetWikiAttachments(wikiID int) ([]*Attachment, error)
GetWikiAttachments returns attachements of a wiki
func (*Client) GetWikiAttachmentsContext ¶
GetWikiAttachmentsContext returns attachements of a wiki with context
func (*Client) GetWikiContext ¶
GetWikiContext returns wiki by id
func (*Client) GetWikiCount ¶
func (c *Client) GetWikiCount(opts *GetWikiCountOptions) (int, error)
GetWikiCount returns the number of wikis
func (*Client) GetWikiCountContext ¶
GetWikiCountContext returns the number of wikis
func (*Client) GetWikiTags ¶
func (c *Client) GetWikiTags(opts *GetWikiTagsOptions) ([]*Tag, error)
GetWikiTags returns the tags of wikis
func (*Client) GetWikiTagsContext ¶
GetWikiTagsContext returns the tags of wikis
func (*Client) GetWikis ¶
func (c *Client) GetWikis(opts *GetWikisOptions) ([]*Wiki, error)
GetWikis returns the list of wikis
func (*Client) GetWikisContext ¶
GetWikisContext returns the list of wikis
func (*Client) MarkAsReadWatching ¶
MarkAsReadWatching marks a watching as read
func (*Client) MarkAsReadWatchingContext ¶
MarkAsReadWatchingContext marks a watching as read with Context
func (*Client) NewRequest ¶
NewRequest creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the BaseURL of the Client. Relative URLs should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included as the request body.
func (*Client) SortStatuses ¶
func (c *Client) SortStatuses(projectIDOrKey interface{}, input *SortStatusesInput) ([]*Status, error)
SortStatuses sorts the list of statuses
func (*Client) SortStatusesContext ¶
func (c *Client) SortStatusesContext(ctx context.Context, projectIDOrKey interface{}, input *SortStatusesInput) ([]*Status, error)
SortStatusesContext sorts the list of statuses with context
func (*Client) UpdateCategory ¶
func (c *Client) UpdateCategory(projectIDOrKey interface{}, categoryID int, input *UpdateCategoryInput) (*Category, error)
UpdateCategory updates a category
func (*Client) UpdateCategoryContext ¶
func (c *Client) UpdateCategoryContext(ctx context.Context, projectIDOrKey interface{}, categoryID int, input *UpdateCategoryInput) (*Category, error)
UpdateCategoryContext updates a category with Context
func (*Client) UpdateIssue ¶
func (c *Client) UpdateIssue(issueIDOrKey string, input *UpdateIssueInput) (*Issue, error)
UpdateIssue updates a issue
func (*Client) UpdateIssueComment ¶
func (c *Client) UpdateIssueComment(issueIDOrKey string, commentID int, input *UpdateIssueCommentInput) (*IssueComment, error)
UpdateIssueComment updates a issue comment
func (*Client) UpdateIssueCommentContext ¶
func (c *Client) UpdateIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int, input *UpdateIssueCommentInput) (*IssueComment, error)
UpdateIssueCommentContext updates a issue comment with context
func (*Client) UpdateIssueContext ¶
func (c *Client) UpdateIssueContext(ctx context.Context, issueIDOrKey string, input *UpdateIssueInput) (*Issue, error)
UpdateIssueContext updates a issue with context
func (*Client) UpdateIssueType ¶
func (c *Client) UpdateIssueType(projectIDOrKey interface{}, issueTypeID int, input *UpdateIssueTypeInput) (*IssueType, error)
UpdateIssueType updates an issue type
func (*Client) UpdateIssueTypeContext ¶
func (c *Client) UpdateIssueTypeContext(ctx context.Context, projectIDOrKey interface{}, issueTypeID int, input *UpdateIssueTypeInput) (*IssueType, error)
UpdateIssueTypeContext updates an issue type with Context
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(id int, input *UpdateProjectInput) (*Project, error)
UpdateProject updates a project
func (*Client) UpdateProjectContext ¶
func (c *Client) UpdateProjectContext(ctx context.Context, id int, input *UpdateProjectInput) (*Project, error)
UpdateProjectContext updates a project with Context
func (*Client) UpdateSpaceNotification ¶
func (c *Client) UpdateSpaceNotification(input *UpdateSpaceNotificationInput) (*SpaceNotification, error)
UpdateSpaceNotification updates a space notification
func (*Client) UpdateSpaceNotificationContext ¶
func (c *Client) UpdateSpaceNotificationContext(ctx context.Context, input *UpdateSpaceNotificationInput) (*SpaceNotification, error)
UpdateSpaceNotificationContext updates a space notification with context
func (*Client) UpdateStatus ¶
func (c *Client) UpdateStatus(projectIDOrKey interface{}, statusID int, input *UpdateStatusInput) (*Status, error)
UpdateStatus updates a status
func (*Client) UpdateStatusContext ¶
func (c *Client) UpdateStatusContext(ctx context.Context, projectIDOrKey interface{}, statusID int, input *UpdateStatusInput) (*Status, error)
UpdateStatusContext updates a status
func (*Client) UpdateTeam ¶
func (c *Client) UpdateTeam(teamID int, input *UpdateTeamInput) (*Team, error)
UpdateTeam updates a team
func (*Client) UpdateTeamContext ¶
func (c *Client) UpdateTeamContext(ctx context.Context, teamID int, input *UpdateTeamInput) (*Team, error)
UpdateTeamContext updates a team with Context
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(id int, input *UpdateUserInput) (*User, error)
UpdateUser updates a user
func (*Client) UpdateUserContext ¶
func (c *Client) UpdateUserContext(ctx context.Context, id int, input *UpdateUserInput) (*User, error)
UpdateUserContext updates a user with Context
func (*Client) UpdateVersion ¶
func (c *Client) UpdateVersion(projectIDOrKey interface{}, versionID int, input *UpdateVersionInput) (*Version, error)
UpdateVersion updates a versions (milestone) of a project
func (*Client) UpdateVersionContext ¶
func (c *Client) UpdateVersionContext(ctx context.Context, projectIDOrKey interface{}, versionID int, input *UpdateVersionInput) (*Version, error)
UpdateVersionContext updates a versions (milestone) of a project with Context
func (*Client) UpdateWatching ¶
func (c *Client) UpdateWatching(watchingID int, input *UpdateWatchingInput) (*Watching, error)
UpdateWatching updates a watching
func (*Client) UpdateWatchingContext ¶
func (c *Client) UpdateWatchingContext(ctx context.Context, watchingID int, input *UpdateWatchingInput) (*Watching, error)
UpdateWatchingContext updates a watching with Context
func (*Client) UpdateWebhook ¶
func (c *Client) UpdateWebhook(projectIDOrKey interface{}, webhookID int, input *UpdateWebhookInput) (*Webhook, error)
UpdateWebhook updates a webhook
func (*Client) UpdateWebhookContext ¶
func (c *Client) UpdateWebhookContext(ctx context.Context, projectIDOrKey interface{}, webhookID int, input *UpdateWebhookInput) (*Webhook, error)
UpdateWebhookContext updates a webhook with context
func (*Client) UpdateWiki ¶
func (c *Client) UpdateWiki(wikiID int, input *UpdateWikiInput) (*Wiki, error)
UpdateWiki updates a wiki
func (*Client) UpdateWikiContext ¶
func (c *Client) UpdateWikiContext(ctx context.Context, wikiID int, input *UpdateWikiInput) (*Wiki, error)
UpdateWikiContext updates a wiki with Context
func (*Client) UploadFile ¶
func (c *Client) UploadFile(fpath string) (*FileUploadResponse, error)
UploadFile uploads a file
func (*Client) UploadFileContext ¶
UploadFileContext uploads a file and setting a custom context
type Content ¶
type Content struct { ID *int `json:"id,omitempty"` KeyID *int `json:"key_id,omitempty"` Summary *string `json:"summary,omitempty"` Description *string `json:"description,omitempty"` Comment *Comment `json:"comment,omitempty"` Changes []*Change `json:"changes,omitempty"` }
Content : -
type CreateCategoryInput ¶
type CreateCategoryInput struct {
Name *string `json:"name"`
}
CreateCategoryInput specifies parameters to the CreateCategory method.
type CreateIssueCommentInput ¶
type CreateIssueCommentInput struct { Content *string `json:"content"` NotifiedUserIDs []int `json:"notifiedUserId,omitempty"` AttachmentIDs []int `json:"attachmentId,omitempty"` }
CreateIssueCommentInput specifies parameters to the CreateIssueComment method.
type CreateIssueCommentsNotificationInput ¶
type CreateIssueCommentsNotificationInput struct {
NotifiedUserIDs []int `json:"notifiedUserId,omitempty"`
}
CreateIssueCommentsNotificationInput specifies parameters to the CreateIssueCommentsNotification method.
type CreateIssueInput ¶
type CreateIssueInput struct { ProjectID *int `json:"projectId"` Summary *string `json:"summary"` ParentIssueID *int `json:"parentIssueId,omitempty"` Description *string `json:"description,omitempty"` StartDate *string `json:"startDate,omitempty"` DueDate *string `json:"dueDate,omitempty"` EstimatedHours *float64 `json:"estimatedHours,omitempty"` ActualHours *float64 `json:"actualHours,omitempty"` IssueTypeID *int `json:"issueTypeId"` CategoryIDs []int `json:"categoryId,omitempty"` VersionIDs []int `json:"versionId,omitempty"` MilestoneIDs []int `json:"milestoneId,omitempty"` PriorityID *int `json:"priorityId"` AssigneeID *int `json:"assigneeId,omitempty"` NotifiedUserIDs []int `json:"notifiedUserId,omitempty"` AttachmentIDs []int `json:"attachmentId,omitempty"` CustomFields []*IssueCustomField `json:"-"` }
CreateIssueInput specifies parameters to the CreateIssue method.
type CreateIssueSharedFilesInput ¶
type CreateIssueSharedFilesInput struct {
}CreateIssueSharedFilesInput specifies parameters to the CreateIssueSharedFiles method.
type CreateIssueTypeInput ¶
type CreateIssueTypeInput struct { Name *string `json:"name"` Color *string `json:"color"` TemplateSummary *string `json:"templateSummary,omitempty"` TemplateDescription *string `json:"templateDescription,omitempty"` }
CreateIssueTypeInput specifies parameters to the CreateIssueType method.
type CreateProjectInput ¶
type CreateProjectInput struct { Name *string `json:"name"` Key *string `json:"key"` ChartEnabled *bool `json:"chartEnabled"` ProjectLeaderCanEditProjectLeader *bool `json:"projectLeaderCanEditProjectLeader,omitempty"` SubtaskingEnabled *bool `json:"subtaskingEnabled"` TextFormattingRule *string `json:"textFormattingRule"` }
CreateProjectInput contains all the parameters necessary (including the optional ones) for a CreateProject() request.
type CreateStatusInput ¶
CreateStatusInput specifies parameters to the CreateStatus method.
type CreateTeamInput ¶
CreateTeamInput specifies parameters to the CreateTeam method.
type CreateUserInput ¶
type CreateUserInput struct { UserID *string Password *string Name *string MailAddress *string RoleType RoleType }
CreateUserInput contains all the parameters necessary (including the optional ones) for a CreateUser() request.
type CreateVersionInput ¶
type CreateVersionInput struct { Name *string `json:"name"` Description *string `json:"description,omitempty"` StartDate *string `json:"startDate,omitempty"` ReleaseDueDate *string `json:"releaseDueDate,omitempty"` }
CreateVersionInput specifies parameters to the CreateVersion method.
type CreateWatchingInput ¶
type CreateWatchingInput struct { IssueIDOrKey *string `json:"issueIdOrKey"` Note *string `json:"note,omitempty"` }
CreateWatchingInput specifies parameters to the CreateWatching method.
type CreateWebhookInput ¶
type CreateWebhookInput struct { Name *string `json:"name"` Description *string `json:"description,omitempty"` HookURL *string `json:"hookUrl"` AllEvent *bool `json:"allEvent,omitempty"` ActivityTypeIDs []int `json:"activityTypeIds,omitempty"` }
CreateWebhookInput contains all the parameters necessary (including the optional ones) for a CreateWebhook() request.
type CreateWikiInput ¶
type CreateWikiInput struct { ProjectID *int `json:"projectId"` Name *string `json:"name"` Content *string `json:"content"` MailNotify *bool `json:"mailNotify,omitempty"` }
CreateWikiInput contains all the parameters necessary (including the optional ones) for a CreateWiki() request.
type CustomField ¶
type CustomField struct { ID *int `json:"id,omitempty"` TypeID *int `json:"typeId,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Required *bool `json:"required,omitempty"` ApplicableIssueTypes []int `json:"applicableIssueTypes,omitempty"` AllowAddItem *bool `json:"allowAddItem,omitempty"` Items []*Item `json:"items,omitempty"` }
CustomField : custom field
type DeleteIssueTypeInput ¶
type DeleteIssueTypeInput struct {
SubstituteIssueTypeID *int `json:"substituteIssueTypeId,omitempty"`
}
DeleteIssueTypeInput specifies parameters to the DeleteIssueType method.
type DeleteProjectAdministratorInput ¶
type DeleteProjectAdministratorInput struct {
UserID *int `json:"userId"`
}
DeleteProjectAdministratorInput specifies parameters to the DeleteProjectAdministrator method.
type DeleteProjectTeamInput ¶
type DeleteProjectTeamInput struct {
TeamID *int `json:"teamId"`
}
DeleteProjectTeamInput specifies parameters to the DeleteProjectTeam method.
type DeleteProjectUserInput ¶
type DeleteProjectUserInput struct {
UserID *int `json:"userId"`
}
DeleteProjectUserInput specifies parameters to the DeleteProjectUser method.
type DeleteStatusInput ¶
type DeleteStatusInput struct {
SubstituteStatusID *int `json:"substituteStatusId"`
}
DeleteStatusInput specifies parameters to the DeleteStatus method.
type Error ¶
type Error struct { Message *string `json:"message,omitempty"` Code *int `json:"code,omitempty"` MoreInfo *string `json:"moreInfo,omitempty"` }
Error is backlog error
type ErrorResponse ¶
type ErrorResponse struct {
Errors []*Error `json:"errors"`
}
ErrorResponse is backlog error response
type FileUploadResponse ¶
type FileUploadResponse struct { ID *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` Size *int `json:"size,omitempty"` }
FileUploadResponse : response of uploading file
type GetIssueCommentsOptions ¶
type GetIssueCommentsOptions struct { MinID *int `json:"minId,omitempty"` MaxID *int `json:"maxId,omitempty"` Count *int `json:"count,omitempty"` Order Order `json:"order,omitempty"` }
GetIssueCommentsOptions specifies parameters to the GetIssueComments method.
type GetIssuesCountOptions ¶
type GetIssuesCountOptions struct { ProjectIDs []int `url:"projectId[],omitempty"` IssueTypeIDs []int `url:"issueTypeId[],omitempty"` CategoryIDs []int `url:"categoryId[],omitempty"` VersionIDs []int `url:"versionId[],omitempty"` MilestoneIDs []int `url:"milestoneId[],omitempty"` StatusIDs []int `url:"statusId[],omitempty"` PriorityIDs []int `url:"priorityId[],omitempty"` AssigneeIDs []int `url:"assigneeId[],omitempty"` CreatedUserIDs []int `url:"createdUserId[],omitempty"` ResolutionIDs []int `url:"resolutionId[],omitempty"` ParentChild *int `url:"parentChild,omitempty"` Attachment *bool `url:"attachment,omitempty"` Sort Sort `url:"sort,omitempty"` Order Order `url:"order,omitempty"` Offset *int `url:"offset,omitempty"` Count *int `url:"count,omitempty"` CreatedSince *string `url:"createdSince,omitempty"` CreatedUntil *string `url:"createdUntil,omitempty"` UpdatedSince *string `url:"updatedSince,omitempty"` UpdatedUntil *string `url:"updatedUntil,omitempty"` StartDateSince *string `url:"startDateSince,omitempty"` StartDateUntil *string `url:"startDateUntil,omitempty"` DueDateSince *string `url:"dueDateSince,omitempty"` DueDateUntil *string `url:"dueDateUntil,omitempty"` IDs []int `url:"id[],omitempty"` ParentIssueIDs []int `url:"parentIssueId[],omitempty"` Keyword *string `url:"keyword,omitempty"` }
GetIssuesCountOptions specifies parameters to the GetIssueCount method.
type GetIssuesOptions ¶
type GetIssuesOptions struct { ProjectIDs []int `url:"projectId[],omitempty"` IssueTypeIDs []int `url:"issueTypeId[],omitempty"` CategoryIDs []int `url:"categoryId[],omitempty"` VersionIDs []int `url:"versionId[],omitempty"` MilestoneIDs []int `url:"milestoneId[],omitempty"` StatusIDs []int `url:"statusId[],omitempty"` PriorityIDs []int `url:"priorityId[],omitempty"` AssigneeIDs []int `url:"assigneeId[],omitempty"` CreatedUserIDs []int `url:"createdUserId[],omitempty"` ResolutionIDs []int `url:"resolutionId[],omitempty"` ParentChild *int `url:"parentChild,omitempty"` Attachment *bool `url:"attachment,omitempty"` Sort Sort `url:"sort,omitempty"` Order Order `url:"order,omitempty"` Offset *int `url:"offset,omitempty"` Count *int `url:"count,omitempty"` CreatedSince *string `url:"createdSince,omitempty"` CreatedUntil *string `url:"createdUntil,omitempty"` UpdatedSince *string `url:"updatedSince,omitempty"` UpdatedUntil *string `url:"updatedUntil,omitempty"` StartDateSince *string `url:"startDateSince,omitempty"` StartDateUntil *string `url:"startDateUntil,omitempty"` DueDateSince *string `url:"dueDateSince,omitempty"` DueDateUntil *string `url:"dueDateUntil,omitempty"` IDs []int `url:"id[],omitempty"` ParentIssueIDs []int `url:"parentIssueId[],omitempty"` Keyword *string `url:"keyword,omitempty"` }
GetIssuesOptions specifies parameters to the GetIssues method.
type GetMyRecentlyViewedProjectsOptions ¶
type GetMyRecentlyViewedProjectsOptions struct { Order Order `url:"order,omitempty"` Offset *int `url:"offset,omitempty"` Count *int `url:"count,omitempty"` }
GetMyRecentlyViewedProjectsOptions specifies parameters to the GetMyRecentlyViewedProject method.
type GetMyRecentlyViewedWikisOptions ¶
type GetMyRecentlyViewedWikisOptions struct { Order Order `url:"order,omitempty"` Offset *int `url:"offset,omitempty"` Count *int `url:"count,omitempty"` }
GetMyRecentlyViewedWikisOptions specifies parameters to the GetMyRecentlyViewedWikis method.
type GetProjectActivitiesOptions ¶
type GetProjectActivitiesOptions struct { ActivityTypeIDs []int `url:"activityTypeId[],omitempty"` MinID *int `url:"minId,omitempty"` MaxID *int `url:"maxId,omitempty"` Count *int `url:"count,omitempty"` Order Order `url:"order,omitempty"` }
GetProjectActivitiesOptions specifies parameters to the GetProjectActivities method.
type GetProjectUsersOptions ¶
type GetProjectUsersOptions struct {
ExcludeGroupMembers *bool `url:"excludeGroupMembers,omitempty"`
}
GetProjectUsersOptions specifies parameters to the GetProjectUsers method.
type GetProjectsOptions ¶
GetProjectsOptions contains all the parameters necessary (including the optional ones) for a GetProjects() request.
type GetTeamsOptions ¶
type GetTeamsOptions struct { Order Order `url:"order,omitempty"` Offset *int `url:"offset,omitempty"` Count *int `url:"count,omitempty"` }
GetTeamsOptions specifies parameters to the GetTeams method.
type GetUserActivitiesOptions ¶
type GetUserActivitiesOptions struct { ActivityTypeIDs []int `url:"activityTypeId[],omitempty"` MinID *int `url:"minId,omitempty"` MaxID *int `url:"maxId,omitempty"` Count *int `url:"count,omitempty"` Order Order `url:"order,omitempty"` }
GetUserActivitiesOptions specifies parameters to the GetUserActivities method.
type GetUserMySelfRecentrlyViewedIssuesOptions ¶
type GetUserMySelfRecentrlyViewedIssuesOptions struct { Order Order `url:"order,omitempty"` Offset *int `url:"offset,omitempty"` Count *int `url:"count,omitempty"` }
GetUserMySelfRecentrlyViewedIssuesOptions specifies parameters to the GetUserMySelfRecentrlyViewedIssues method.
type GetUserStarCountOptions ¶
type GetUserStarCountOptions struct { Since *string `url:"since,omitempty"` Until *string `url:"until,omitempty"` }
GetUserStarCountOptions specifies parameters to the GetUserStarCount method.
type GetUserStarsOptions ¶
type GetUserStarsOptions struct { MinID *int `url:"minId,omitempty"` MaxID *int `url:"maxId,omitempty"` Count *int `url:"count,omitempty"` Order Order `url:"order,omitempty"` }
GetUserStarsOptions specifies parameters to the GetUserStars method.
type GetUserWatchingsCountOptions ¶
type GetUserWatchingsCountOptions struct { ResourceAlreadyRead *bool `url:"resourceAlreadyRead,omitempty"` AlreadyRead *bool `url:"alreadyRead,omitempty"` }
GetUserWatchingsCountOptions specifies parameters to the GetUserWatchingsCount method.
type GetUserWatchingsOptions ¶
type GetUserWatchingsOptions struct { Order *Order `url:"order,omitempty"` Sort *string `url:"sort,omitempty"` Count *int `url:"count,omitempty"` Offset *int `url:"offset,omitempty"` ResourceAlreadyRead *bool `url:"resourceAlreadyRead,omitempty"` IssueIDs []int `url:"issueId[],omitempty"` }
GetUserWatchingsOptions specifies parameters to the GetUserWatchings method.
type GetWikiCountOptions ¶
type GetWikiCountOptions struct {
ProjectIDOrKey interface{} `url:"projectIdOrKey,omitempty"`
}
GetWikiCountOptions specifies parameters to the GetWikiCount method.
type GetWikiTagsOptions ¶
type GetWikiTagsOptions struct {
ProjectIDOrKey interface{} `url:"projectIdOrKey,omitempty"`
}
GetWikiTagsOptions specifies parameters to the GetWikiTags method.
type GetWikisOptions ¶
type GetWikisOptions struct { ProjectIDOrKey interface{} `url:"projectIdOrKey"` Keyword *string `url:"keyword,omitempty"` }
GetWikisOptions specifies parameters to the GetWikis method.
type Issue ¶
type Issue struct { ID *int `json:"id,omitempty"` ProjectID *int `json:"projectId,omitempty"` IssueKey *string `json:"issueKey,omitempty"` KeyID *int `json:"keyId,omitempty"` IssueType *IssueType `json:"issueType,omitempty"` Summary *string `json:"summary,omitempty"` Description *string `json:"description,omitempty"` Resolution *Resolution `json:"resolution,omitempty"` Priority *Priority `json:"priority,omitempty"` Status *Status `json:"status,omitempty"` Assignee *User `json:"assignee,omitempty"` Category []*Category `json:"category,omitempty"` Versions []*Version `json:"versions,omitempty"` Milestone []*Milestone `json:"milestone,omitempty"` StartDate *string `json:"startDate,omitempty"` DueDate *string `json:"dueDate,omitempty"` EstimatedHours *float64 `json:"estimatedHours,omitempty"` ActualHours *float64 `json:"actualHours,omitempty"` ParentIssueID *int `json:"parentIssueId,omitempty"` CreatedUser *User `json:"createdUser,omitempty"` Created *Timestamp `json:"created,omitempty"` UpdatedUser *User `json:"updatedUser,omitempty"` Updated *Timestamp `json:"updated,omitempty"` CustomFields []*IssueCustomField `json:"customFields,omitempty"` Attachments []*Attachment `json:"attachments,omitempty"` Stars []*Star `json:"stars,omitempty"` }
Issue : -
type IssueComment ¶
type IssueComment struct { ID *int `json:"id,omitempty"` Content *string `json:"content,omitempty"` ChangeLog []*ChangeLog `json:"changeLog,omitempty"` CreatedUser *User `json:"createdUser,omitempty"` Created *Timestamp `json:"created,omitempty"` Updated *Timestamp `json:"updated,omitempty"` Stars []*Star `json:"stars,omitempty"` Notifications []*Notification `json:"notifications,omitempty"` }
IssueComment : issue comment
type IssueCustomField ¶
type IssueCustomField struct { ID *int `json:"id,omitempty"` FieldTypeID *int `json:"fieldTypeId,omitempty"` Name *string `json:"name,omitempty"` Value interface{} `json:"value,omitempty"` }
IssueCustomField : custom field in issue
type IssueType ¶
type IssueType struct { ID *int `json:"id,omitempty"` ProjectID *int `json:"projectId,omitempty"` Name *string `json:"name,omitempty"` Color *string `json:"color,omitempty"` DisplayOrder *int `json:"displayOrder,omitempty"` TemplateSummary *string `json:"templateSummary,omitempty"` TemplateDescription *string `json:"templateDescription,omitempty"` }
IssueType : issue type
type Item ¶
type Item struct { ID *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` DisplayOrder *int `json:"displayOrder,omitempty"` }
Item : item
type License ¶
type License struct { Active *bool `json:"active,omitempty"` AttachmentLimit *int `json:"attachmentLimit,omitempty"` AttachmentLimitPerFile *int `json:"attachmentLimitPerFile,omitempty"` AttachmentNumLimit *int `json:"attachmentNumLimit,omitempty"` Attribute *bool `json:"attribute,omitempty"` AttributeLimit *int `json:"attributeLimit,omitempty"` Burndown *bool `json:"burndown,omitempty"` CommentLimit *int `json:"commentLimit,omitempty"` ComponentLimit *int `json:"componentLimit,omitempty"` FileSharing *bool `json:"fileSharing,omitempty"` Gantt *bool `json:"gantt,omitempty"` Git *bool `json:"git,omitempty"` IssueLimit *int `json:"issueLimit,omitempty"` LicenceTypeID *int `json:"licenceTypeId,omitempty"` LimitDate *Timestamp `json:"limitDate,omitempty"` NulabAccount *bool `json:"nulabAccount,omitempty"` ParentChildIssue *bool `json:"parentChildIssue,omitempty"` PostIssueByMail *bool `json:"postIssueByMail,omitempty"` ProjectGroup *bool `json:"projectGroup,omitempty"` ProjectLimit *int `json:"projectLimit,omitempty"` PullRequestAttachmentLimitPerFile *int `json:"pullRequestAttachmentLimitPerFile,omitempty"` PullRequestAttachmentNumLimit *int `json:"pullRequestAttachmentNumLimit,omitempty"` RemoteAddress *bool `json:"remoteAddress,omitempty"` RemoteAddressLimit *int `json:"remoteAddressLimit,omitempty"` StartedOn *Timestamp `json:"startedOn,omitempty"` StorageLimit *int64 `json:"storageLimit,omitempty"` Subversion *bool `json:"subversion,omitempty"` SubversionExternal *bool `json:"subversionExternal,omitempty"` UserLimit *int `json:"userLimit,omitempty"` VersionLimit *int `json:"versionLimit,omitempty"` WikiAttachment *bool `json:"wikiAttachment,omitempty"` WikiAttachmentLimitPerFile *int `json:"wikiAttachmentLimitPerFile,omitempty"` WikiAttachmentNumLimit *int `json:"wikiAttachmentNumLimit,omitempty"` }
License : license
type LimitStatus ¶
type LimitStatus struct { Limit *int `json:"limit,omitempty"` Remaining *int `json:"remaining,omitempty"` Reset *int `json:"reset,omitempty"` }
LimitStatus : limit status
func (*LimitStatus) ResetAsTime ¶
func (ls *LimitStatus) ResetAsTime() time.Time
ResetAsTime returns reset as time
type Milestone ¶
type Milestone struct { ID *int `json:"id,omitempty"` ProjectID *int `json:"projectId,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` StartDate *string `json:"startDate,omitempty"` ReleaseDueDate *string `json:"releaseDueDate,omitempty"` Archived *bool `json:"archived,omitempty"` }
Milestone : milestone
type Notification ¶
type Notification struct { ID *int `json:"id,omitempty"` AlreadyRead *bool `json:"alreadyRead,omitempty"` Reason *int `json:"reason,omitempty"` User *User `json:"user,omitempty"` ResourceAlreadyRead *bool `json:"resourceAlreadyRead,omitempty"` }
Notification : -
type NotificationInfo ¶
type NotificationInfo struct {
Type *string `json:"type,omitempty"`
}
NotificationInfo : notification information
type Project ¶
type Project struct { ID *int `json:"id,omitempty"` ProjectKey *string `json:"projectKey,omitempty"` Name *string `json:"name,omitempty"` ChartEnabled *bool `json:"chartEnabled,omitempty"` SubtaskingEnabled *bool `json:"subtaskingEnabled,omitempty"` ProjectLeaderCanEditProjectLeader *bool `json:"projectLeaderCanEditProjectLeader,omitempty"` TextFormattingRule *string `json:"textFormattingRule,omitempty"` Archived *bool `json:"archived,omitempty"` DisplayOrder *int `json:"displayOrder,omitempty"` }
Project : project
type ProjectDiskUsage ¶
type ProjectDiskUsage struct { ProjectID *int `json:"projectId,omitempty"` Issue *int `json:"issue,omitempty"` Wiki *int `json:"wiki,omitempty"` File *int `json:"file,omitempty"` Subversion *int `json:"subversion,omitempty"` Git *int `json:"git,omitempty"` GitLFS *int `json:"gitLFS,omitempty"` }
ProjectDiskUsage : disk usage of project
type RateLimit ¶
type RateLimit struct { Read *LimitStatus `json:"read,omitempty"` Update *LimitStatus `json:"update,omitempty"` Search *LimitStatus `json:"search,omitempty"` Icon *LimitStatus `json:"icon,omitempty"` }
RateLimit : rate limit
type RecentlyViewedProject ¶
type RecentlyViewedProject struct { Project *Project `json:"project"` Updated *Timestamp `json:"updated"` }
RecentlyViewedProject : recently viewed project
type RecentlyViewedWiki ¶
RecentlyViewedWiki : recently viewed wiki
type Resolution ¶
Resolution : resolutions
type ResponseIssue ¶
type ResponseIssue struct { Issue *Issue `json:"issue,omitempty"` Updated *Timestamp `json:"updated,omitempty"` }
ResponseIssue : response of issue api
type ResponseRateLimit ¶
type ResponseRateLimit struct {
RateLimit *RateLimit `json:"rateLimit,omitempty"`
}
ResponseRateLimit : rate limit API response
type SortStatusesInput ¶
type SortStatusesInput struct {
StatusIDs []int `json:"statusId,omitempty"`
}
SortStatusesInput specifies parameters to the SortStatuses method.
type Space ¶
type Space struct { SpaceKey *string `json:"spaceKey,omitempty"` Name *string `json:"name,omitempty"` OwnerID *int `json:"ownerId,omitempty"` Lang *string `json:"lang,omitempty"` Timezone *string `json:"timezone,omitempty"` ReportSendTime *string `json:"reportSendTime,omitempty"` TextFormattingRule *string `json:"textFormattingRule,omitempty"` Created *Timestamp `json:"created,omitempty"` Updated *Timestamp `json:"updated,omitempty"` }
Space : backlog space
type SpaceDiskUsage ¶
type SpaceDiskUsage struct { Capacity *int `json:"capacity,omitempty"` Issue *int `json:"issue,omitempty"` Wiki *int `json:"wiki,omitempty"` File *int `json:"file,omitempty"` Subversion *int `json:"subversion,omitempty"` Git *int `json:"git,omitempty"` GitLFS *int `json:"gitLFS,omitempty"` Details []*SpaceDiskUsageDetail `json:"details,omitempty"` }
SpaceDiskUsage : disk usage of space
type SpaceDiskUsageDetail ¶
type SpaceDiskUsageDetail struct { ProjectID *int `json:"projectId,omitempty"` Issue *int `json:"issue,omitempty"` Wiki *int `json:"wiki,omitempty"` File *int `json:"file,omitempty"` Subversion *int `json:"subversion,omitempty"` Git *int `json:"git,omitempty"` GitLFS *int `json:"gitLFS,omitempty"` }
SpaceDiskUsageDetail : the detail of disk usage of a space
type SpaceNotification ¶
type SpaceNotification struct { Content *string `json:"content,omitempty"` Updated *Timestamp `json:"updated,omitempty"` }
SpaceNotification : backlog space notification
type Star ¶
type Star struct { ID *int `json:"id,omitempty"` Comment *string `json:"comment,omitempty"` URL *string `json:"url,omitempty"` Title *string `json:"title,omitempty"` Presenter *User `json:"presenter,omitempty"` Created *Timestamp `json:"created,omitempty"` }
Star : star of wiki
type Status ¶
type Status struct { ID *int `json:"id,omitempty"` ProjectID *int `json:"projectId,omitempty"` Name *string `json:"name,omitempty"` Color *string `json:"color,omitempty"` DisplayOrder *int `json:"displayOrder,omitempty"` }
Status : the status of project
type Team ¶
type Team struct { ID *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` Members []*User `json:"members,omitempty"` DisplayOrder *int `json:"displayOrder,omitempty"` CreatedUser *User `json:"createdUser,omitempty"` Created *Timestamp `json:"created,omitempty"` UpdatedUser *User `json:"updatedUser,omitempty"` Updated *Timestamp `json:"updated,omitempty"` }
Team : team
type Timestamp ¶
Timestamp represents a time that can be unmarshalled from a JSON string formatted as either an RFC3339 or Unix timestamp. This is necessary for some fields since the GitHub API is inconsistent in how it represents times. All exported methods of time.Time can be called on Timestamp.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. Time is expected in RFC3339 or Unix format.
type UpdateCategoryInput ¶
type UpdateCategoryInput struct {
Name *string `json:"name"`
}
UpdateCategoryInput specifies parameters to the UpdateCategory method.
type UpdateIssueCommentInput ¶
type UpdateIssueCommentInput struct {
Content *string `json:"content,omitempty"`
}
UpdateIssueCommentInput specifies parameters to the UpdateIssueComment method.
type UpdateIssueInput ¶
type UpdateIssueInput struct { Summary *string `json:"summary,omitempty"` ParentIssueID *int `json:"parentIssueId,omitempty"` Description *string `json:"description,omitempty"` StatusID *int `json:"statusId,omitempty"` ResolutionID interface{} `json:"resolutionId,omitempty"` StartDate *string `json:"startDate,omitempty"` DueDate *string `json:"dueDate,omitempty"` EstimatedHours interface{} `json:"estimatedHours,omitempty"` ActualHours interface{} `json:"actualHours,omitempty"` IssueTypeID *int `json:"issueTypeId,omitempty"` CategoryIDs []int `json:"categoryId,omitempty"` VersionIDs []int `json:"versionId,omitempty"` MilestoneIDs []int `json:"milestoneId,omitempty"` PriorityID *int `json:"priorityId,omitempty"` AssigneeID interface{} `json:"assigneeId,omitempty"` NotifiedUserIDs []int `json:"notifiedUserId,omitempty"` AttachmentIDs []int `json:"attachmentId,omitempty"` Comment *string `json:"comment,omitempty"` CustomFields []*IssueCustomField `json:"-"` }
UpdateIssueInput specifies parameters to the UpdateIssue method.
The following values are updated as integer or an empty string: - resolutionId - estimatedHours - actualHours - assigneeId
ex. update `estimatedHours` to 10 - UpdateIssue("EX-1", &UpdateIssueInput{ EstimatedHours: Int(10) })
ex. update `estimatedHours` to an empty string - UpdateIssue("EX-1", &UpdateIssueInput{ EstimatedHours: String("") })
type UpdateIssueTypeInput ¶
type UpdateIssueTypeInput struct { Name *string `json:"name,omitempty"` Color *string `json:"color,omitempty"` TemplateSummary *string `json:"templateSummary,omitempty"` TemplateDescription *string `json:"templateDescription,omitempty"` }
UpdateIssueTypeInput specifies parameters to the UpdateIssueType method.
type UpdateProjectInput ¶
type UpdateProjectInput struct { Name *string `json:"name,omitempty"` Key *string `json:"key,omitempty"` ChartEnabled *bool `json:"chartEnabled,omitempty"` SubtaskingEnabled *bool `json:"subtaskingEnabled,omitempty"` ProjectLeaderCanEditProjectLeader *bool `json:"projectLeaderCanEditProjectLeader,omitempty"` TextFormattingRule *string `json:"textFormattingRule,omitempty"` Archived *bool `json:"archived,omitempty"` }
UpdateProjectInput contains all the parameters necessary (including the optional ones) for a UpdateProject() request.
type UpdateSpaceNotificationInput ¶
type UpdateSpaceNotificationInput struct {
Content *string `json:"content"`
}
UpdateSpaceNotificationInput contains all the parameters necessary (including the optional ones) for a UpdateSpaceNotification() request.
type UpdateStatusInput ¶
type UpdateStatusInput struct { Name *string `json:"name,omitempty"` Color *string `json:"color,omitempty"` }
UpdateStatusInput specifies parameters to the UpdateStatus method.
type UpdateTeamInput ¶
UpdateTeamInput specifies parameters to the UpdateTeam method.
type UpdateUserInput ¶
UpdateUserInput contains all the parameters necessary (including the optional ones) for a UpdateUser() request.
type UpdateVersionInput ¶
type UpdateVersionInput struct { Name *string `json:"name"` Description *string `json:"description,omitempty"` StartDate *string `json:"startDate,omitempty"` ReleaseDueDate *string `json:"releaseDueDate,omitempty"` Archived *bool `json:"archived,omitempty"` }
UpdateVersionInput specifies parameters to the UpdateVersion method.
type UpdateWatchingInput ¶
type UpdateWatchingInput struct {
Note *string `json:"note,omitempty"`
}
UpdateWatchingInput specifies parameters to the UpdateWatching method.
type UpdateWebhookInput ¶
type UpdateWebhookInput struct { Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` HookURL *string `json:"hookUrl,omitempty"` AllEvent *bool `json:"allEvent,omitempty"` ActivityTypeIDs []int `json:"activityTypeIds,omitempty"` }
UpdateWebhookInput contains all the parameters necessary (including the optional ones) for a UpdateWebhook() request.
type UpdateWikiInput ¶
type UpdateWikiInput struct { Name *string `json:"name"` Content *string `json:"content"` MailNotify *bool `json:"mailNotify,omitempty"` }
UpdateWikiInput contains all the parameters necessary (including the optional ones) for a UpdateWiki() request.
type User ¶
type User struct { ID *int `json:"id,omitempty"` UserID *string `json:"userId,omitempty"` Name *string `json:"name,omitempty"` RoleType RoleType `json:"roleType"` Lang *string `json:"lang,omitempty"` MailAddress *string `json:"mailAddress,omitempty"` }
User : backlog user
type Version ¶
type Version struct { ID *int `json:"id,omitempty"` ProjectID *int `json:"projectId,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` StartDate *string `json:"startDate,omitempty"` // yyyy-MM-dd ReleaseDueDate *string `json:"releaseDueDate,omitempty"` // yyyy-MM-dd Archived *bool `json:"archived,omitempty"` DisplayOrder *int `json:"displayOrder,omitempty"` }
Version : milestone
type Watching ¶
type Watching struct { ID *int `json:"id,omitempty"` ResourceAlreadyRead *bool `json:"resourceAlreadyRead,omitempty"` Note *string `json:"note,omitempty"` Type *string `json:"type,omitempty"` Issue *Issue `json:"issue,omitempty"` LastContentUpdated *Timestamp `json:"lastContentUpdated,omitempty"` Created *Timestamp `json:"created,omitempty"` Updated *Timestamp `json:"updated,omitempty"` }
Watching : -
type Webhook ¶
type Webhook struct { ID *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` HookURL *string `json:"hookUrl,omitempty"` AllEvent *bool `json:"allEvent,omitempty"` ActivityTypeIds []int `json:"activityTypeIds,omitempty"` CreatedUser *User `json:"createdUser,omitempty"` Created *Timestamp `json:"created,omitempty"` UpdatedUser *User `json:"updatedUser,omitempty"` Updated *Timestamp `json:"updated,omitempty"` }
Webhook : -
type Wiki ¶
type Wiki struct { ID *int `json:"id,omitempty"` ProjectID *int `json:"projectId,omitempty"` Name *string `json:"name,omitempty"` Content *string `json:"content,omitempty"` Tags []*Tag `json:"tags,omitempty"` Attachments []*Attachment `json:"attachments,omitempty"` Stars []*Star `json:"stars,omitempty"` CreatedUser *User `json:"createdUser,omitempty"` Created *Timestamp `json:"created,omitempty"` UpdatedUser *User `json:"updatedUser,omitempty"` Updated *Timestamp `json:"updated,omitempty"` }
Wiki : wiki