Documentation ¶
Index ¶
- Constants
- func EmojiInfo() map[string]string
- type ChildNodes
- type Container
- type DaemonSet
- type Deployment
- type Generic
- type Namespace
- type NodeSpec
- type Pod
- type ReplicaSet
- type Section
- 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(noIcons bool) 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 separator. 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 ChildNodes ¶ added in v0.24.8
type ChildNodes []*TreeNode
ChildNodes represents a collection of children nodes.
func (ChildNodes) Less ¶ added in v0.24.8
func (c ChildNodes) Less(i, j int) bool
Less returns true if i < j.
func (ChildNodes) Swap ¶ added in v0.24.8
func (c ChildNodes) Swap(i, j int)
Swap swaps list values.
type Generic ¶
type Generic struct {
// contains filtered or unexported fields
}
Generic renders a generic resource to screen.
type NodeSpec ¶
type NodeSpec struct {
GVRs, Paths, Statuses []string
}
NodeSpec represents a node resource specification.
func (NodeSpec) ParentPath ¶ added in v0.14.1
ParentPath returns the parent path.
type TreeNode ¶
type TreeNode struct {
GVR, ID string
Children ChildNodes
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.
Click to show internal directories.
Click to hide internal directories.