k8s

package
v0.0.0-...-ec65fbd Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name        string
	CPU         int64
	CPULimit    int64
	Memory      int64
	MemoryLimit int64
}

type DataSource

type DataSource struct {
	// contains filtered or unexported fields
}

func NewDataSource

func NewDataSource(c *cmd.Command) (*DataSource, error)

func (*DataSource) Fetch

func (d *DataSource) Fetch() ([]*Element, error)

func (*DataSource) MaxColumns

func (d *DataSource) MaxColumns() int

type Element

type Element struct {
	Name        string
	CPU         float64
	CPULimit    float64
	Memory      float64
	MemoryLimit float64
}

func (*Element) CPUPercent

func (e *Element) CPUPercent() float64

func (*Element) MemoryPercent

func (e *Element) MemoryPercent() float64

type Node

type Node struct {
	Name        string
	CPU         int64
	CPULimit    int64
	Memory      int64
	MemoryLimit int64
}

type Pod

type Pod struct {
	Namespace  string
	Name       string
	Label      string
	Containers []*Container
}

func CreatePods

func CreatePods(command *cmd.Command) ([]*Pod, error)

Jump to

Keyboard shortcuts

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