Coder Social home page Coder Social logo

webdav-serverless / webdav-serverless Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 183 KB

An implementation of the WebDav protocol backed by AWS S3 and DynamoDB.

License: MIT License

Go 99.65% Shell 0.22% Dockerfile 0.13%
dynamodb s3 webdav webdav-server serverless

webdav-serverless's Introduction

webdav-serverless

An implementation of the WebDav protocol backed by AWS S3 and DynamoDB.

About the Design of webdav-serverless

Diagram of webdav-serverless

Metadata Structure Overview

Metadata:

Metadata

Reference:

Reference

Note: In reality, the reference paths are hashed.

Defining MetadataStore tables using DynamoDB

Metadata:

Key Attributes Type Description
PK id string Unique ID (eg. UUID)
GSIPK1 parent_id string ID of the parent directory
name string Name (eg. report.pdf)
type string File system entry type (eg. File or Directory)
size number File size (eg. 512)
modify string File modify time (eg. ISO 8601)
version number Version number for optimistic lock (eg. 1)

Reference:

Key Attributes Type Description
PK id string Unique ID (eg. hashed path)
entries map key(hashed path): value(metadata id)
version number Version number for optimistic lock (eg. 1)

PhysicalStorage specifications using S3

# S3 Key (Metadata#id)
$bucket_name/$UUID

Development

Starting Docker Compose:

docker-compose up --force-recreate --build --abort-on-container-exit

Initialize DynamoDB(dynamodb-local):

docker-compose run dynamodb-init

Initialize S3(minio):

docker-compose run s3-init

Run Go Application:

env AWS_ACCESS_KEY_ID="AKIAIOSFODNN7EXAMPLE" AWS_SECRET_ACCESS_KEY="wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" AWS_REGION="us-east-1" go run main.go --port=8080 --dynamodb-url=http://localhost:18070 --s3-url=http://localhost:19010

Authors

  • vvatanabe - Main contributor
  • safx - Main contributor
  • kunst1080 - Main contributor
  • Currently, there are no other contributors

License

This project is licensed under the MIT License. For detailed licensing information, refer to the LICENSE file included in the repository.

webdav-serverless's People

Contributors

vvatanabe avatar

Stargazers

Xiaowei Song avatar satoshi funatsu avatar Junji Takakura avatar Makoto Motohashi avatar zetton110 avatar Yasuyuki Baba avatar mdkn avatar Teruo Kunihiro avatar KazukiMorokado avatar  avatar

Watchers

 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.