App to mount cloud drives in linux
|
7 роки тому | |
---|---|---|
internal | 7 роки тому | |
test | 7 роки тому | |
vendor | 7 роки тому | |
README.md | 7 роки тому | |
SPEC.md | 7 роки тому | |
flags.go | 7 роки тому | |
main.go | 7 роки тому | |
version.go | 7 роки тому |
Linux util to Mount cloud drives
####Usage:
$ cloudmount -h
cloudmount-0.1-5-gea7b804 - built: 2017-07-10 18:24:27 UTC
Usage: cloudmount [options] MOUNTPOINT
Options:
-d Run app in background
-o string
uid,gid ex: -o uid=1000,gid=0
-r duration
Timed cloud synchronization interval [if applied] (default 2m0s)
-t string
which cloud service to use [gdrive] (default "gdrive")
-v Verbose log
-w string
Work dir, path that holds configurations (default "/home/stdio/.cloudmount")
$ go get dev.hexasoftware.com/hxs/cloudmount
$ cloudmount MOUNTPOINT
07-05-2017
Setup Google client secrets:
https://console.developers.google.com/apis/credentials
As of Google drive guidance:
Turn on the Drive API
- Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
- On the Add credentials to your project page, click the Cancel button.
- At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
- Select the Credentials tab, click the Create credentials button and select OAuth client ID.
- Select the application type Other, enter the name "Drive API Quickstart", and click the Create button.
- Click OK to dismiss the resulting dialog.
- Click the file_download (Download JSON) button to the right of the client ID.
Copy the downloaded JSON file to home directory as:
$HOME/.gdrivemount/client_secret.json
Signal | Action | ex |
---|---|---|
USR1 | Refreshes directory tree from google drive | killall -USR1 gdrivemount |
HUP | Perform a GC and shows memory usage Works when its not running in daemon mode | killall -HUP gdrivemount |