ServerPublicKeyBlobRef returns the server's public key blobRef If the server isn't running a sign handler, the error will be ErrNoSigning.
()
| 562 | // ServerPublicKeyBlobRef returns the server's public key blobRef |
| 563 | // If the server isn't running a sign handler, the error will be ErrNoSigning. |
| 564 | func (c *Client) ServerPublicKeyBlobRef() (blob.Ref, error) { |
| 565 | if err := c.condDiscovery(); err != nil { |
| 566 | return blob.Ref{}, err |
| 567 | } |
| 568 | |
| 569 | if !c.serverPublicKeyBlobRef.Valid() { |
| 570 | return blob.Ref{}, ErrNoSigning |
| 571 | } |
| 572 | return c.serverPublicKeyBlobRef, nil |
| 573 | } |
| 574 | |
| 575 | // SearchRoot returns the server's search handler. |
| 576 | // If the server isn't running an index and search handler, the error |
no test coverage detected