From 1c1cd76a9ccd5183db7902bf9116ae554f28fbca Mon Sep 17 00:00:00 2001 From: derailed Date: Wed, 1 Jan 2020 00:12:34 -0700 Subject: [PATCH] cleaning up --- internal/view/help.go | 5 +++-- internal/watch/factory.go | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/view/help.go b/internal/view/help.go index 4ed58807..1ca13e12 100644 --- a/internal/view/help.go +++ b/internal/view/help.go @@ -21,6 +21,9 @@ const ( helpTitleFmt = " [aqua::b]%s " ) +// HelpFunc processes menu hints. +type HelpFunc func() model.MenuHints + // Help presents a help viewer. type Help struct { *Table @@ -73,8 +76,6 @@ func (v *Help) computeMaxes(hh model.MenuHints) { v.maxKey += 2 } -type HelpFunc func() model.MenuHints - func (v *Help) build() { v.Clear() diff --git a/internal/watch/factory.go b/internal/watch/factory.go index fb25fa99..9da09081 100644 --- a/internal/watch/factory.go +++ b/internal/watch/factory.go @@ -18,6 +18,7 @@ const ( clusterScope = "-" ) +// ReadVerbs lists out RO verbs. var ReadVerbs = []string{"get", "list", "watch"} // Factory tracks various resource informers. @@ -106,7 +107,7 @@ func (f *Factory) FactoryFor(ns string) di.DynamicSharedInformerFactory { return f.factories[ns] } -// SetActive sets the active namespace. +// SetActiveNS sets the active namespace. // BOZO!! Check ns access for resource?? func (f *Factory) SetActiveNS(ns string) { if !f.isClusterWide() {