summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-03 19:27:07 +0200
committerJakob Unterwurzacher2015-09-03 19:27:07 +0200
commit4b98f74e3e875361436e57d870aed48c4bb44d77 (patch)
tree96fd9e0457373d6343a6cc08a7b997579976d62f /frontend
parent8a48609d0e070402a048c06f8b94457e572fa83c (diff)
Builds and mounts
Diffstat (limited to 'frontend')
-rw-r--r--frontend/fs.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/frontend/fs.go b/frontend/fs.go
index 464c19f..4ce3e5c 100644
--- a/frontend/fs.go
+++ b/frontend/fs.go
@@ -2,8 +2,19 @@ package frontend
import (
"github.com/rfjakob/gocryptfs/cryptfs"
+ "bazil.org/fuse/fs"
)
type FS struct {
- cryptfs.FS
+ *cryptfs.FS
+}
+
+func New(key [16]byte) *FS {
+ return &FS {
+ FS: cryptfs.NewFS(key),
+ }
+}
+
+func (fs *FS) Root() (fs.Node, error) {
+ return nil, nil
}