# "look ma, no hands"
# commented on each individual directive are the available parameters
# requires:
# - /data/users.json (https://gist.github.com/refs/6efa7ef2a6d8259594c88125d0fdccf0)
# follow same naming convention as jfd... (b)ackend, (-)noauth only jwt tokens, (o)wncloud storage driver
[core]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"strconv" | |
"sync" |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This hardcoded stuff is too volatile. | |
# - load all configs on a folder | |
# - read the folder *.toml files | |
# - launch revad with -c on the current toml | |
# - set -p (pid) to the name of the file (minus extension) with the .pid extension | |
# run storage-home by default within the main pane of the new session | |
tmux new-session -s "reva" -d -c /Users/aunger/code/reva revad -c ./examples/separate/storage-home.toml -p storage-home.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ============================== | |
# usage: reva-panes path/to/toml | |
# - it starts the panes on detached mode, so | |
# - when attached to the session [C-c] will kill the daemon | |
# ============================== | |
# at least arg1 must exist | |
if [ $# -eq 0 ]; then | |
echo "wrong number of arguments" && exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/hex" | |
"log" | |
"net" | |
"time" | |
) | |
const ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/go.mod b/go.mod | |
index c546224..e9188f6 100644 | |
--- a/go.mod | |
+++ b/go.mod | |
@@ -3,23 +3,14 @@ module github.com/owncloud/ocis-reva | |
go 1.13 | |
require ( | |
- github.com/cespare/xxhash/v2 v2.1.1 // indirect | |
- github.com/cs3org/reva v0.1.1-0.20200320145721-40c4334849c3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package command | |
import ( | |
"context" | |
"os" | |
"os/signal" | |
"path" | |
"time" | |
"github.com/cs3org/reva/cmd/revad/runtime" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/signal" | |
"strconv" |