Documentation ¶
Overview ¶
Package client implements repository REST client.
Index ¶
- type Client
- func (c *Client) Collect(ctx context.Context, live liveset.Liveset) error
- func (c *Client) CollectWithThreshold(ctx context.Context, live liveset.Liveset, dead liveset.Liveset, ...) error
- func (c *Client) Get(ctx context.Context, id digest.Digest) (io.ReadCloser, error)
- func (c *Client) Put(ctx context.Context, body io.Reader) (digest.Digest, error)
- func (c *Client) ReadFrom(ctx context.Context, id digest.Digest, u *url.URL) error
- func (c *Client) ShortString() string
- func (c *Client) Stat(ctx context.Context, id digest.Digest) (reflow.File, error)
- func (c *Client) String() string
- func (c *Client) WriteTo(ctx context.Context, id digest.Digest, u *url.URL) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a Repository that dispatches requests to a server implementing the Repository REST API.
func (*Client) CollectWithThreshold ¶
func (c *Client) CollectWithThreshold(ctx context.Context, live liveset.Liveset, dead liveset.Liveset, threshold time.Time, dryRun bool) error
CollectWithThreshold removes from this repository any objects not in the Liveset and whose creation times are not more recent than the threshold time.
func (*Client) ReadFrom ¶
ReadFrom reads the object with digest id directly from the repository at URL u.
func (*Client) ShortString ¶
Click to show internal directories.
Click to hide internal directories.