Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConduitMethod ¶ added in v0.2.0
type ConduitMethod struct {
Description string `json:"description"`
Params map[string]string `json:"params"`
Return string `json:"return"`
}
ConduitMethod is a conduit method representation returned by `conduit.query`.
type Cursor ¶
type Cursor struct {
Limit uint64 `json:"limit"`
After uint64 `json:"after"`
Before uint64 `json:"before"`
}
Cursor represents the pagination cursor on many responses.
type DifferentialRevision ¶
type DifferentialRevision struct {
ID string `json:"id"`
PHID string `json:"phid"`
Title string `json:"title"`
URI string `json:"uri"`
DateCreated util.UnixTimestamp `json:"dateCreated"`
DateModified util.UnixTimestamp `json:"dateModified"`
AuthorPHID string `json:"authorPHID"`
Status string `json:"status"`
StatusName string `json:"statusName"`
Branch string `json:"branch"`
Summary string `json:"summary"`
TestPlan string `json:"testPlan"`
LineCount string `json:"lineCount"`
ActiveDiffPHID string `json:"activeDiffPHID"`
Diffs []string `json:"diffs"`
Commits []string `json:"commits"`
Reviewers []string `json:"reviewers"`
CCs []string `json:"ccs"`
Hashes [][]string `json:"hashes"`
Auxiliary map[string][]string `json:"auxiliary"`
RepositoryPHID string `json:"repositoryPHID"`
}
DifferentialRevision represents a revision in Differential.
type DiffusionCommit ¶
type DiffusionCommit struct {
ID string `json:"id"`
PHID string `json:"phid"`
RepositoryPHID string `json:"repositoryPHID"`
Identifier string `json:"identifier"`
Epoch string `json:"epoch"`
URI string `json:"uri"`
IsImporting bool `json:"isImporting"`
Summary string `json:"summary"`
AuthorPHID string `json:"authorPHID"`
CommitterPHID string `json:"committerPHID"`
Author string `json:"author"`
AuthorName string `json:"authorName"`
AuthorEmail string `json:"authorEmail"`
Committer string `json:"committer"`
CommitterName string `json:"committerName"`
}
DiffusionCommit represents a commit in Diffusion.
type ManiphestTask ¶
type ManiphestTask struct {
ID string `json:"id"`
PHID string `json:"phid"`
AuthorPHID string `json:"authorPHID"`
OwnerPHID string `json:"ownerPHID"`
CCPHIDs []string `json:"ccPHIDs"`
Status string `json:"status"`
StatusName string `json:"statusName"`
IsClosed bool `json:"isClosed"`
Priority string `json:"priority"`
PriorityColor string `json:"priorityColor"`
Title string `json:"title"`
Description string `json:"description"`
ProjectPHIDs []string `json:"projectPHIDs"`
URI string `json:"uri"`
Auxiliary interface{} `json:"auxiliary"`
ObjectName string `json:"objectName"`
DateCreated util.UnixTimestamp `json:"dateCreated"`
DateModified util.UnixTimestamp `json:"dateModified"`
DependsOnTaskPHIDs []string `json:"dependsOnTaskPHIDs"`
}
ManiphestTask represents a single task on Maniphest.
type PHIDResult ¶
type PHIDResult struct {
PHID string `json:"phid"`
URI string `json:"uri"`
TypeName string `json:"typeName"`
Type string `json:"type"`
Name string `json:"name"`
FullName string `json:"fullName"`
Status string `json:"status"`
}
PHIDResult is a result item of phid operations.
type PasteItem ¶
type PasteItem struct {
ID uint64 `json:"id"`
ObjectName string `json:"objectName"`
PHID string `json:"phid"`
AuthorPHID string `json:"authorPHID"`
FilePHID string `json:"filePHID"`
Title string `json:"title"`
DateCreated util.UnixTimestamp `json:"dateCreated"`
Language string `json:"language"`
URI string `json:"uri"`
ParentPHID string `json:"parentPHID"`
Content string `json:"content"`
}
PasteItem is a result item for paste queries.
type Project ¶
type Project struct {
ID string `json:"id"`
PHID string `json:"phid"`
Name string `json:"name"`
ProfileImagePHID string `json:"profileImagePHID"`
Icon string `json:"icon"`
Color string `json:"color"`
Members []string `json:"members"`
Slugs []string `json:"slugs"`
DateCreated util.UnixTimestamp `json:"dateCreated"`
DateModified util.UnixTimestamp `json:"dateModified"`
}
Project represents a single Phabricator Project.
type Repository ¶
type Repository struct {
ID string `json:"id"`
Name string `json:"name"`
PHID string `json:"phid"`
Callsign string `json:"callsign"`
Monogram string `json:"monogram"`
VCS string `json:"vcs"`
URI string `json:"uri"`
RemoteURI string `json:"remoteURI"`
Description string `json:"description"`
IsActive bool `json:"isActive"`
IsHosted bool `json:"isHosted"`
IsImporting bool `json:"isImporting"`
Encoding string `json:"encoding"`
Staging StagingRepository `json:"staging"`
}
Repository represents a single code repository.
type Session ¶
type Session struct {
SessionKey string `json:"sessionKey"`
ConnectionID int64 `json:"connectionID"`
}
Session is the conduit session state that will be sent in the JSON params as __conduit__.
type StagingRepository ¶
type StagingRepository struct {
Supported bool `json:"supported"`
Prefix string `json:"phabricator"`
URI string `json:"uri"`
}
StagingRepository represents a single staging code repository.