Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploySorter ¶
type DeploySorter struct {
// contains filtered or unexported fields
}
func NewNodeMetricsSorter ¶
func NewNodeMetricsSorter(deploys []appsv1.Deployment, sortBy string) *DeploySorter
func (*DeploySorter) Len ¶
func (n *DeploySorter) Len() int
func (*DeploySorter) Less ¶
func (n *DeploySorter) Less(i, j int) bool
func (*DeploySorter) Swap ¶
func (n *DeploySorter) Swap(i, j int)
type NodeOption ¶
type NodeOption struct { Selector string SortBy string QPS float32 Burst int KubeCtx string KubeConfig string Output string }
func (*NodeOption) RunResourceNode ¶
func (o *NodeOption) RunResourceNode() error
func (*NodeOption) Validate ¶
func (o *NodeOption) Validate()
type PatchOption ¶
type PatchOption struct { Selector string KubeCtx string KubeConfig string Skip int Name string Namespace string NoStop bool }
func (*PatchOption) RunNodePatch ¶
func (p *PatchOption) RunNodePatch() error
func (*PatchOption) RunResourcePatch ¶
func (p *PatchOption) RunResourcePatch() error
func (*PatchOption) Validate ¶
func (p *PatchOption) Validate()
Click to show internal directories.
Click to hide internal directories.