Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t3rm1n4l/go-mega
A client library in go for mega.co.nz storage service
https://github.com/t3rm1n4l/go-mega
Last synced: 4 days ago
JSON representation
A client library in go for mega.co.nz storage service
- Host: GitHub
- URL: https://github.com/t3rm1n4l/go-mega
- Owner: t3rm1n4l
- License: mit
- Created: 2013-06-04T01:58:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-02-19T08:06:18.000Z (9 months ago)
- Last Synced: 2024-08-01T19:54:33.652Z (3 months ago)
- Language: Go
- Size: 117 KB
- Stars: 191
- Watchers: 19
- Forks: 45
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-mega
=======A client library in go for mega.co.nz storage service.
An implementation of command-line utility can be found at [https://github.com/t3rm1n4l/megacmd](https://github.com/t3rm1n4l/megacmd)
[![Build Status](https://secure.travis-ci.org/t3rm1n4l/go-mega.png?branch=master)](http://travis-ci.org/t3rm1n4l/go-mega)
### What can i do with this library?
This is an API client library for MEGA storage service. Currently, the library supports the basic APIs and operations as follows:
- User login
- Fetch filesystem tree
- Upload file
- Download file
- Create directory
- Move file or directory
- Rename file or directory
- Delete file or directory
- Parallel split download and upload
- Filesystem events auto sync
- Unit tests### API methods
Please find full doc at [https://pkg.go.dev/github.com/t3rm1n4l/go-mega](https://pkg.go.dev/github.com/t3rm1n4l/go-mega)
### Testing
export MEGA_USER=
export MEGA_PASSWD=
$ make test
go test -v
=== RUN TestLogin
--- PASS: TestLogin (1.90 seconds)
=== RUN TestGetUser
--- PASS: TestGetUser (1.65 seconds)
=== RUN TestUploadDownload
--- PASS: TestUploadDownload (12.28 seconds)
=== RUN TestMove
--- PASS: TestMove (9.31 seconds)
=== RUN TestRename
--- PASS: TestRename (9.16 seconds)
=== RUN TestDelete
--- PASS: TestDelete (3.87 seconds)
=== RUN TestCreateDir
--- PASS: TestCreateDir (2.34 seconds)
=== RUN TestConfig
--- PASS: TestConfig (0.01 seconds)
=== RUN TestPathLookup
--- PASS: TestPathLookup (8.54 seconds)
=== RUN TestEventNotify
--- PASS: TestEventNotify (19.65 seconds)
PASS
ok github.com/t3rm1n4l/go-mega68.745s### TODO
- Implement APIs for public download url generation
- Implement download from public url
- Add shared user content management APIs
- Add contact list management APIs### License
MIT