-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add README.zh-CN.md #750
add README.zh-CN.md #750
Conversation
Codecov Report
@@ Coverage Diff @@
## master #750 +/- ##
=======================================
Coverage 12.34% 12.34%
=======================================
Files 22 22
Lines 1434 1434
=======================================
Hits 177 177
Misses 1250 1250
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
README.zh-CN.md
Outdated
|
||
### 支持多种原生服务 | ||
|
||
目前已经有 **14** 个稳定的服务通过了所有的 [集成测试](https://github.com/beyondstorage/go-integration-test)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added two more services, so maybe we should add them in.
- [gdrive](https://github.com/beyondstorage/go-service-gdrive): [Google Drive](https://www.google.com/drive/) | ||
- [ipfs](https://github.com/beyondstorage/go-service-ipfs): [InterPlanetary File System](https://ipfs.io) | ||
- [memory](https://github.com/beyondstorage/go-service-memory): data that only in memory | ||
- [minio](https://github.com/beyondstorage/go-service-minio): [MinIO](https://min.io) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My last PR sorted these services alphabetically. Maybe you can refer to it.
|
||
- [uss](https://github.com/beyondstorage/go-service-uss/): [UPYUN Storage Service](https://www.upyun.com/products/file-storage) | ||
- [hdfs](https://github.com/beyondstorage/go-service-hdfs): [Hadoop Distributed File System](https://hadoop.apache.org/docs/r1.2.1/hdfs_design.html#Introduction) | ||
- [tar](https://github.com/beyondstorage/go-service-tar): tar files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
README.zh-CN.md
Outdated
|
||
全局对象元数据 | ||
|
||
- `id`: unique key in service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you forget to translate here.
README.zh-CN.md
Outdated
|
||
系统对象元数据 | ||
|
||
Service system object metadata like `storage-class` and so on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
README.zh-CN.md
Outdated
) | ||
|
||
func main() { | ||
// 连接字符串并初始化存储器 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "使用connection string
初始化storager
" or "使用连接字符串初始化存储器"?
@Xuanwo I'm not sure if some of the unique terms need to be translated as well, like storager
, connection string
, pair
, and operation name, etc?
README.zh-CN.md
Outdated
// 使用对象的函数获取元数据 | ||
length, ok := o.GetContentLength() | ||
|
||
// 列表将在路径下创建一个对象的迭代器 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "List
将创建路径下对象的迭代器" or "列举将创建路径下对象的迭代器"?
README.zh-CN.md
Outdated
// 通过块 id 组合区块 | ||
err := bs.CombineBlock(o, []string{"id-abc"}) | ||
``` | ||
- 页面:允许进行随机写入 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "页
", or keep Pager
without translation?
README.zh-CN.md
Outdated
|
||
- `id`: 服务中的唯一键 | ||
- `name`: 服务工作目录的相对路径 | ||
- `mode`: 对象的模式可以由以下几种进行组合:`read`, `dir`, `part` and [more](https://github.com/beyondstorage/go-storage/blob/master/types/object.go#L11) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not fully translated.
README.zh-CN.md
Outdated
|
||
### 服务器端加密 | ||
|
||
服务器端加密支持在 system pair 和 system metadata 中使用, 并且我们可以通过 [Default Pairs](https://beyondstorage.io/docs/go-storage/pairs/index#default-pairs) 来简化工作。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "支持通过 system pair 和 system metadata 指定在服务端对数据进行加密编码"?
README.zh-CN.md
Outdated
Read: []types.Pair{ | ||
// 需要, 必须为 AES256 | ||
s3.WithServerSideEncryptionCustomerAlgorithm(s3.ServerSideEncryptionAes256), | ||
// Required, your AES-256 key, a 32-byte binary value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to be translated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required, your AES-256 key, a 32-byte binary value
这个没明白是什么意思。。
ping @abyss-w to take another look. |
- [webdav](https://github.com/beyondstorage/go-service-webdav): [WebDAV](http://www.webdav.org/) | ||
- [zip](https://github.com/beyondstorage/go-service-zip): zip files | ||
|
||
更多关于服务的想法可以在 [Service Integration Tracking](https://github.com/beyondstorage/go-storage/issues/536) 找到。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does Service Integration Tracking
need to be translated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's OK to keep it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
translate README.md to README.zh-CN.md