From 4b98f74e3e875361436e57d870aed48c4bb44d77 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 3 Sep 2015 19:27:07 +0200 Subject: Builds and mounts --- frontend/fs.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'frontend') 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 } -- cgit v1.2.3