summaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/node_api_check.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-08-08 18:45:47 +0200
committerJakob Unterwurzacher2020-08-08 18:45:47 +0200
commit527609266386890fe1657c225c643ca448bcd71d (patch)
tree8cb9261b827118311c195cbb6324ffaf87052970 /internal/fusefrontend_reverse/node_api_check.go
parent84ed139cd2cede9b773fe7892a0bc2515fc1f00f (diff)
v2api/reverse: implement Readlink
Diffstat (limited to 'internal/fusefrontend_reverse/node_api_check.go')
-rw-r--r--internal/fusefrontend_reverse/node_api_check.go37
1 files changed, 37 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/node_api_check.go b/internal/fusefrontend_reverse/node_api_check.go
new file mode 100644
index 0000000..e926fc3
--- /dev/null
+++ b/internal/fusefrontend_reverse/node_api_check.go
@@ -0,0 +1,37 @@
+package fusefrontend_reverse
+
+import (
+ "github.com/hanwen/go-fuse/v2/fs"
+)
+
+// Check that we have implemented the fs.Node* interfaces
+var _ = (fs.NodeGetattrer)((*Node)(nil))
+var _ = (fs.NodeLookuper)((*Node)(nil))
+var _ = (fs.NodeReaddirer)((*Node)(nil))
+var _ = (fs.NodeReadlinker)((*Node)(nil))
+
+/* TODO
+var _ = (fs.NodeOpener)((*Node)(nil))
+var _ = (fs.NodeStatfser)((*Node)(nil))
+var _ = (fs.NodeMknoder)((*Node)(nil))
+var _ = (fs.NodeGetxattrer)((*Node)(nil))
+var _ = (fs.NodeListxattrer)((*Node)(nil))
+*/
+
+/* Not needed
+var _ = (fs.NodeOpendirer)((*Node)(nil))
+*/
+
+/* Will not implement these - reverse mode is read-only!
+var _ = (fs.NodeCreater)((*Node)(nil))
+var _ = (fs.NodeMkdirer)((*Node)(nil))
+var _ = (fs.NodeRmdirer)((*Node)(nil))
+var _ = (fs.NodeUnlinker)((*Node)(nil))
+var _ = (fs.NodeSetattrer)((*Node)(nil))
+var _ = (fs.NodeLinker)((*Node)(nil))
+var _ = (fs.NodeSymlinker)((*Node)(nil))
+var _ = (fs.NodeRenamer)((*Node)(nil))
+var _ = (fs.NodeSetxattrer)((*Node)(nil))
+var _ = (fs.NodeRemovexattrer)((*Node)(nil))
+var _ = (fs.NodeCopyFileRanger)((*Node)(nil))
+*/