Google云端存储在文件中寻找

mat*_*s90 4 google-app-engine google-cloud-storage

Google App Engine网站(https://developers.google.com/appengine/docs/python/googlestorage/functions#seek)暗示能够在Google云端存储上的文件中进行搜索.但是,在Google云端存储API页面上,没有迹象表明可以搜索.

我想知道是否有可能使用API​​从非Google App Engine服务器中搜索存储在Google云端存储中的文件.

fej*_*jta 10

使用Range标头执行此操作.

以下将获得6个字节10,11,12,13,14 和15.

curl -v -H "Range: bytes=10-15" http://storage.googleapis.com/pub/gsutil.tar.gz

> GET /pub/gsutil.tar.gz HTTP/1.1
> Host: storage.googleapis.com
> Accept: */*
> Range: bytes=10-15
>
HTTP/1.1 206 Partial Content
< Content-Range: bytes 10-15/1092318
< Content-Length: 6
{ [data not shown]
Run Code Online (Sandbox Code Playgroud)

字节从0开始到(长度 - 1).所以一个5字节的文件包含字节0,1,2,3和4.