aboutsummaryrefslogtreecommitdiff
path: root/pkg/resources/refs.go
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2019-11-20 11:10:58 -0800
committerLibravatar Terin Stock <terinjokes@gmail.com>2019-11-20 11:10:58 -0800
commitb35b371065165c014bf4f3673d322fb0d7027b04 (patch)
treef7adc076a8e1be432b23d95efe383f0af556344c /pkg/resources/refs.go
parentchore: initial open source commit (diff)
downloadk9p-master.tar.xz
feat: add open source codeHEADmaster
Add the initial open source version of K9P with support for viewing namespaces and deployments. Current support is entirely read-only. Performance is pretty terrible. Needs much more love and care.
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)
+}