resourcemetrics

package module
v0.29.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 12

README

PkgGoDev Build Status Slack Twitter

resource-metrics

Kubernetes resource metrics calculator

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 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
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