Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Commit(branch, message, authorEmail, authorName string, file io.Reader, ...) (cr *payload.CommitResponse, err error)
- func (c *Client) Diff(sum1, sum2 []byte) (dr *payload.DiffResponse, err error)
- func (c *Client) ErrHTTP(resp *http.Response) error
- func (c *Client) GetBlocks(sum []byte, start, end int, format payload.BlockFormat) (resp *http.Response, err error)
- func (c *Client) GetCommit(sum []byte) (cr *payload.GetCommitResponse, err error)
- func (c *Client) GetRefs() (m map[string][]byte, err error)
- func (c *Client) GetRows(sum []byte, offsets []int) (resp *http.Response, err error)
- func (c *Client) GetTable(sum []byte) (tr *payload.GetTableResponse, err error)
- func (c *Client) PostMultipartForm(path string, value map[string][]string, files map[string]io.Reader) (*http.Response, error)
- func (c *Client) PostUpdatesToReceivePack(updates map[string]*payload.Update) (*http.Response, error)
- func (c *Client) PostUploadPack(wants, haves [][]byte, done bool) (acks [][]byte, pr *encoding.PackfileReader, err error)
- func (c *Client) Request(method, path string, body io.Reader, headers map[string]string) (resp *http.Response, err error)
- type ReceivePackSession
- type UploadPackSession
Constants ¶
View Source
const ( CTJSON = "application/json" CTPackfile = "application/x-wrgl-packfile" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Diff ¶ added in v0.3.11
func (c *Client) Diff(sum1, sum2 []byte) (dr *payload.DiffResponse, err error)
func (*Client) GetCommit ¶ added in v0.3.11
func (c *Client) GetCommit(sum []byte) (cr *payload.GetCommitResponse, err error)
func (*Client) GetTable ¶ added in v0.3.11
func (c *Client) GetTable(sum []byte) (tr *payload.GetTableResponse, err error)
func (*Client) PostMultipartForm ¶ added in v0.3.11
func (*Client) PostUpdatesToReceivePack ¶
func (*Client) PostUploadPack ¶
type ReceivePackSession ¶
type ReceivePackSession struct {
// contains filtered or unexported fields
}
func NewReceivePackSession ¶
type UploadPackSession ¶
type UploadPackSession struct {
// contains filtered or unexported fields
}
func NewUploadPackSession ¶
func (*UploadPackSession) Start ¶
func (n *UploadPackSession) Start() ([][]byte, error)
Click to show internal directories.
Click to hide internal directories.