Git Product home page Git Product logo

asto's Introduction

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

Build Status Javadoc License codecov Hits-of-Code Maven Central PDD status

Asto stands for Abstract Storage, an abstraction over physical data storage system. The main entity of the library is an interface com.artipie.asto.Storage, a contract which requires to implement the following functionalities:

  • put/get operations
  • transaction support
  • list files in a directory
  • check if a file/directory exists

Supported abstractions:

This is the dependency you need:

<dependency>
  <groupId>com.artipie</groupId>
  <artifactId>asto</artifactId>
  <version>[...]</version>
</dependency>

Read the Javadoc for more technical details.

Quick start

Create a hello.txt file with "Hello World!" content on file-system-based storage in blocking way:

final BlockingStorage storage = new BlockingStorage(
    new FileStorage(
        Files.createTempDirectory("temp-blocking")
    )
).save(new Key.From("hello.txt"), "Hello World!".getBytes());

The same with RxJava2 way:

new RxStorageWrapper(
    new FileStorage(
        Files.createTempDirectory("temp-rx")
    )
).save(
    new Key.From("hello.txt"),
    ByteBuffer.wrap("Hello World!".getBytes())
);

How to contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

$ mvn clean install -Pqulice

To avoid build errors use Maven 3.2+.

asto's People

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.