GithubHelp home page GithubHelp logo

opcooc-storage's Introduction

opcooc-storage-logo

Just to simplify file storage

maven license JDK Docs gitee star github star gitter

aws-s3 tencent-cos minio aliyun-oss qiliu

  • QQ exchange group 789585778,You can obtain detailed graphic documents and questions and answers for each project

What is opcooc-storage?

opcooc-storage encapsulates and expands aws s3

CN doc EN doc

Getting started

  • Add opcooc-storage dependency

    • Maven:
          <dependency>
            <groupId>com.opcooc</groupId>
            <artifactId>opcooc-storage-boot-starter</artifactId>
            <version>1.1.1</version>
          </dependency>
    • Gradle
      compile group: 'com.opcooc', name: 'opcooc-storage-boot-starter', version: '1.1.1'
  • Add config , add config information in application.yml

        opcooc:
          enabled: true
          primary: MINIO
          client:
            MINIO:
              bucket-name: opcooc
              end-point: http://xxx:9000
              access-key: xxx
              secret-key: xxx
            OSS:
              bucket-name: opcooc
              end-point: https://oss-cn-shanghai.aliyuncs.com
              access-key: xxx
              secret-key: xxx
  • Use it

        @RestController
        @RequiredArgsConstructor(onConstructor_ = @Autowired)
        @RequestMapping(value = "/client", produces = {APPLICATION_JSON_VALUE})
        public class ClientController {
        
            private final StorageClient storageClient;
        
            @GetMapping(value = "create-folder")
            public Response createFolder(@RequestParam String source, @RequestParam String folder) {
                storageClient.op(source).createFolder(folder);
                return Response.success();
            }
        
        }

This showcase is just a small part of opcooc-storage features. If you want to learn more, please refer to the documentation.

License

opcooc-storage is under the Apache 2.0 license. See the Apache License 2.0 file for details.

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.