aboutsummaryrefslogtreecommitdiff
path: root/pkg/resources/resources.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/resources.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/resources.go')
-rw-r--r--pkg/resources/resources.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/resources/resources.go b/pkg/resources/resources.go
new file mode 100644
index 0000000..8c2eed5
--- /dev/null
+++ b/pkg/resources/resources.go
@@ -0,0 +1,12 @@
+package resources
+
+import (
+ "github.com/docker/go-p9p"
+ "k8s.io/client-go/informers"
+)
+
+type Session interface {
+ p9p.Session
+ GetAuth() (uname, aname string)
+ Informer() informers.SharedInformerFactory
+}