MCPcopy
hub / github.com/perkeep/perkeep / prefix

Method prefix

pkg/client/client.go:933–938  ·  view source on GitHub ↗

prefix returns the URL prefix before "/camli/", or before the blobref hash in case of a share URL. Examples: http://foo.com:3179/bs or http://foo.com:3179/share

()

Source from the content-addressed store, hash-verified

931// the blobref hash in case of a share URL.
932// Examples: http://foo.com:3179/bs or http://foo.com:3179/share
933func (c *Client) prefix() (string, error) {
934 if err := c.prefixOnce.Do(c.initPrefix); err != nil {
935 return "", err
936 }
937 return c.prefixv, nil
938}
939
940// blobPrefix returns the URL prefix before the blobref hash.
941// Example: http://foo.com:3179/bs/camli or http://foo.com:3179/share

Callers 6

EnumerateBlobsOptsMethod · 0.95
doStatMethod · 0.95
UploadMethod · 0.95
RemoveBlobsMethod · 0.95
BlobRootMethod · 0.95
blobPrefixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected