Documentation ¶
Index ¶
- type AttachmentCommit
- type AttachmentCommitAuthor
- type AttachmentMember
- type AttachmentReviewer
- type AttachmentWatcher
- type BuildStatus
- type BuildableStatus
- type ConduitCapabilitiesResponse
- type ConduitConnectResponse
- type ConduitQueryResponse
- type DifferentialDiffRef
- type DifferentialDiffSearchAttachments
- type DifferentialDiffSearchResponse
- type DifferentialDiffSearchResponseItem
- type DifferentialDiffSearchResponseItemFields
- type DifferentialGetCommitMessageResponse
- type DifferentialGetCommitPathsResponse
- type DifferentialQueryDiffsResponse
- type DifferentialQueryResponse
- type DifferentialRevisionSearchAttachments
- type DifferentialRevisionSearchResponse
- type DifferentialRevisionSearchResponseItem
- type DifferentialRevisionSearchResponseItemFields
- type DifferentialRevisionStatus
- type DiffusionQueryCommitsResponse
- type DiffusionRepositoryDescription
- type DiffusionRepositorySearchAttachments
- type DiffusionRepositorySearchResponse
- type DiffusionRepositorySearchResponseItem
- type DiffusionRepositorySearchResponseItemFields
- type EdgeSearchResponse
- type FileDownloadResponse
- type HarbormasterBuildSearchResponse
- type HarbormasterBuildSearchResponseItem
- type HarbormasterBuildSearchResponseItemFields
- type HarbormasterBuildableSearchResponse
- type HarbormasterBuildableSearchResponseItem
- type HarbormasterBuildableSearchResponseItemFields
- 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 ProjectColor
- type ProjectIcon
- type ProjectParent
- type ProjectQueryResponse
- type ProjectSearchAttachments
- type ProjectSearchResponse
- type ProjectSearchResponseItem
- type ProjectSearchResponseItemFields
- type RemarkupProcessResponse
- type RepositoryQueryResponse
- type RepositoryURI
- type RepositoryURIItem
- type RepositoryURIItemFields
- type ResponseObject
- type SearchAttachmentAncestors
- type SearchAttachmentCommits
- type SearchAttachmentMembers
- type SearchAttachmentMetrics
- type SearchAttachmentProjects
- type SearchAttachmentReviewers
- type SearchAttachmentSubscribers
- type SearchAttachmentURIs
- type SearchAttachmentWatchers
- type SearchCursor
- type SearchResultPolicy
- type TaskDescription
- type TransactionSearchResponse
- type TransactionSearchResponseItem
- type TransactionSearchResponseItemComment
- type TransactionSearchResponseItemContent
- type TransactionSearchResponseItemFields
- type TransactionSearchResponseItemFieldsOperation
- type UserQueryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentCommit ¶ added in v0.11.0
type AttachmentCommit struct { Identifier string `json:"identifier"` Tree string `json:"tree"` Parents []string `json:"parents"` Author AttachmentCommitAuthor `json:"author"` Message string `json:"message"` }
type AttachmentCommitAuthor ¶ added in v0.11.0
type AttachmentCommitAuthor struct { Name string `json:"name"` Email string `json:"email"` Raw string `json:"raw"` Epoch util.UnixTimestamp `json:"epoch"` }
type AttachmentMember ¶ added in v0.12.0
type AttachmentMember struct {
PHID string `json:"phid"`
}
type AttachmentReviewer ¶ added in v0.7.0
type AttachmentReviewer struct { ReviewerPHID string `json:"reviewerPHID"` Status string `json:"status"` IsBlocking bool `json:"isBlocking"` ActorPHID string `json:"actorPHID"` IsCurrentAction bool `json:"isCurrentAction"` }
AttachmentReviewer is a single revision reviewer in reviewers list.
type AttachmentWatcher ¶ added in v0.12.0
type AttachmentWatcher struct {
PHID string `json:"phid"`
}
type BuildStatus ¶ added in v0.13.0
type BuildStatus struct {
Value entities.BuildStatus `json:"value"`
}
BuildStatus is a container of status value.
type BuildableStatus ¶ added in v0.9.0
type BuildableStatus struct {
Value entities.BuildableStatus `json:"value"`
}
BuildableStatus is a container of status value.
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 DifferentialDiffRef ¶ added in v0.11.0
type DifferentialDiffSearchAttachments ¶ added in v0.11.0
type DifferentialDiffSearchAttachments struct {
Commits SearchAttachmentCommits `json:"commits"`
}
type DifferentialDiffSearchResponse ¶ added in v0.11.0
type DifferentialDiffSearchResponse struct { // Data contains search results. Data []*DifferentialDiffSearchResponseItem `json:"data"` // Cursor contains paging data. Cursor SearchCursor `json:"cursor,omitempty"` }
DifferentialDiffSearchResponse contains fields that are in server response to differential.diff.search.
type DifferentialDiffSearchResponseItem ¶ added in v0.11.0
type DifferentialDiffSearchResponseItem struct { ResponseObject Fields DifferentialDiffSearchResponseItemFields `json:"fields"` Attachments DifferentialDiffSearchAttachments `json:"attachments"` SearchCursor }
DifferentialDiffSearchResponseItem contains information about a particular search result.
type DifferentialDiffSearchResponseItemFields ¶ added in v0.11.0
type DifferentialDiffSearchResponseItemFields struct { RevisionPHID string `json:"revisionPHID"` AuthorPHID string `json:"authorPHID"` RepositoryPHID string `json:"repositoryPHID"` Refs []DifferentialDiffRef `json:"refs"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` }
DifferentialDiffSearchResponseItemFields is a collection of object fields.
type DifferentialGetCommitMessageResponse ¶ added in v0.5.0
type DifferentialGetCommitMessageResponse string
DifferentialGetCommitMessageResponse is the response of calling differential.getcommitmessage.
type DifferentialGetCommitPathsResponse ¶ added in v0.4.1
type DifferentialGetCommitPathsResponse []string
DifferentialGetCommitPathsResponse is the response of calling differential.getcommitpaths.
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 DifferentialRevisionSearchAttachments ¶ added in v0.7.0
type DifferentialRevisionSearchAttachments struct { Reviewers SearchAttachmentReviewers `json:"reviewers"` Subscribers SearchAttachmentSubscribers `json:"subscribers"` Projects SearchAttachmentProjects `json:"projects"` }
DifferentialRevisionSearchAttachments holds possible attachments for the API method.
type DifferentialRevisionSearchResponse ¶ added in v0.7.0
type DifferentialRevisionSearchResponse struct { // Data contains search results. Data []*DifferentialRevisionSearchResponseItem `json:"data"` // Cursor contains paging data. Cursor SearchCursor `json:"cursor,omitempty"` }
DifferentialRevisionSearchResponse contains fields that are in server response to differential.revision.search.
type DifferentialRevisionSearchResponseItem ¶ added in v0.7.0
type DifferentialRevisionSearchResponseItem struct { ResponseObject Fields DifferentialRevisionSearchResponseItemFields `json:"fields"` Attachments DifferentialRevisionSearchAttachments `json:"attachments"` SearchCursor }
DifferentialRevisionSearchResponseItem contains information about a particular search result.
type DifferentialRevisionSearchResponseItemFields ¶ added in v0.7.0
type DifferentialRevisionSearchResponseItemFields struct { Title string `json:"title"` URI string `json:"uri"` AuthorPHID string `json:"authorPHID"` Status DifferentialRevisionStatus `json:"status"` RepositoryPHID string `json:"repositoryPHID"` DiffPHID string `json:"diffPHID"` Summary string `json:"summary"` TestPlan string `json:"testPlan"` IsDraft bool `json:"isDraft"` HoldAsDraft bool `json:"holdAsDraft"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` }
DifferentialRevisionSearchResponseItemFields is a collection of object fields.
type DifferentialRevisionStatus ¶ added in v0.7.0
type DifferentialRevisionStatus struct { Value string `json:"value"` Name string `json:"name"` Closed bool `json:"closed"` }
DifferentialRevisionStatus represents item status returned by response.
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 DiffusionRepositoryDescription ¶ added in v0.9.0
type DiffusionRepositoryDescription struct {
Raw string `json:"raw"`
}
DiffusionRepositoryDescription holds the description of repository.
type DiffusionRepositorySearchAttachments ¶ added in v0.9.0
type DiffusionRepositorySearchAttachments struct { URIs SearchAttachmentURIs `json:"uris,omitempty"` Metrics SearchAttachmentMetrics `json:"metrics,omitempty"` Projects SearchAttachmentProjects `json:"projects,omitempty"` }
DiffusionRepositorySearchAttachments holds possible attachments for the API method.
type DiffusionRepositorySearchResponse ¶ added in v0.9.0
type DiffusionRepositorySearchResponse struct { // Data contains search results. Data []*DiffusionRepositorySearchResponseItem `json:"data"` // Curson contains paging data. Cursor SearchCursor `json:"cursor,omitempty"` }
DiffusionRepositorySearchResponse contains fields that are in server response to differential.revision.search.
type DiffusionRepositorySearchResponseItem ¶ added in v0.9.0
type DiffusionRepositorySearchResponseItem struct { ResponseObject Fields DiffusionRepositorySearchResponseItemFields `json:"fields"` Attachments DiffusionRepositorySearchAttachments `json:"attachments"` SearchCursor }
DiffusionRepositorySearchResponseItem contains information about a particular search result.
type DiffusionRepositorySearchResponseItemFields ¶ added in v0.9.0
type DiffusionRepositorySearchResponseItemFields struct { Name string `json:"name"` VCS string `json:"vcs"` Callsign string `json:"callsign"` ShortName string `json:"shortName"` Status string `json:"status"` IsImporting bool `json:"isImporting"` DefaultBranch string `json:"defaultBranch"` Description DiffusionRepositoryDescription `json:"description"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` SpacePHID string `json:"spacePHID"` }
DiffusionRepositorySearchResponseItemFields is a collection of object fields.
type EdgeSearchResponse ¶ added in v0.10.0
type EdgeSearchResponse struct { Data []entities.Edge `json:"data"` Cursor entities.Cursor `json:"cursor"` }
EdgeSearchResponse represents a response of the edge.search call.
type FileDownloadResponse ¶
type FileDownloadResponse struct {
Result string `json:"result"`
}
FileDownloadResponse represents a response from calling file.download.
type HarbormasterBuildSearchResponse ¶ added in v0.13.0
type HarbormasterBuildSearchResponse struct { // Data contains search results. Data []*HarbormasterBuildSearchResponseItem `json:"data"` // Curson contains paging data. Cursor SearchCursor `json:"cursor,omitempty"` }
HarbormasterBuildSearchResponse contains fields that are in server response to differential.revision.search.
type HarbormasterBuildSearchResponseItem ¶ added in v0.13.0
type HarbormasterBuildSearchResponseItem struct { ResponseObject Fields HarbormasterBuildSearchResponseItemFields `json:"fields"` SearchCursor }
HarbormasterBuildSearchResponseItem contains information about a particular search result.
type HarbormasterBuildSearchResponseItemFields ¶ added in v0.13.0
type HarbormasterBuildSearchResponseItemFields struct { BuildablePHID string `json:"buildablePHID"` BuildPlanPHID string `json:"buildPlanPHID"` BuildStatus BuildStatus `json:"buildStatus"` InitiatorPHID string `json:"initiatorPHID"` Name string `json:"name"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` }
HarbormasterBuildSearchResponseItemFields is a collection of object fields.
type HarbormasterBuildableSearchResponse ¶ added in v0.9.0
type HarbormasterBuildableSearchResponse struct { // Data contains search results. Data []*HarbormasterBuildableSearchResponseItem `json:"data"` // Curson contains paging data. Cursor SearchCursor `json:"cursor,omitempty"` }
HarbormasterBuildableSearchResponse contains fields that are in server response to differential.revision.search.
type HarbormasterBuildableSearchResponseItem ¶ added in v0.9.0
type HarbormasterBuildableSearchResponseItem struct { ResponseObject Fields HarbormasterBuildableSearchResponseItemFields `json:"fields"` SearchCursor }
HarbormasterBuildableSearchResponseItem contains information about a particular search result.
type HarbormasterBuildableSearchResponseItemFields ¶ added in v0.9.0
type HarbormasterBuildableSearchResponseItemFields struct { ObjectPHID string `json:"ObjectPHID"` ContainerPHID string `json:"ContainerPHID"` BuildableStatus BuildableStatus `json:"buildableStatus"` IsManual bool `json:"isManual"` URI string `json:"uri"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` }
HarbormasterBuildableSearchResponseItemFields is a collection of object fields.
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 ProjectColor ¶ added in v0.12.0
type ProjectIcon ¶ added in v0.12.0
type ProjectParent ¶ added in v0.12.0
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 ProjectSearchAttachments ¶ added in v0.12.0
type ProjectSearchAttachments struct { Members SearchAttachmentMembers `json:"members"` Watchers SearchAttachmentWatchers `json:"watchers"` Ancestors SearchAttachmentAncestors `json:"ancestors"` }
type ProjectSearchResponse ¶ added in v0.12.0
type ProjectSearchResponse struct { // Data contains search results. Data []*ProjectSearchResponseItem `json:"data"` // Cursor contains paging data. Cursor SearchCursor `json:"cursor,omitempty"` }
ProjectSearchResponse contains fields that are in server response to project.search.
type ProjectSearchResponseItem ¶ added in v0.12.0
type ProjectSearchResponseItem struct { ResponseObject Fields ProjectSearchResponseItemFields `json:"fields"` Attachments ProjectSearchAttachments `json:"attachments"` SearchCursor }
ProjectSearchResponseItem contains information about a particular search result.
type ProjectSearchResponseItemFields ¶ added in v0.12.0
type ProjectSearchResponseItemFields struct { Name string `json:"name"` Slug string `json:"slug"` Description string `json:"description"` Subtype string `json:"subtype"` Milestone int `json:"milestone"` Depth int `json:"depth"` Parent *ProjectParent `json:"parent"` Icon ProjectIcon `json:"icon"` Color ProjectColor `json:"color"` SpacePHID string `json:"spacePHID"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` }
ProjectSearchResponseItemFields is a collection of object fields.
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 RepositoryURI ¶ added in v0.9.0
type RepositoryURI struct { Raw string `json:"raw"` Display string `json:"display"` Effective string `json:"effective"` Normalized string `json:"normalized"` }
RepositoryURI is VCS uri.
type RepositoryURIItem ¶ added in v0.9.0
type RepositoryURIItem struct {
Fields RepositoryURIItemFields `json:"fields"`
}
type RepositoryURIItemFields ¶ added in v0.9.0
type RepositoryURIItemFields struct { URI RepositoryURI `json:"uri"` Disabled bool `json:"disabled"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` }
RepositoryURIItemFields is a collection of object fields.
type ResponseObject ¶ added in v0.9.0
type ResponseObject struct { ID int `json:"id"` Type string `json:"type"` PHID string `json:"phid"` }
ResponseObject holds fields which are common for all objects returned from *.search API methods.
type SearchAttachmentAncestors ¶ added in v0.12.0
type SearchAttachmentAncestors struct {
Ancestors []ProjectParent `json:"ancestors"`
}
type SearchAttachmentCommits ¶ added in v0.11.0
type SearchAttachmentCommits struct {
Commits []AttachmentCommit `json:"commits"`
}
SearchAttachmentCommits is an attachment of diff commits.
type SearchAttachmentMembers ¶ added in v0.12.0
type SearchAttachmentMembers struct {
Members []AttachmentMember `json:"members"`
}
type SearchAttachmentMetrics ¶ added in v0.9.0
type SearchAttachmentMetrics struct {
CommitCount int `json:"commitCount"`
}
SearchAttachmentMetrics is an attachment of repository metrics.
type SearchAttachmentProjects ¶ added in v0.7.0
type SearchAttachmentProjects struct {
ProjectPHIDs []string `json:"projectPHIDs"`
}
SearchAttachmentProjects is common attachment with projects information for *.search API methods.
type SearchAttachmentReviewers ¶ added in v0.7.0
type SearchAttachmentReviewers struct {
Reviewers []AttachmentReviewer `json:"reviewers"`
}
SearchAttachmentReviewers is attachment with revision reviewers information for differenial.revision.search API method.
type SearchAttachmentSubscribers ¶ added in v0.7.0
type SearchAttachmentSubscribers struct { SubscriberPHIDs []string `json:"subscriberPHIDs"` SubscriberCount int `json:"subscriberCount"` ViewerIsSubscribed bool `json:"viewerIsSubscribed"` }
SearchAttachmentSubscribers is common attachment with subscribers information for *.search API methods.
type SearchAttachmentURIs ¶ added in v0.9.0
type SearchAttachmentURIs struct {
URIs []RepositoryURIItem `json:"uris"`
}
type SearchAttachmentWatchers ¶ added in v0.12.0
type SearchAttachmentWatchers struct {
Watchers []AttachmentWatcher `json:"watchers"`
}
type SearchCursor ¶ added in v0.7.0
type SearchCursor struct { Limit uint64 `json:"limit"` After string `json:"after"` Before string `json:"before"` }
SearchCursor holds paging information on responses from *.search API methods.
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 TransactionSearchResponse ¶ added in v0.11.0
type TransactionSearchResponse struct { // Data contains search results. Data []*TransactionSearchResponseItem `json:"data"` // Curson contains paging data. Cursor entities.Cursor `json:"cursor,omitempty"` }
TransactionSearchResponse contains fields that are in server response to transaction.search.
type TransactionSearchResponseItem ¶ added in v0.11.0
type TransactionSearchResponseItem struct { ResponseObject Fields TransactionSearchResponseItemFields `json:"fields"` AuthorPHID string `json:"authorPHID"` ObjectPHID string `json:"objectPHID"` GroupID string `json:"groupID"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` Comments []TransactionSearchResponseItemComment `json:"comments"` }
TransactionSearchResponseItem contains information about a particular search result.
type TransactionSearchResponseItemComment ¶ added in v0.11.0
type TransactionSearchResponseItemComment struct { ID int `json:"id"` PHID string `json:"phid"` Version int `json:"version"` AuthorPHID string `json:"authorPHID"` DateCreated util.UnixTimestamp `json:"dateCreated"` DateModified util.UnixTimestamp `json:"dateModified"` Removed bool `json:"removed"` Content TransactionSearchResponseItemContent `json:"content"` }
TransactionSearchResponseItemComment is transaction comment
type TransactionSearchResponseItemContent ¶ added in v0.11.0
type TransactionSearchResponseItemContent struct {
Raw string `json:"raw"`
}
TransactionSearchResponseItemContent is transaction comment content
type TransactionSearchResponseItemFields ¶ added in v0.11.0
type TransactionSearchResponseItemFields struct { // make sure to update transactionSearchResponseItemFieldsDecoded and unmarshaller as well Old string `json:"old"` New string `json:"new"` Operations []TransactionSearchResponseItemFieldsOperation `json:"operations"` CommitPHIDs []string `json:"commitPHIDs"` }
TransactionSearchResponseItemFields is a collection of object fields.
func (*TransactionSearchResponseItemFields) UnmarshalJSON ¶ added in v0.11.0
func (t *TransactionSearchResponseItemFields) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON implements the json.Unmarshaler interface.
type TransactionSearchResponseItemFieldsOperation ¶ added in v0.11.0
type TransactionSearchResponseItemFieldsOperation struct { Operation string `json:"operation"` PHID string `json:"phid"` OldStatus string `json:"oldStatus"` NewStatus string `json:"newStatus"` IsBlocking bool `json:"isBlocking"` }
TransactionSearchResponseItemFielsOperation is collect of transaction field operations
type UserQueryResponse ¶ added in v0.3.0
UserQueryResponse a response from calling user.query.