aboutsummaryrefslogtreecommitdiff
path: root/cluefs_frontend/fe_checks.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-07 21:10:42 +0200
committerJakob Unterwurzacher2015-09-07 21:10:42 +0200
commitaf0ae03db23f845dbcf8a6738057222ce7986bd8 (patch)
tree90aa7fc12b9b12b28c486b9bdc3e62ab40eb0fe6 /cluefs_frontend/fe_checks.go
parentcd9512801525a63530c1f74ac184fb1d73bff67b (diff)
Rename frontend to "cluefs_frontend"
Enables adding another frontend later
Diffstat (limited to 'cluefs_frontend/fe_checks.go')
-rw-r--r--cluefs_frontend/fe_checks.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/cluefs_frontend/fe_checks.go b/cluefs_frontend/fe_checks.go
new file mode 100644
index 0000000..c555436
--- /dev/null
+++ b/cluefs_frontend/fe_checks.go
@@ -0,0 +1,31 @@
+package cluefs_frontend
+
+import (
+ "bazil.org/fuse/fs"
+)
+
+// Compile-time interface checks.
+var _ fs.FS = (*FS)(nil)
+var _ fs.FSStatfser = (*FS)(nil)
+
+var _ fs.Node = (*Dir)(nil)
+var _ fs.NodeCreater = (*Dir)(nil)
+var _ fs.NodeMkdirer = (*Dir)(nil)
+var _ fs.NodeRemover = (*Dir)(nil)
+var _ fs.NodeRenamer = (*Dir)(nil)
+var _ fs.HandleReadDirAller = (*Dir)(nil)
+
+var _ fs.HandleReader = (*File)(nil)
+var _ fs.HandleWriter = (*File)(nil)
+var _ fs.Node = (*File)(nil)
+var _ fs.NodeOpener = (*File)(nil)
+var _ fs.NodeSetattrer = (*File)(nil)
+
+func foo(h fs.HandleReadDirAller) {
+
+}
+
+func init() {
+ var d Dir
+ foo(&d)
+}