HasLegacySHA1 reports whether the server has SHA-1 blobs indexed.
()
| 645 | |
| 646 | // HasLegacySHA1 reports whether the server has SHA-1 blobs indexed. |
| 647 | func (c *Client) HasLegacySHA1() (bool, error) { |
| 648 | if err := c.condDiscovery(); err != nil { |
| 649 | return false, err |
| 650 | } |
| 651 | return c.hasLegacySHA1, nil |
| 652 | } |
| 653 | |
| 654 | // SyncInfo holds the data that were acquired with a discovery |
| 655 | // and that are relevant to a syncHandler. |