Sign inSign up

xiaopal/npc-shell

By xiaopal

•Updated over 7 years ago

npc/nos OpenAPI command line utility

Image
0

527

xiaopal/npc-shell repository overview

⁠npc-shell

npc/nos OpenAPI command line utility 参见 https://github.com/xiaopal/npc-shell⁠

Update 2019-02-26

⁠开始使用

$ docker run -i --rm \
    -e NPC_API_KEY=<API_KEY> \
    -e NPC_API_SECRET=<API_SECRET> \
    xiaopal/npc-shell \
	npc api GET /api/v1/namespaces

$ docker run -i --rm \
    -e NPC_API_KEY=<API_KEY> \
    -e NPC_API_SECRET=<API_SECRET> \
    xiaopal/npc-shell \
	npc api POST /api/v1/namespaces '{"name": "test"}'

$ docker run -i --rm \
    -e NPC_API_KEY=<API_KEY> \
    -e NPC_API_SECRET=<API_SECRET> \
    xiaopal/npc-shell \
	npc nos PUT /<bucket>/<object> <file_data|@file>

$ docker run -it --rm \
    -e NPC_API_KEY=<API_KEY> \
    -e NPC_API_SECRET=<API_SECRET> \
    xiaopal/npc-shell

Tag summary

Content type

Image

Digest

Size

6.5 MB

Last updated

over 7 years ago

docker pull xiaopal/npc-shell