internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace        string
	LabelSelector    string
	FieldSelector    string
	PrometheusConfig k8s.PrometheusConfig
}

type Container

type Container struct {
	Name   string
	Image  string
	CPU    Resource
	Memory Resource
}

type Metric

type Metric struct {
	Current float64
	Min     float64
	Max     float64
}

type Pod

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

func GetPods

func GetPods(restConfig *rest.Config, config Config) ([]Pod, error)

type Resource

type Resource struct {
	Metric
	Request string
	Limit   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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