MCPcopy Index your code
hub / github.com/coder/coder / Download

Method Download

codersdk/files.go:43–45  ·  view source on GitHub ↗

Download fetches a file by uploaded hash.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

41
42// Download fetches a file by uploaded hash.
43func (c *Client) Download(ctx context.Context, id uuid.UUID) ([]byte, string, error) {
44 return c.DownloadWithFormat(ctx, id, "")
45}
46
47// Download fetches a file by uploaded hash, but it forces format conversion.
48func (c *Client) DownloadWithFormat(ctx context.Context, id uuid.UUID, format string) ([]byte, string, error) {

Callers 3

TestDownloadFunction · 0.80

Calls 1

DownloadWithFormatMethod · 0.95

Tested by 3

TestDownloadFunction · 0.64