MCPcopy
hub / github.com/perkeep/perkeep / BlobRoot

Method BlobRoot

pkg/client/client.go:541–547  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

539// that path is used. Otherwise the server's
540// default advertised blobRoot is used.
541func (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

Callers 3

storageFromParamMethod · 0.80
newImporterHostFunction · 0.80
discoMethod · 0.80

Calls 1

prefixMethod · 0.95

Tested by

no test coverage detected