goosefs ns [generic options]
命名空间各项指令说明如下表:
| 指令操作 | 指令说明 |
| cacheRestrict -apply <config> | 用于为指定命名空间应用指定的缓存策略配置。 |
| cacheRestrictList [-all] [<namespace>] | 用于列出指定命名空间已配置的缓存策略,配合 -all 显示全部。 |
| create <namespace> <CosN/Chdfs path> <–wPolicy <1-6>> <–rPolicy <1-2>> [–readonly] [–shared] [–secret fs.cosn.userinfo.secretId=<AKIDxxxxxxx>] [–secret fs.cosn.userinfo.secretKey=<xxxxxxxxxx>] [–attribute fs.ofs.userinfo.appid=1200000000][–attribute fs.cosn.bucket.region=<ap-xxx>/fs.cosn.bucket.endpoint_suffix=<cos.ap-xxx.myqcloud.com>][–attribute bucket_type=COS/OFS] | 用于创建指定名称的命名空间。 |
| delete <namespace> | 用于删除指定名称的命名空间。 |
| help [<command>] | 获取命名空间指令帮助。 |
| ls [-r|–sort=option|–timestamp=option] | 用于按照筛选条件,列出当前集群上的命名空间列表。 |
| setPolicy [–wPolicy <1-6>] [–rPolicy <1-3>] <namespace> | 用于设置指定命名空间的缓存策略。 |
| setTtl [–action delete_only_goosefs|delete|free] <namespace> <time to live> | 用于设置指定命名空间的 TTL 策略。 |
| stat <namespace> | 用于统计指定命名空间的信息。 |
| unsetPolicy <namespace> | 用于重置指定命名空间的缓存策略。 |
| unsetTtl <namespace> | 用于重置指定命名空间的 TTL 策略。 |
| update <namespace> [–readonly] [–shared] [–secret <key=value>] [–attribute <key=value>] | 用于更新指定命名空间的属性。 |