qsctl

module
v2.0.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2019 License: Apache-2.0

README

qsctl

Build Status GoDoc Go Report Card codecov License

中文文档

qsctl is intended to be an advanced command line tool for QingStor, it provides powerful unix-like commands to let you manage QingStor resources just like files on local machine.

Installation

Binary

Visit https://github.com/yunify/qsctl/releases to get latest releases.

Getting Started

Configure via initialization wizard
Configure manually

To use qsctl, there must be a configuration file , for example

access_key_id: 'ACCESS_KEY_ID_EXAMPLE'
secret_access_key: 'SECRET_ACCESS_KEY_EXAMPLE'

The configuration file is ~/.qingstor/config.yaml by default, it also can be specified by the option -c /path/to/config.

You can also config other option like host , port and so on, just add lines below into configuration file, for example

host: 'qingstor.com'
port: 443
protocol: 'https'
connection_retries: 3
# Valid levels are 'debug', 'info', 'warn', 'error', and 'fatal'.
log_level: 'debug'
zone: 'zone_name'

Available Commands

Commands supported by qsctl are listed below:

  • cat: Cat a remote object into stdout.
  • cp: Copy local file(s) to QingStor or QingStor key(s) to local.
  • ls: List buckets, or objects with given prefix.
  • mb: Make a new bucket.
  • presign: Get the pre-signed URL by given object key.
  • rb: Delete a bucket.
  • rm: Remove remote object(s).
  • stat: Stat a remote object.
  • sync: Sync between local directory and QS-Directory.
  • tee: Tee from stdin to a remote object.

See the detailed usage and examples with qsctl help or qsctl <command> help.

Directories

Path Synopsis
cmd
internal
cmd/generator/errors
The following directive is necessary to make the package coherent: This program generates types, It can be invoked by running go generate
The following directive is necessary to make the package coherent: This program generates types, It can be invoked by running go generate
cmd/generator/tasks
The following directive is necessary to make the package coherent: This program generates types, It can be invoked by running go generate
The following directive is necessary to make the package coherent: This program generates types, It can be invoked by running go generate
cmd/generator/types
The following directive is necessary to make the package coherent: This program generates types, It can be invoked by running go generate
The following directive is necessary to make the package coherent: This program generates types, It can be invoked by running go generate
pkg
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
types
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL