libgocryptfs/internal/fusefrontend/ctlsock_interface.go
Jakob Unterwurzacher 75ebb28a62 ctlsock: add initial limited implementation
At the moment, in forward mode you can only encrypt paths
and in reverse mode you can only decrypt paths.
2016-11-10 00:27:08 +01:00

20 lines
457 B
Go

package fusefrontend
import (
"errors"
"github.com/rfjakob/gocryptfs/internal/ctlsock"
)
var _ ctlsock.Interface = &FS{} // Verify that interface is implemented.
// EncryptPath implements ctlsock.Backend
func (fs *FS) EncryptPath(plainPath string) (string, error) {
return fs.encryptPath(plainPath)
}
// DecryptPath implements ctlsock.Backend
func (fs *FS) DecryptPath(plainPath string) (string, error) {
return "", errors.New("Not implemented")
}