Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateVolume(ctx context.Context, volume schema.VolumeCreate) (*schema.Volume, error)
- func (c *Client) GetMetadata(ctx context.Context, r io.Reader) (*schema.ObjectMeta, error)
- func (c *Client) ListObjects(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)
- func (c *Client) ListVolumes(ctx context.Context, req schema.VolumeListRequest) (*schema.VolumeList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a filer HTTP client that wraps the base HTTP client and provides typed methods for interacting with the filer API.
func New ¶
New creates a new filer HTTP client with the given base URL and options. The url parameter should point to the filer API endpoint, e.g. "http://localhost:8080/api/filer".
func (*Client) CreateVolume ¶ added in v0.2.0
func (*Client) GetMetadata ¶ added in v0.2.3
GetMetadata extracts metadata for a single file by POSTing it to the metadata endpoint as multipart/form-data.
func (*Client) ListObjects ¶
func (c *Client) ListObjects(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)
func (*Client) ListVolumes ¶ added in v0.2.7
func (c *Client) ListVolumes(ctx context.Context, req schema.VolumeListRequest) (*schema.VolumeList, error)
Click to show internal directories.
Click to hide internal directories.