MCPcopy
hub / github.com/perkeep/perkeep / blobPrefix

Method blobPrefix

pkg/client/client.go:942–951  ·  view source on GitHub ↗

blobPrefix returns the URL prefix before the blobref hash. Example: http://foo.com:3179/bs/camli or http://foo.com:3179/share

()

Source from the content-addressed store, hash-verified

940// blobPrefix returns the URL prefix before the blobref hash.
941// Example: http://foo.com:3179/bs/camli or http://foo.com:3179/share
942func (c *Client) blobPrefix() (string, error) {
943 pfx, err := c.prefix()
944 if err != nil {
945 return "", err
946 }
947 if !c.isSharePrefix {
948 pfx += "/camli"
949 }
950 return pfx, nil
951}
952
953// discoRoot returns the user defined server for this client. It prepends "https://" if no scheme was specified.
954func (c *Client) discoRoot() string {

Callers 1

fetchViaMethod · 0.95

Calls 1

prefixMethod · 0.95

Tested by

no test coverage detected