Documentation ¶
Index ¶
- Constants
- func EmojiInfo() map[string]string
- type Childrens
- type Container
- type DaemonSet
- type Deployment
- type Generic
- type Namespace
- type NodeSpec
- type Pod
- type ReplicaSet
- type Service
- type ServiceAccount
- type StatefulSet
- type TreeNode
- func (t *TreeNode) Add(c *TreeNode)
- func (t *TreeNode) Blank() bool
- func (t *TreeNode) Clear()
- func (t *TreeNode) Count(gvr string) int
- func (t *TreeNode) CountChildren() int
- func (t *TreeNode) Diff(d *TreeNode) bool
- func (t *TreeNode) Dump()
- func (t *TreeNode) DumpStdOut()
- func (t *TreeNode) Filter(q string, filter func(q, path string) bool) *TreeNode
- func (t *TreeNode) Find(gvr, id string) *TreeNode
- func (t *TreeNode) Flatten() []NodeSpec
- func (t *TreeNode) IsLeaf() bool
- func (t *TreeNode) IsRoot() bool
- func (t *TreeNode) Level() int
- func (t *TreeNode) MaxDepth(depth int) int
- func (t *TreeNode) Root() *TreeNode
- func (t *TreeNode) ShallowClone() *TreeNode
- func (t *TreeNode) Sort()
- func (t *TreeNode) Spec() NodeSpec
- func (t *TreeNode) Title(styles config.Xray) string
- type TreeRef
Constants ¶
View Source
const ( // KeyParent indicates a parent node context key. KeyParent TreeRef = "parent" // KeySAAutomount indicates whether an automount sa token is active or not. KeySAAutomount TreeRef = "automount" // PathSeparator represents a node path separatot. PathSeparator = "::" // StatusKey status map key. StatusKey = "status" // InfoKey state map key. InfoKey = "info" // OkStatus stands for all is cool. OkStatus = "ok" // ToastStatus stands for a resource is not up to snuff // aka not running or incomplete. ToastStatus = "toast" // CompletedStatus stands for a completed resource. CompletedStatus = "completed" // MissingRefStatus stands for a non existing resource reference. MissingRefStatus = "noref" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generic ¶
type Generic struct {
// contains filtered or unexported fields
}
Generic renders a generic resource to screen.
func (*Generic) SetTable ¶
func (g *Generic) SetTable(t *metav1beta1.Table)
SetTable sets the tabular resource.
type NodeSpec ¶
type NodeSpec struct {
GVRs, Paths, Statuses []string
}
NodeSpec represents a node resource specification.
func (NodeSpec) ParentPath ¶ added in v0.14.1
type TreeNode ¶
type TreeNode struct {
GVR, ID string
Children Childrens
Parent *TreeNode
Extras map[string]string
}
TreeNode represents a resource tree node.
func (*TreeNode) CountChildren ¶
CountChildren returns the children count.
func (*TreeNode) ShallowClone ¶
ShallowClone performs a shallow node clone.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.