MCPcopy
hub / github.com/derailed/k9s / logOptions

Method logOptions

internal/view/dp.go:52–63  ·  view source on GitHub ↗
(prev bool)

Source from the content-addressed store, hash-verified

50}
51
52func (d *Deploy) logOptions(prev bool) (*dao.LogOptions, error) {
53 path := d.GetTable().GetSelectedItem()
54 if path == "" {
55 return nil, errors.New("you must provide a selection")
56 }
57 dp, err := d.getInstance(path)
58 if err != nil {
59 return nil, err
60 }
61
62 return podLogOptions(d.App(), path, prev, &dp.ObjectMeta, &dp.Spec.Template.Spec), nil
63}
64
65func (d *Deploy) replicaSetsCmd(evt *tcell.EventKey) *tcell.EventKey {
66 dName := d.GetTable().GetSelectedItem()

Callers

nothing calls this directly

Calls 5

getInstanceMethod · 0.95
podLogOptionsFunction · 0.85
GetSelectedItemMethod · 0.65
GetTableMethod · 0.65
AppMethod · 0.65

Tested by

no test coverage detected