cleaning up
parent
eed7281caf
commit
1c1cd76a9c
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue