k8s

package
v0.0.0-...-4fab909 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 NewClient

func NewClient() *Client

func (*Client) NamespaceResource

func (c *Client) NamespaceResource(ctx context.Context, ns string, skipBestEffort bool) (*nsResourceUtilization, error)

func (*Client) NamespacesResource

func (c *Client) NamespacesResource(ctx context.Context, exceptionNS string, skipBestEffort bool)

func (*Client) NodeUsage

func (c *Client) NodeUsage(ctx context.Context, name string) (*NodeUtilization, error)

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
}

Jump to

Keyboard shortcuts

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