resource

package
v0.0.0-...-d85bf88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

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()

type PodOption

type PodOption struct {
	Namespace     string
	LabelSelector string
	FieldSelector string
	SortBy        string
	QPS           float32
	Burst         int
	KubeCtx       string
	KubeConfig    string
	Output        string
}

func (*PodOption) RunResourcePod

func (p *PodOption) RunResourcePod() error

func (*PodOption) Validate

func (p *PodOption) Validate()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL