Documentation ¶
Index ¶
- Variables
- type BatchAction
- type BatchObject
- type BatchResponse
- type Client
- func (c *Client) Batch(operation string, reqObjects []*BatchObject, ref string, reqHashAlgo string) (*BatchResponse, error)
- func (c *Client) GetObject(oid, href string, headers map[string]string) (fs.File, error)
- func (c *Client) ListLocksVerify(path, id, cursor string, limit int, ref string) (*ListLocksVerifyResponse, error)
- func (c *Client) Lock(path, refname string) (*Lock, error)
- func (c *Client) PutObject(oid, href string, headers map[string]string, r io.Reader) error
- func (c *Client) Unlock(id string, force bool, refname string) (*Lock, error)
- type ListLocksResponse
- type ListLocksVerifyResponse
- type Lock
- type LockOwner
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientHeader = "application/vnd.git-lfs+json"
Functions ¶
This section is empty.
Types ¶
type BatchAction ¶
type BatchObject ¶
type BatchObject struct { Oid string `json:"oid,omitempty"` Size int64 `json:"size"` Authenticated bool `json:"authenticated,omitempty"` Actions map[string]*BatchAction `json:"actions,omitempty"` }
type BatchResponse ¶
type BatchResponse struct { Objects []*BatchObject `json:"objects"` HashAlgorithm string `json:"hash_algo,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Batch ¶
func (c *Client) Batch(operation string, reqObjects []*BatchObject, ref string, reqHashAlgo string) (*BatchResponse, error)
func (*Client) ListLocksVerify ¶ added in v14.36.0
type ListLocksResponse ¶ added in v14.36.0
type ListLocksVerifyResponse ¶ added in v14.36.0
Click to show internal directories.
Click to hide internal directories.