Documentation ¶
Index ¶
- type Client
- func (client *Client) DeleteObject(key string) error
- func (client *Client) ExistsObject(key string) (bool, error)
- func (client *Client) GetObject(key string) (*object.Object, error)
- func (client *Client) ListObjects() ([]*object.Object, error)
- func (client *Client) NewObject(name string, size int64) (*object.Object, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Storage holds the storage.Provider-compatible storage provider. Storage storage.Provider // Cache holds the cache.Provider-compatible cache provider. Cache cache.Provider }
Client wraps the storage and cache providers used for object storage.
func (*Client) DeleteObject ¶
DeleteObject deletes the `key` object.
func (*Client) ExistsObject ¶
ExistsObject returns whether a `key` object exists.
func (*Client) ListObjects ¶
ListObjects returns the details of all objects.
Click to show internal directories.
Click to hide internal directories.