App represents an application view.
| 43 | |
| 44 | // App represents an application view. |
| 45 | type App struct { |
| 46 | version string |
| 47 | *ui.App |
| 48 | Content *PageStack |
| 49 | command *Command |
| 50 | factory *watch.Factory |
| 51 | cancelFn context.CancelFunc |
| 52 | clusterModel *model.ClusterInfo |
| 53 | cmdHistory *model.History |
| 54 | filterHistory *model.History |
| 55 | conRetry int32 |
| 56 | showHeader bool |
| 57 | showLogo bool |
| 58 | showCrumbs bool |
| 59 | } |
| 60 | |
| 61 | // NewApp returns a K9s app instance. |
| 62 | func NewApp(cfg *config.Config) *App { |
nothing calls this directly
no outgoing calls
no test coverage detected