cleaning up

mine
derailed 2020-01-01 00:12:34 -07:00
parent eed7281caf
commit 1c1cd76a9c
2 changed files with 5 additions and 3 deletions

View File

@ -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()

View File

@ -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() {