Coder Social home page Coder Social logo

ossutil's Introduction

Aliyun OSSUTIL

关于

  • 此工具采用go语言,基于OSS阿里云对象存储服务官方GO SDK 1.0.0 构建。
  • 阿里云对象存储(Object Storage Service,简称OSS),是阿里云对外提供的海量,安全,低成本,高可靠的云存储服务。
  • OSS适合存放任意文件类型,适合各种网站、开发企业及开发者使用。
  • 该工具旨在为用户提供一个方便的,以命令行方式管理OSS数据的途径。
  • 当前版本未提供Bucket管理功能和Multipart管理功能,相关功能会在后续版本中开发。

版本

  • 当前版本:1.0.0.Beta

运行环境

  • linux, windows

依赖的库

  • goopt (github.com/droundy/goopt)
  • configparser (github.com/alyu/configparser)
  • oss (github.com/aliyun/aliyun-oss-go-sdk/oss)

快速使用

获取命令列表

    ./ossutil
     ./ossutil help

查看某命令的帮助文档

    ./ossutil help cmd 
     ./ossutil cmd --man

配置ossutil

    ./ossutil config

列举Buckets

    ./ossutil ls
     ./ossutil ls oss://

上传文件

    ./ossutil cp localfile oss://bucket

其它

请使用./ossutil help cmd来查看想要使用的命令的帮助文档。

注意事项

运行

  • 拷贝代码文件到您的测试工程src目录下。
  • 在src目录下build代码生成ossutil工具,例如:在linux下可以运行go build ossutil.go。
  • 参考上面示例运行ossutil工具。

测试

  • 修改lib/command_test.go里的endpoint、AccessKeyId、AccessKeySecret、STSToken等配置。
  • 请在lib目录下执行go test

联系我们

作者

  • Ting Zhang

License

  • MIT

ossutil's People

Contributors

dengwu12 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.