cleaning up

mine
derailed 2020-01-22 11:41:33 -07:00
parent 95cac2a511
commit 6ba788455c
4 changed files with 10 additions and 9 deletions

View File

@ -71,7 +71,7 @@ func (g GVR) String() string {
return g.raw
}
// AsGV returns the group version scheme representation.
// GV returns the group version scheme representation.
func (g GVR) GV() schema.GroupVersion {
return schema.GroupVersion{
Group: g.g,
@ -79,7 +79,7 @@ func (g GVR) GV() schema.GroupVersion {
}
}
// AsGVR returns a a full schema representation.
// GVR returns a a full schema representation.
func (g GVR) GVR() schema.GroupVersionResource {
return schema.GroupVersionResource{
Group: g.G(),
@ -88,7 +88,7 @@ func (g GVR) GVR() schema.GroupVersionResource {
}
}
// AsGR returns a a full schema representation.
// GR returns a a full schema representation.
func (g GVR) GR() *schema.GroupResource {
return &schema.GroupResource{
Group: g.G(),
@ -96,22 +96,22 @@ func (g GVR) GR() *schema.GroupResource {
}
}
// ToV returns the resource version.
// V returns the resource version.
func (g GVR) V() string {
return g.v
}
// ToRAndG returns the resource and group.
// RG returns the resource and group.
func (g GVR) RG() (string, string) {
return g.r, g.g
}
// ToR returns the resource name.
// R returns the resource name.
func (g GVR) R() string {
return g.r
}
// ToG returns the resource group name.
// G returns the resource group name.
func (g GVR) G() string {
return g.g
}

View File

@ -348,7 +348,7 @@ func (s *Styles) Title() Title {
return s.Frame().Title
}
// GetTable returns table styles.
// Table returns table styles.
func (s *Styles) Table() Table {
return s.K9s.Table
}

View File

@ -213,7 +213,7 @@ func (*Pod) mapQOS(class v1.PodQOSClass) string {
}
}
// Status reports current pod container statuses.
// Statuses reports current pod container statuses.
func (*Pod) Statuses(ss []v1.ContainerStatus) (cr, ct, rc int) {
for _, c := range ss {
if c.State.Terminated != nil {

View File

@ -8,6 +8,7 @@ import (
"github.com/gdamore/tcell"
)
// KeyListenerFunc listens to key presses.
type KeyListenerFunc func()
// Tree represents a tree view.