I'm working on a proof-of-concept application in go. This application needs to mount/unmount per user encrypted file systems before launching other services that rely on user's FS.
I'd like to embed gocryptfs in this application :
Thanks for your help.
gocryptfs isn't really designed to be embedded, and does not have public interfaces.
I think you'll be better off by calling it as an external cli application. The ABI is stable: https://github.com/rfjakob/gocryptfs/blob/master/Documentation/CLI_ABI.md
Too bad… Thanks for your reply.
I thought about it a bit more, embedding is certainly possible, but you'll have to copy the gocryptfs code into your app. Then you can use the interface in internal/fusefrontend.
I'm precisely working in this direction, thanks. It'll be a bit more difficult to keep in sync with your repo, but I'm digging this way.
Most helpful comment
I'm precisely working in this direction, thanks. It'll be a bit more difficult to keep in sync with your repo, but I'm digging this way.