diff options
author | 2019-11-20 11:10:58 -0800 | |
---|---|---|
committer | 2019-11-20 11:10:58 -0800 | |
commit | b35b371065165c014bf4f3673d322fb0d7027b04 (patch) | |
tree | f7adc076a8e1be432b23d95efe383f0af556344c /pkg/resources/refs.go | |
parent | chore: initial open source commit (diff) | |
download | k9p-b35b371065165c014bf4f3673d322fb0d7027b04.tar.xz |
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.go | 13 |
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) +} |