BlobRoot returns the server's blobroot URL prefix. If the client was constructed with an explicit path, that path is used. Otherwise the server's default advertised blobRoot is used.
()
| 539 | // that path is used. Otherwise the server's |
| 540 | // default advertised blobRoot is used. |
| 541 | func (c *Client) BlobRoot() (string, error) { |
| 542 | prefix, err := c.prefix() |
| 543 | if err != nil { |
| 544 | return "", err |
| 545 | } |
| 546 | return prefix + "/", nil |
| 547 | } |
| 548 | |
| 549 | // ServerKeyID returns the server's GPG public key ID, in its long (16 capital |
| 550 | // hex digits) format. If the server isn't running a sign handler, the error |
no test coverage detected