resourcemetrics

package module
v0.30.10 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 17 Imported by: 12

README

PkgGoDev Build Status Slack Twitter

resource-metrics

Kubernetes resource metrics calculator

Sample: https://gist.github.com/ArnobKumarSaha/441bffe457865b5d5cb9913e6aeae297

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppResourceLimits

func AppResourceLimits(obj map[string]interface{}) (core.ResourceList, error)

func AppResourceRequests

func AppResourceRequests(obj map[string]interface{}) (core.ResourceList, error)

func EvalFuncs

func EvalFuncs() map[string]func(arguments ...interface{}) (interface{}, error)

EvalFuncs for https://github.com/gomodules/eval

func GenericFuncMap

func GenericFuncMap() map[string]interface{}

GenericFuncMap returns a copy of the basic function map as a map[string]interface{}.

func HtmlFuncMap

func HtmlFuncMap() template.FuncMap

HtmlFuncMap returns an 'html/template'.Funcmap

func Mode

func Mode(obj map[string]interface{}) (string, error)

func PodResourceLimits added in v0.30.2

func PodResourceLimits(obj map[string]interface{}) (core.ResourceList, error)

func PodResourceRequests added in v0.30.2

func PodResourceRequests(obj map[string]interface{}) (core.ResourceList, error)

func Replicas

func Replicas(obj map[string]interface{}) (int64, error)

func RoleReplicas

func RoleReplicas(obj map[string]interface{}) (api.ReplicaList, error)

func RoleResourceLimits

func RoleResourceLimits(obj map[string]interface{}) (map[api.PodRole]core.ResourceList, error)

func RoleResourceRequests

func RoleResourceRequests(obj map[string]interface{}) (map[api.PodRole]core.ResourceList, error)

func TotalResourceLimits

func TotalResourceLimits(obj map[string]interface{}) (core.ResourceList, error)

func TotalResourceRequests

func TotalResourceRequests(obj map[string]interface{}) (core.ResourceList, error)

func TxtFuncMap

func TxtFuncMap() ttemplate.FuncMap

TxtFuncMap returns a 'text/template'.FuncMap

func UsesTLS added in v0.0.7

func UsesTLS(obj map[string]interface{}) (bool, error)

Types

This section is empty.

Directories

Path Synopsis
apps
v1
batch
v1
core
v1
kafka.kubedb.com
kubedb.com
v1
kubevault.com
ops.kubedb.com
utils module

Jump to

Keyboard shortcuts

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