Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) NamespaceResource(ctx context.Context, ns string, skipBestEffort bool) (*nsResourceUtilization, error)
- func (c *Client) NamespacesResource(ctx context.Context, exceptionNS string, skipBestEffort bool)
- func (c *Client) NodeUsage(ctx context.Context, name string) (*NodeUtilization, error)
- type NodeUtilization
Constants ¶
This section is empty.
Variables ¶
View Source
var TIMEOUT int64 = 600
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) NamespaceResource ¶
func (*Client) NamespacesResource ¶
type NodeUtilization ¶
type NodeUtilization struct { TotalCPU float64 TotalMemory float64 AllocatableCPU float64 AllocatableMemory float64 RequestedCPU float64 RequestedMemory float64 UsedCPU float64 UsedMemory float64 AllocatablePods int RunningPods int DaemonsetCPU float64 DaemonsetMemory float64 WorkloadCPU float64 WorkloadMemory float64 }
Click to show internal directories.
Click to hide internal directories.