cleaning up

mine
derailed 2019-12-30 15:19:52 -07:00
parent 83adc16242
commit a298ba0d9e
8 changed files with 8 additions and 7 deletions

View File

@ -18,7 +18,7 @@ func TestColorize(t *testing.T) {
}
for k := range uu {
u := uu[k]
u := uu[k]
t.Run(k, func(t *testing.T) {
assert.Equal(t, u.e, Colorize(u.s, u.c))
})

View File

@ -51,7 +51,7 @@ func (d *DaemonSet) Restart(path string) error {
return err
}
// Logs tail logs for all pods represented by this DaemonSet.
// TailLogs tail logs for all pods represented by this DaemonSet.
func (d *DaemonSet) TailLogs(ctx context.Context, c chan<- string, opts LogOptions) error {
o, err := d.Get("apps/v1/daemonsets", opts.Path, labels.Everything())
if err != nil {

View File

@ -80,7 +80,7 @@ type Runnable interface {
Run(path string) error
}
// Loggers represents a resource that exposes logs.
// Logger represents a resource that exposes logs.
type Logger interface {
// Logs tails a resource logs.
Logs(path string, opts *v1.PodLogOptions) *restclient.Request

View File

@ -4,7 +4,7 @@ import (
"github.com/derailed/k9s/internal/render"
)
// Registy tracks resources metadata.
// Registry tracks resources metadata.
// BOZO!! Break up deps and merge into single registrar
var Registry = map[string]ResourceMeta{
// Custom...

View File

@ -62,7 +62,7 @@ func (rr Rows) Delete(id string) Rows {
return append(rr[:idx], rr[idx+1:]...)
}
// Upserts adds a new item.
// Upsert adds a new item.
func (rr Rows) Upsert(r Row) Rows {
idx, ok := rr.Find(r.ID)
if !ok {

View File

@ -21,6 +21,7 @@ func (ScreenDump) ColorerFunc() ColorerFunc {
}
}
// DecoratorFunc decorates a string.
type DecoratorFunc func(string) string
// AgeDecorator represents a timestamped as human column.

View File

@ -77,7 +77,7 @@ func (d *Details) Update(buff string) *Details {
return d
}
// SetSubjects updates the subject.
// SetSubject updates the subject.
func (d *Details) SetSubject(s string) {
d.subject = s
}

View File

@ -13,7 +13,7 @@ import (
"github.com/rs/zerolog/log"
)
// ScaleExtenders adds scaling extensions.
// ScaleExtender adds scaling extensions.
type ScaleExtender struct {
ResourceViewer
}