Documentation ¶
Index ¶
- Constants
- type Client
- func NewAuthenticatedClient(addr, username, password string, params ...roundtrip.ClientParam) (*Client, error)
- func NewClient(addr string, params ...roundtrip.ClientParam) (*Client, error)
- func NewPeerAuthenticatedClient(addr, username, password string, params ...roundtrip.ClientParam) (*Client, error)
- func NewPeerClient(addr string, params ...roundtrip.ClientParam) (*Client, error)
- func (c *Client) Close() error
- func (c *Client) Delete(u string) (*roundtrip.Response, error)
- func (c *Client) DeleteBLOB(hash string) error
- func (c *Client) Get(u string, params url.Values) (*roundtrip.Response, error)
- func (c *Client) GetBLOBEnvelope(hash string) (*blob.Envelope, error)
- func (c *Client) GetBLOBs() ([]string, error)
- func (c *Client) OpenBLOB(hash string) (blob.ReadSeekCloser, error)
- func (c *Client) PostForm(endpoint string, vals url.Values, files ...roundtrip.File) (*roundtrip.Response, error)
- func (c *Client) WriteBLOB(data io.Reader) (*blob.Envelope, error)
- type Pool
Constants ¶
View Source
const CurrentVersion = "objects/v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is HTTP client to BLOB storage
func NewAuthenticatedClient ¶
func NewAuthenticatedClient(addr, username, password string, params ...roundtrip.ClientParam) (*Client, error)
NewAuthenticatedClient returns client authenticated as a user with given password
func NewClient ¶
func NewClient(addr string, params ...roundtrip.ClientParam) (*Client, error)
NewClient returns HTTP client communicating to cluster BLOB service
func NewPeerAuthenticatedClient ¶
func NewPeerAuthenticatedClient(addr, username, password string, params ...roundtrip.ClientParam) (*Client, error)
NewPeerAuthenticatedClient returns client authenticated as a user with given password
func NewPeerClient ¶
func NewPeerClient(addr string, params ...roundtrip.ClientParam) (*Client, error)
NewPeerClient returns new client that communicates with peer-local interface
func (*Client) DeleteBLOB ¶
func (*Client) GetBLOBEnvelope ¶
Click to show internal directories.
Click to hide internal directories.