DownloadURL returns a short-lived URL the caller (or a sandboxed tool) can GET for the bytes, plus its expiry.
(agentEmail, messageID string, index int, ttl time.Duration)
| 38 | // DownloadURL returns a short-lived URL the caller (or a sandboxed tool) can |
| 39 | // GET for the bytes, plus its expiry. |
| 40 | DownloadURL(agentEmail, messageID string, index int, ttl time.Duration) (downloadURL string, expiresAt time.Time, err error) |
| 41 | // VerifyDownload reports whether `token` authorizes downloading attachment |
| 42 | // `index` of `messageID` (and is unexpired). Identity is NOT in the token; |
| 43 | // the download handler additionally binds the message to the path agent. |
no outgoing calls