diff --git a/internal/client/gvr.go b/internal/client/gvr.go index a22f7aa1..bd2720b1 100644 --- a/internal/client/gvr.go +++ b/internal/client/gvr.go @@ -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 } diff --git a/internal/config/styles.go b/internal/config/styles.go index b7cde097..f72c8233 100644 --- a/internal/config/styles.go +++ b/internal/config/styles.go @@ -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 } diff --git a/internal/render/pod.go b/internal/render/pod.go index 6a36e764..17b90145 100644 --- a/internal/render/pod.go +++ b/internal/render/pod.go @@ -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 { diff --git a/internal/ui/tree.go b/internal/ui/tree.go index b4c69437..61363d14 100644 --- a/internal/ui/tree.go +++ b/internal/ui/tree.go @@ -8,6 +8,7 @@ import ( "github.com/gdamore/tcell" ) +// KeyListenerFunc listens to key presses. type KeyListenerFunc func() // Tree represents a tree view.