Versions in this module Expand all Collapse all v1 v1.1.0 Jan 4, 2023 v1.0.12 Nov 15, 2022 v1.0.11 Nov 11, 2022 v1.0.10 Nov 10, 2022 v1.0.9 Nov 10, 2022 v1.0.8 Nov 9, 2022 v1.0.7 Nov 9, 2022 v1.0.6 Nov 9, 2022 v1.0.5 Nov 9, 2022 v1.0.4 Nov 9, 2022 v1.0.3 Nov 8, 2022 Changes in this version + const Blank + const Completed + const ContainerCreating + const Initialized + const MissingValue + const NAValue + const NonResource + const Pending + const PodInitializing + const Running + const Terminating + const UnknownValue + const UnsetValue + const ZeroValue + var AddColor tcell.Color + var AgeDecorator = func(a string) string + var CompletedColor tcell.Color + var ErrColor tcell.Color + var HighlightColor tcell.Color + var KillColor tcell.Color + var ModColor tcell.Color + var PendingColor tcell.Color + var StdColor tcell.Color + func AsPerc(p string) string + func AsThousands(n int64) string + func DefaultColorer(ns string, h Header, re RowEvent) tcell.Color + func Happy(ns string, h Header, r Row) bool + func IntToStr(p int) string + func Less(isNumber, isDuration bool, id1, id2, v1, v2 string) bool + func Pad(s string, width int) string + func PrintPerc(p int) string + func ToContainerPorts(pp []v1.ContainerPort) string + func ToContainerState(s v1.ContainerState) string + func ToPorts(pp []v1.ServicePort) string + func Truncate(str string, width int) string + func UrlFor(host, path, port string) string + type Alias struct + func (Alias) Header(ns string) Header + func (Alias) Render(o interface{}, ns string, r *Row) error + type AliasRes struct + Aliases []string + GVR string + func (AliasRes) GetObjectKind() schema.ObjectKind + func (a AliasRes) DeepCopyObject() runtime.Object + type Base struct + func (Base) ColorerFunc() ColorerFunc + func (Base) Happy(_ string, _ Row) bool + func (Base) IsGeneric() bool + type BenchCfg struct + C int + Host string + N int + Path string + type BenchInfo struct + File os.FileInfo + Path string + func (BenchInfo) GetObjectKind() schema.ObjectKind + func (b BenchInfo) DeepCopyObject() runtime.Object + type Benchmark struct + func (Benchmark) Header(ns string) Header + func (b Benchmark) ColorerFunc() ColorerFunc + func (b Benchmark) Render(o interface{}, ns string, r *Row) error + type Builder struct + Report Report + type ClusterRole struct + func (ClusterRole) Header(string) Header + func (ClusterRole) Render(o interface{}, ns string, r *Row) error + type ClusterRoleBinding struct + func (ClusterRoleBinding) Header(string) Header + func (ClusterRoleBinding) Render(o interface{}, ns string, r *Row) error + type ColorerFunc func(ns string, h Header, re RowEvent) tcell.Color + type Container struct + func (Container) Header(ns string) Header + func (c Container) ColorerFunc() ColorerFunc + func (c Container) Render(o interface{}, name string, r *Row) error + type ContainerRes struct + Age metav1.Time + Container *v1.Container + IsInit bool + MX *mv1beta1.ContainerMetrics + Status *v1.ContainerStatus + func (c ContainerRes) DeepCopyObject() runtime.Object + func (c ContainerRes) GetObjectKind() schema.ObjectKind + type ContainerWithMetrics interface + Age func() metav1.Time + Container func() *v1.Container + ContainerStatus func() *v1.ContainerStatus + IsInit func() bool + Metrics func() *mv1beta1.ContainerMetrics + type Context struct + func (Context) ColorerFunc() ColorerFunc + func (Context) Header(ns string) Header + func (c Context) Render(o interface{}, _ string, r *Row) error + type ContextNamer interface + CurrentContextName func() (string, error) + type CronJob struct + func (CronJob) Header(ns string) Header + func (c CronJob) Render(o interface{}, ns string, r *Row) error + type CustomResourceDefinition struct + func (CustomResourceDefinition) Header(string) Header + func (CustomResourceDefinition) Render(o interface{}, ns string, r *Row) error + type DaemonSet struct + func (DaemonSet) Header(ns string) Header + func (d DaemonSet) Render(o interface{}, ns string, r *Row) error + type DecoratorFunc func(string) string + type DeltaRow []string + func NewDeltaRow(o, n Row, h Header) DeltaRow + func (d DeltaRow) Clone() DeltaRow + func (d DeltaRow) Customize(cols []int, out DeltaRow) + func (d DeltaRow) Diff(r DeltaRow, ageCol int) bool + func (d DeltaRow) IsBlank() bool + func (d DeltaRow) Labelize(cols []int, labelCol int) DeltaRow + type Deployment struct + func (Deployment) Header(ns string) Header + func (d Deployment) ColorerFunc() ColorerFunc + func (d Deployment) Render(o interface{}, ns string, r *Row) error + type Dir struct + func (Dir) ColorerFunc() ColorerFunc + func (Dir) Header(ns string) Header + func (Dir) IsGeneric() bool + func (Dir) Render(o interface{}, ns string, r *Row) error + type DirRes struct + Entry os.DirEntry + Path string + func (DirRes) GetObjectKind() schema.ObjectKind + func (d DirRes) DeepCopyObject() runtime.Object + type Endpoints struct + func (Endpoints) Header(ns string) Header + func (e Endpoints) Render(o interface{}, ns string, r *Row) error + type Event struct + func (*Event) IsGeneric() bool + func (e *Event) ColorerFunc() ColorerFunc + func (e *Event) Header(ns string) Header + func (e *Event) Render(o interface{}, ns string, r *Row) error + type Fields []string + func (f Fields) Clone() Fields + func (f Fields) Customize(cols []int, out Fields) + func (f Fields) Diff(ff Fields, ageCol int) bool + type FileRes struct + Dir string + File os.FileInfo + func (c FileRes) DeepCopyObject() runtime.Object + func (c FileRes) GetObjectKind() schema.ObjectKind + type ForwardRes struct + Config BenchCfg + func (f ForwardRes) DeepCopyObject() runtime.Object + func (f ForwardRes) GetObjectKind() schema.ObjectKind + type Forwarder interface + Active func() bool + Age func() string + Container func() string + ID func() string + Port func() string + type Generic struct + func (*Generic) ColorerFunc() ColorerFunc + func (*Generic) IsGeneric() bool + func (g *Generic) Header(ns string) Header + func (g *Generic) Render(o interface{}, ns string, r *Row) error + func (g *Generic) SetTable(t *metav1beta1.Table) + type Header []HeaderColumn + func (h Header) Clone() Header + func (h Header) Columns(wide bool) []string + func (h Header) Customize(cols []string, wide bool) Header + func (h Header) Diff(header Header) bool + func (h Header) Dump() + func (h Header) HasAge() bool + func (h Header) IndexOf(colName string, includeWide bool) int + func (h Header) IsMetricsCol(col int) bool + func (h Header) IsTimeCol(col int) bool + func (h Header) Labelize(cols []int, labelCol int, rr RowEvents) Header + func (h Header) MapIndices(cols []string, wide bool) []int + func (h Header) ValidColIndex() int + type HeaderColumn struct + Align int + Decorator DecoratorFunc + Hide bool + MX bool + Name string + Time bool + Wide bool + func (h HeaderColumn) Clone() HeaderColumn + type Helm struct + func (Helm) ColorerFunc() ColorerFunc + func (Helm) Header(_ string) Header + func (Helm) IsGeneric() bool + func (c Helm) Render(o interface{}, ns string, r *Row) error + type HelmRes struct + Release *release.Release + func (HelmRes) GetObjectKind() schema.ObjectKind + func (h HelmRes) DeepCopyObject() runtime.Object + type IdSorter struct + Events RowEvents + Ids []string + func (s IdSorter) Len() int + func (s IdSorter) Less(i, j int) bool + func (s IdSorter) Swap(i, j int) + type Ingress struct + func (Ingress) ColorerFunc() ColorerFunc + func (Ingress) Header(ns string) Header + func (i Ingress) Render(o interface{}, ns string, r *Row) error + type Issue struct + GVR string + Group string + Level config.Level + Message string + type Issues []Issue + func (i Issues) CountSeverity(l config.Level) int + func (i Issues) MaxSeverity() config.Level + type Job struct + func (Job) Header(ns string) Header + func (j Job) Render(o interface{}, ns string, r *Row) error + type NamedContext struct + Config ContextNamer + Context *api.Context + Name string + func NewNamedContext(c ContextNamer, n string, ctx *api.Context) *NamedContext + func (c *NamedContext) DeepCopyObject() runtime.Object + func (c *NamedContext) GetObjectKind() schema.ObjectKind + func (c *NamedContext) IsCurrentContext(n string) bool + type Namespace struct + func (Namespace) Header(string) Header + func (n Namespace) ColorerFunc() ColorerFunc + func (n Namespace) Render(o interface{}, _ string, r *Row) error + type NetworkPolicy struct + func (NetworkPolicy) Header(ns string) Header + func (n NetworkPolicy) Render(o interface{}, ns string, r *Row) error + type Node struct + func (Node) Header(_ string) Header + func (n Node) Render(o interface{}, ns string, r *Row) error + type NodeWithMetrics struct + MX *mv1beta1.NodeMetrics + PodCount int + Raw *unstructured.Unstructured + func (n *NodeWithMetrics) DeepCopyObject() runtime.Object + func (n *NodeWithMetrics) GetObjectKind() schema.ObjectKind + type Outcome map[string]Issues + type PersistentVolume struct + func (PersistentVolume) Header(string) Header + func (p PersistentVolume) ColorerFunc() ColorerFunc + func (p PersistentVolume) Render(o interface{}, ns string, r *Row) error + type PersistentVolumeClaim struct + func (PersistentVolumeClaim) Header(ns string) Header + func (p PersistentVolumeClaim) Render(o interface{}, ns string, r *Row) error + type Pod struct + func (*Pod) Statuses(ss []v1.ContainerStatus) (cr, ct, rc int) + func (Pod) Header(ns string) Header + func (p *Pod) Phase(po *v1.Pod) string + func (p Pod) ColorerFunc() ColorerFunc + func (p Pod) Render(o interface{}, ns string, row *Row) error + type PodDisruptionBudget struct + func (PodDisruptionBudget) Header(ns string) Header + func (p PodDisruptionBudget) Render(o interface{}, ns string, r *Row) error + type PodWithMetrics struct + MX *mv1beta1.PodMetrics + Raw *unstructured.Unstructured + func (p *PodWithMetrics) DeepCopyObject() runtime.Object + func (p *PodWithMetrics) GetObjectKind() schema.ObjectKind + type Policies []PolicyRes + func (pp Policies) Upsert(p PolicyRes) Policies + type Policy struct + func (Policy) ColorerFunc() ColorerFunc + func (Policy) Header(ns string) Header + func (Policy) Render(o interface{}, gvr string, r *Row) error + type PolicyRes struct + Binding string + Group string + Namespace string + NonResourceURL string + Resource string + ResourceName string + Verbs []string + func NewPolicyRes(ns, binding, res, grp string, vv []string) PolicyRes + func (p PolicyRes) DeepCopyObject() runtime.Object + func (p PolicyRes) GetObjectKind() schema.ObjectKind + type Popeye struct + func (Popeye) ColorerFunc() ColorerFunc + func (Popeye) Header(ns string) Header + func (Popeye) Render(o interface{}, ns string, r *Row) error + type PortForward struct + func (PortForward) ColorerFunc() ColorerFunc + func (PortForward) Header(ns string) Header + func (f PortForward) Render(o interface{}, gvr string, r *Row) error + type Rbac struct + func (Rbac) ColorerFunc() ColorerFunc + func (Rbac) Header(ns string) Header + func (r Rbac) Render(o interface{}, ns string, ro *Row) error + type Reference struct + func (Reference) ColorerFunc() ColorerFunc + func (Reference) Header(ns string) Header + func (Reference) Render(o interface{}, ns string, r *Row) error + type ReferenceRes struct + GVR string + Name string + Namespace string + func (ReferenceRes) GetObjectKind() schema.ObjectKind + func (a ReferenceRes) DeepCopyObject() runtime.Object + type ReplicaSet struct + func (ReplicaSet) Header(ns string) Header + func (r ReplicaSet) ColorerFunc() ColorerFunc + func (r ReplicaSet) Render(o interface{}, ns string, row *Row) error + type Report struct + Grade string + Score int + Sections Sections + type ResEvent int + const EventAdd + const EventClear + const EventDelete + const EventUnchanged + const EventUpdate + type Role struct + func (Role) Header(ns string) Header + func (r Role) Render(o interface{}, ns string, row *Row) error + type RoleBinding struct + func (RoleBinding) Header(ns string) Header + func (r RoleBinding) Render(o interface{}, ns string, row *Row) error + type Row struct + Fields Fields + ID string + func NewRow(size int) Row + func (r Row) Clone() Row + func (r Row) Customize(cols []int) Row + func (r Row) Diff(ro Row, ageCol int) bool + func (r Row) Labelize(cols []int, labelCol int, labels []string) Row + func (r Row) Len() int + type RowEvent struct + Deltas DeltaRow + Kind ResEvent + Row Row + func NewRowEvent(kind ResEvent, row Row) RowEvent + func NewRowEventWithDeltas(row Row, delta DeltaRow) RowEvent + func (r RowEvent) Clone() RowEvent + func (r RowEvent) Customize(cols []int) RowEvent + func (r RowEvent) Diff(re RowEvent, ageCol int) bool + func (r RowEvent) ExtractHeaderLabels(labelCol int) []string + func (r RowEvent) Labelize(cols []int, labelCol int, labels []string) RowEvent + type RowEventSorter struct + Asc bool + Events RowEvents + Index int + IsDuration bool + IsNumber bool + NS string + func (r RowEventSorter) Len() int + func (r RowEventSorter) Less(i, j int) bool + func (r RowEventSorter) Swap(i, j int) + type RowEvents []RowEvent + func (r RowEvents) Clear() RowEvents + func (r RowEvents) Clone() RowEvents + func (r RowEvents) Customize(cols []int) RowEvents + func (r RowEvents) Delete(id string) RowEvents + func (r RowEvents) Diff(re RowEvents, ageCol int) bool + func (r RowEvents) ExtractHeaderLabels(labelCol int) []string + func (r RowEvents) FindIndex(id string) (int, bool) + func (r RowEvents) Labelize(cols []int, labelCol int, labels []string) RowEvents + func (r RowEvents) Sort(ns string, sortCol int, isDuration, numCol, asc bool) + func (r RowEvents) Upsert(re RowEvent) RowEvents + type RowSorter struct + Asc bool + Index int + IsDuration bool + IsNumber bool + Rows Rows + func (s RowSorter) Len() int + func (s RowSorter) Less(i, j int) bool + func (s RowSorter) Swap(i, j int) + type Rows []Row + func (rr Rows) Delete(id string) Rows + func (rr Rows) Find(id string) (int, bool) + func (rr Rows) Sort(col int, asc, isNum, isDur bool) + func (rr Rows) Upsert(r Row) Rows + type RuleRes struct + Group string + NonResourceURL string + Resource string + ResourceName string + Verbs []string + func NewRuleRes(res, grp string, vv []string) RuleRes + func (r RuleRes) DeepCopyObject() runtime.Object + func (r RuleRes) GetObjectKind() schema.ObjectKind + type Rules []RuleRes + func (rr Rules) Upsert(r RuleRes) Rules + type ScreenDump struct + func (ScreenDump) ColorerFunc() ColorerFunc + func (ScreenDump) Header(ns string) Header + func (b ScreenDump) Render(o interface{}, ns string, r *Row) error + type Section struct + GVR string + Outcome Outcome + Tally *Tally + Title string + func (Section) GetObjectKind() schema.ObjectKind + func (s Section) DeepCopyObject() runtime.Object + func (s Section) MaxSeverity() config.Level + type Sections []Section + func (s Sections) Len() int + func (s Sections) Less(i, j int) bool + func (s Sections) Swap(i, j int) + type Service struct + func (Service) Header(ns string) Header + func (s Service) Render(o interface{}, ns string, r *Row) error + type ServiceAccount struct + func (ServiceAccount) Header(ns string) Header + func (s ServiceAccount) Render(o interface{}, ns string, r *Row) error + type StatefulSet struct + func (StatefulSet) Header(ns string) Header + func (s StatefulSet) Render(o interface{}, ns string, r *Row) error + type StorageClass struct + func (StorageClass) Header(ns string) Header + func (StorageClass) Render(o interface{}, ns string, r *Row) error + type StringSet []string + func (ss StringSet) Add(item string) StringSet + func (ss StringSet) In(item string) bool + type Subject struct + func (Subject) ColorerFunc() ColorerFunc + func (Subject) Header(ns string) Header + func (s Subject) Render(o interface{}, ns string, r *Row) error + type SubjectRes struct + FirstLocation string + Kind string + Name string + func (SubjectRes) GetObjectKind() schema.ObjectKind + func (s SubjectRes) DeepCopyObject() runtime.Object + type Subjects []SubjectRes + func (ss Subjects) Upsert(s SubjectRes) Subjects + type TableData struct + Header Header + Namespace string + RowEvents RowEvents + func NewTableData() *TableData + func (t *TableData) Clear() + func (t *TableData) Clone() *TableData + func (t *TableData) Count() int + func (t *TableData) Customize(cols []string, wide bool) *TableData + func (t *TableData) Delete(newKeys map[string]struct{}) + func (t *TableData) Diff(t2 *TableData) bool + func (t *TableData) Empty() bool + func (t *TableData) IndexOfHeader(h string) int + func (t *TableData) Labelize(labels []string) *TableData + func (t *TableData) SetHeader(ns string, h Header) + func (t *TableData) Update(rows Rows) + type Tally struct + Count int + Error int + Info int + OK int + Warning int + func (t *Tally) Score() int + func (t *Tally) Sum() int