Documentation ¶
Overview ¶
Package gonduit provides a client for Phabricator's Conduit API.
Index ¶
- type Conn
- func (c *Conn) Call(method string, params interface{}, result interface{}) error
- func (c *Conn) ConduitQuery() (*responses.ConduitQueryResponse, error)
- func (c *Conn) Connect() error
- func (c *Conn) DifferentialQuery(req requests.DifferentialQueryRequest) (*responses.DifferentialQueryResponse, error)
- func (c *Conn) DiffusionQueryCommits(req requests.DiffusionQueryCommitsRequest) (*responses.DiffusionQueryCommitsResponse, error)
- func (c *Conn) FileDownload(req requests.FileDownloadRequest) (*responses.FileDownloadResponse, error)
- func (c *Conn) MacroCreateMeme(req requests.MacroCreateMemeRequest) (*responses.MacroCreateMemeResponse, error)
- func (c *Conn) ManiphestCreateTask(req requests.ManiphestCreateTaskRequest) (*entities.ManiphestTask, error)
- func (c *Conn) ManiphestQuery(req requests.ManiphestQueryRequest) (*responses.ManiphestQueryResponse, error)
- func (c *Conn) PHIDLookup(req requests.PHIDLookupRequest) (responses.PHIDLookupResponse, error)
- func (c *Conn) PHIDLookupSingle(name string) (*entities.PHIDResult, error)
- func (c *Conn) PHIDQuery(req requests.PHIDQueryRequest) (responses.PHIDQueryResponse, error)
- func (c *Conn) PHIDQuerySingle(phid string) (*entities.PHIDResult, error)
- func (c *Conn) PasteCreate(req *requests.PasteCreateRequest) (responses.PasteCreateResponse, error)
- func (c *Conn) PasteQuery(req *requests.PasteQueryRequest) (responses.PasteQueryResponse, error)
- func (c *Conn) ProjectQuery(req requests.ProjectQueryRequest) (*responses.ProjectQueryResponse, error)
- func (c *Conn) RepositoryQuery(req requests.RepositoryQueryRequest) (*responses.RepositoryQueryResponse, error)
- type Dialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn is a connection to the conduit API.
func Dial ¶
func Dial(host string, options *core.ClientOptions) (*Conn, error)
Dial connects to conduit and confirms the API capabilities for future calls.
func (*Conn) Call ¶
Call allows you to make a raw conduit method call. Params will be marshalled as JSON and the result JSON will be unmarshalled into the result interface{}.
This is primarily useful for calling conduit endpoints that aren't specifically supported by other methods in this package.
func (*Conn) ConduitQuery ¶ added in v0.2.0
func (c *Conn) ConduitQuery() (*responses.ConduitQueryResponse, error)
ConduitQuery performs a call to conduit.query.
func (*Conn) Connect ¶
Connect calls conduit.connect to open an authenticated session for future requests.
func (*Conn) DifferentialQuery ¶
func (c *Conn) DifferentialQuery( req requests.DifferentialQueryRequest, ) (*responses.DifferentialQueryResponse, error)
DifferentialQuery performs a call to differential.query.
func (*Conn) DiffusionQueryCommits ¶
func (c *Conn) DiffusionQueryCommits( req requests.DiffusionQueryCommitsRequest, ) (*responses.DiffusionQueryCommitsResponse, error)
DiffusionQueryCommits performs a call to diffusion.querycommits.
func (*Conn) FileDownload ¶
func (c *Conn) FileDownload( req requests.FileDownloadRequest, ) (*responses.FileDownloadResponse, error)
FileDownload performs a call to file.download.
func (*Conn) MacroCreateMeme ¶
func (c *Conn) MacroCreateMeme( req requests.MacroCreateMemeRequest, ) (*responses.MacroCreateMemeResponse, error)
MacroCreateMeme performs a call to macro.creatememe.
func (*Conn) ManiphestCreateTask ¶ added in v0.2.0
func (c *Conn) ManiphestCreateTask( req requests.ManiphestCreateTaskRequest, ) (*entities.ManiphestTask, error)
ManiphestCreateTask performs a call to maniphest.createtask.
func (*Conn) ManiphestQuery ¶
func (c *Conn) ManiphestQuery( req requests.ManiphestQueryRequest, ) (*responses.ManiphestQueryResponse, error)
ManiphestQuery performs a call to maniphest.query.
func (*Conn) PHIDLookup ¶
func (c *Conn) PHIDLookup( req requests.PHIDLookupRequest, ) (responses.PHIDLookupResponse, error)
PHIDLookup calls the phid.lookup endpoint.
func (*Conn) PHIDLookupSingle ¶
func (c *Conn) PHIDLookupSingle(name string) (*entities.PHIDResult, error)
PHIDLookupSingle calls the phid.lookup endpoint with a single name.
func (*Conn) PHIDQuery ¶
func (c *Conn) PHIDQuery( req requests.PHIDQueryRequest, ) (responses.PHIDQueryResponse, error)
PHIDQuery calls the phid.query endpoint.
func (*Conn) PHIDQuerySingle ¶
func (c *Conn) PHIDQuerySingle(phid string) (*entities.PHIDResult, error)
PHIDQuerySingle calls the phid.query endpoint with a single phid.
func (*Conn) PasteCreate ¶
func (c *Conn) PasteCreate( req *requests.PasteCreateRequest, ) (responses.PasteCreateResponse, error)
PasteCreate calls the paste.create endpoint.
func (*Conn) PasteQuery ¶
func (c *Conn) PasteQuery( req *requests.PasteQueryRequest, ) (responses.PasteQueryResponse, error)
PasteQuery calls the paste.query endpoint.
func (*Conn) ProjectQuery ¶
func (c *Conn) ProjectQuery( req requests.ProjectQueryRequest, ) (*responses.ProjectQueryResponse, error)
ProjectQuery performs a call to project.query.
func (*Conn) RepositoryQuery ¶
func (c *Conn) RepositoryQuery( req requests.RepositoryQueryRequest, ) (*responses.RepositoryQueryResponse, error)
RepositoryQuery performs a call to repository.query.