Documentation ¶
Index ¶
- type ConduitCapabilitiesResponse
- type ConduitConnectResponse
- type ConduitQueryResponse
- type DifferentialQueryDiffsResponse
- type DifferentialQueryResponse
- type DiffusionQueryCommitsResponse
- type FileDownloadResponse
- type MacroCreateMemeResponse
- type ManiphestGetTaskTransactionsResponse
- type ManiphestQueryResponse
- type ManiphestSearchAttachmentColumnBoards
- type ManiphestSearchAttachmentColumnBoardsColumn
- type ManiphestSearchAttachmentColumnBoardsColumns
- type ManiphestSearchResponse
- type ManiphestSearchResponseItem
- type ManiphestSearchResultColumn
- type ManiphestSearchResultPriority
- type ManiphestSearchResultStatus
- type PHIDLookupResponse
- type PHIDQueryResponse
- type PasteCreateResponse
- type PasteQueryResponse
- type PhrictionInfoResponse
- type ProjectQueryResponse
- type RemarkupProcessResponse
- type RepositoryQueryResponse
- type SearchResultPolicy
- type TaskDescription
- type UserQueryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConduitCapabilitiesResponse ¶
type ConduitCapabilitiesResponse struct { Authentication []string `json:"authentication"` Signatures []string `json:"signatures"` Input []string `json:"input"` Output []string `json:"output"` }
ConduitCapabilitiesResponse represents a response from calling conduit.capabilities.
type ConduitConnectResponse ¶
type ConduitConnectResponse struct { SessionKey string `json:"sessionKey"` ConnectionID int64 `json:"connectionID"` }
ConduitConnectResponse represents the response from calling conduit.connect.
type ConduitQueryResponse ¶ added in v0.2.0
type ConduitQueryResponse map[string]*entities.ConduitMethod
ConduitQueryResponse is the response of calling conduit.query.
type DifferentialQueryDiffsResponse ¶ added in v0.4.0
type DifferentialQueryDiffsResponse []*entities.DifferentialDiff
DifferentialQueryDiffsResponse is the response of calling differential.querydiffs.
type DifferentialQueryResponse ¶
type DifferentialQueryResponse []*entities.DifferentialRevision
DifferentialQueryResponse is the response of calling differential.query.
type DiffusionQueryCommitsResponse ¶
type DiffusionQueryCommitsResponse struct { Data map[string]entities.DiffusionCommit `json:"data"` IdentifierMap map[string]string `json:"identifierMap"` Cursor entities.Cursor `json:"cursor"` }
DiffusionQueryCommitsResponse represents a response of the diffusion.querycommits call.
type FileDownloadResponse ¶
type FileDownloadResponse struct {
Result string `json:"result"`
}
FileDownloadResponse represents a response from calling file.download.
type MacroCreateMemeResponse ¶
type MacroCreateMemeResponse struct {
URI string `json:"uri"`
}
MacroCreateMemeResponse represents a response from calling macro.creatememe.
type ManiphestGetTaskTransactionsResponse ¶ added in v0.3.0
type ManiphestGetTaskTransactionsResponse map[string][]*entities.ManiphestTaskTranscation
ManiphestGetTaskTransactionsResponse is the response of calling maniphest.query.
type ManiphestQueryResponse ¶
type ManiphestQueryResponse map[string]*entities.ManiphestTask
ManiphestQueryResponse is the response of calling maniphest.query.
func (ManiphestQueryResponse) Get ¶
func (res ManiphestQueryResponse) Get(key string) *entities.ManiphestTask
Get gets the task with the speicfied numeric ID.
type ManiphestSearchAttachmentColumnBoards ¶ added in v0.3.3
type ManiphestSearchAttachmentColumnBoards struct { // ColumnMap is dictionary of columns. ColumnMap map[string]*ManiphestSearchAttachmentColumnBoardsColumns // Columns is collection of columns. Columns []*ManiphestSearchAttachmentColumnBoardsColumn }
ManiphestSearchAttachmentColumnBoards is a wrapper type for columns because sometimes columns is a map and sometimes it is an array.
func (*ManiphestSearchAttachmentColumnBoards) UnmarshalJSON ¶ added in v0.3.3
func (b *ManiphestSearchAttachmentColumnBoards) UnmarshalJSON(data []byte) error
UnmarshalJSON parses column data from server response.
type ManiphestSearchAttachmentColumnBoardsColumn ¶ added in v0.3.3
type ManiphestSearchAttachmentColumnBoardsColumn struct { // ID is column identifier. ID int `json:"id"` // PHID is column PHID. PHID string `json:"phid"` // Name is column name. Name string `json:"name"` }
ManiphestSearchAttachmentColumnBoardsColumn descrbied a column in "columns" attachment.
type ManiphestSearchAttachmentColumnBoardsColumns ¶ added in v0.3.3
type ManiphestSearchAttachmentColumnBoardsColumns struct { // Columns is collection of columns in an attachment. Columns []*ManiphestSearchAttachmentColumnBoardsColumn `json:"columns,omitempty"` }
ManiphestSearchAttachmentColumnBoardsColumns is a wrapper for a slice of columns.
type ManiphestSearchResponse ¶ added in v0.3.3
type ManiphestSearchResponse struct { // Data contains search results. Data []*ManiphestSearchResponseItem `json:"data"` // Curson contains paging data. Cursor struct { Limit uint64 `json:"limit"` After string `json:"after"` Before string `json:"before"` } `json:"cursor,omitempty"` }
ManiphestSearchResponse contains fields that are in server response to maniphest.search.
type ManiphestSearchResponseItem ¶ added in v0.3.3
type ManiphestSearchResponseItem struct { // ID is task identifier. ID int `json:"id"` // Type is task type. Type string `json:"type"` // PHID is PHID of the task. PHID string `json:"phid"` // Fields contains task data. Fields struct { // Name is task name. Name string `json:"name"` // Description is detailed task description. Description *TaskDescription `json:"description"` // AuthorPHID is PHID of task submitter. AuthorPHID string `json:"authorPHID"` // OwnerPHID is PHID of the person who currently assigned to task. OwnerPHID string `json:"ownerPHID"` // Status is task status. Status ManiphestSearchResultStatus `json:"status"` // Priority is task priority. Priority ManiphestSearchResultPriority `json:"priority"` // Points is point value of the task. Points json.Number `json:"points"` // Subtype of the task. Subtype string `json:"subtype"` // CloserPHID is user who closed the task, if the task is closed. CloserPHID string `json:"closerPHID"` // SpacePHID is PHID of the policy space this object is part of. SpacePHID string `json:"spacePHID"` // Date created is epoch timestamp when the object was created. DateCreated util.UnixTimestamp `json:"dateCreated"` // DateModified is epoch timestamp when the object was last updated. DateModified util.UnixTimestamp `json:"dateModified"` // Policy is map of capabilities to current policies. Policy SearchResultPolicy `json:"policy"` // CustomTaskType is custom task type. CustomTaskType string `json:"custom.task_type"` // CustomSeverity is task severity custom value. CustomSeverity string `json:"custom.severity"` } `json:"fields"` Attachments struct { // Columns contains columnt data if requested. Columns struct { // Boards is ???. Boards *ManiphestSearchAttachmentColumnBoards `json:"boards"` } `json:"columns"` // Subscribers contains subscribers attachment data. Subscribers struct { // SubscriberPHIDs is a collection of PHIDs of persons subscribed to a task. SubscriberPHIDs []string `json:"subscriberPHIDs"` // SubscriberCount is number of subscribers. SubscriberCount int `json:"subscriberCount"` // ViewerIsSubscribed specifies if request is subscribed to this task. ViewerIsSubscribed bool `json:"viewerIsSubscribed"` } `json:"subscribers"` // Projects contains project attachment data. Projects struct { // ProjectPHIDs is collection of PHIDs of projects that this task is tagged with. ProjectPHIDs []string `json:"projectPHIDs"` } `json:"projects"` } `json:"attachments"` }
ManiphestSearchResponseItem contains information about a particular search result.
type ManiphestSearchResultColumn ¶ added in v0.3.3
type ManiphestSearchResultColumn struct { // ID is column ID. ID int // PHID is column PHID. PHID string // Name is column name. Name string // ProjectPHID is PHID of project where column is defined. ProjectPHID string }
ManiphestSearchResultColumn represents what workboard columns an item may be a member of.
type ManiphestSearchResultPriority ¶ added in v0.3.3
type ManiphestSearchResultPriority struct { // Value is priority value. Value int `json:"value"` // Subpriority is task subpriority value. Subpriority float64 `json:"subpriority"` // Name is priority name. Name string `json:"name"` // Color is ???. Color string `json:"color"` }
ManiphestSearchResultPriority represents a priority for a maniphest item in a search result.
type ManiphestSearchResultStatus ¶ added in v0.3.3
type ManiphestSearchResultStatus struct { // Value is status value. Value string `json:"value"` // Name is status name. Name string `json:"name"` // Color is ???. Color string `json:"color"` }
ManiphestSearchResultStatus represents a maniphest status as returned by maniphest.search.
type PHIDLookupResponse ¶
type PHIDLookupResponse map[string]*entities.PHIDResult
PHIDLookupResponse is the result of phid.lookup operations.
type PHIDQueryResponse ¶
type PHIDQueryResponse map[string]*entities.PHIDResult
PHIDQueryResponse is the result of phid.query operations.
type PasteCreateResponse ¶
PasteCreateResponse represents the result of calling paste.create.
type PasteQueryResponse ¶
PasteQueryResponse represents the result of calling paste.query.
type PhrictionInfoResponse ¶ added in v0.3.0
type PhrictionInfoResponse entities.PhrictionDocument
type ProjectQueryResponse ¶
type ProjectQueryResponse struct { Data map[string]entities.Project `json:"data"` SlugMap map[string]string `json:"sligMap"` Cursor entities.Cursor `json:"cursor"` }
ProjectQueryResponse represents a response from calling project.query.
type RemarkupProcessResponse ¶ added in v0.3.0
type RemarkupProcessResponse []*entities.RemarkupDocument
type RepositoryQueryResponse ¶
type RepositoryQueryResponse []*entities.Repository
RepositoryQueryResponse is the result of repository.query operations.
type SearchResultPolicy ¶ added in v0.3.3
type SearchResultPolicy struct { // View is ???. View string `json:"view"` // Interact is ???. Interact string `json:"interact"` // Edit is ???. Edit string `json:"edit"` }
SearchResultPolicy reflects the permission policy on a maniphest item in a search result.
type TaskDescription ¶ added in v0.3.3
type TaskDescription struct { // Raw is raw task description. Raw string `json:"raw"` }
TaskDescription contains task description data.
type UserQueryResponse ¶ added in v0.3.0
UserQueryResponse a response from calling user.query.
Source Files ¶
- conduit_capabilities.go
- conduit_connect.go
- conduit_query.go
- differential_query.go
- differential_querydiffs.go
- diffusion_querycommits.go
- file_download.go
- macro_creatememe.go
- maniphest_gettasktransactions.go
- maniphest_query.go
- maniphest_search.go
- paste_create.go
- paste_query.go
- phid_lookup.go
- phid_query.go
- phriction.go
- project_query.go
- remarkup.go
- repository_query.go
- user_query.go