about summary refs log tree commit diff
path: root/pkg/resources/refs.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/resources/refs.go')
-rw-r--r--pkg/resources/refs.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/resources/refs.go b/pkg/resources/refs.go
new file mode 100644
index 0000000..3ede9e7
--- /dev/null
+++ b/pkg/resources/refs.go
@@ -0,0 +1,13 @@
+package resources
+
+import (
+	"context"
+
+	"github.com/docker/go-p9p"
+)
+
+type Ref interface {
+	Info() p9p.Dir
+	Get(name string) (Ref, error)
+	Read(ctx context.Context, p []byte, offset int64) (n int, err error)
+}