Git Product home page Git Product logo

filemanager-1's Introduction

Tracking

Travis Coveralls

Manage files in storage

def add_file(self, 
             bucket, 
             object_name, 
             findability, 
             owner, 
             owner_id, 
             dataset_id, 
             flow_id, 
             size, 
             created_at):
    # Record a file was added to the storage
    pass

API

Get info about file

storage/info/<bucket>/<path:object_name>

return

{
  "bucket": "the-bucket",
  "object_name": "path/to/file",
  "findability": "published/unlisted/private/etc.",
  "owner": "username",
  "owner_id": "userid",
  "dataset_id": "owner/dataset-name",
  "last_flow_id": "owner/dataset-name/100",
  "flow_ids": ["owner/dataset-name/99", "owner/dataset-name/100"],  
  "size": 1234,
  "created_at": "2017-09-23T12:00:00"
}

Get total size for owner/dataset/flow

storage/owner/<owner> storage/dataset_id/<path:dataset_id> storage/flow_id/<path:flow_id>

return

{
  "totalBytes": 12345
}

An optional query parameter findability can be added to filter by findability, e.g. ?findability=unlisted.

Contributing

Please read the contribution guideline:

How to Contribute

Thanks!

filemanager-1's People

Contributors

akariv avatar zelima 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.