resource

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateConfigmap

func CreateOrUpdateConfigmap(client *kube.ClusterClient, namespace, name string, data map[string]string) error

func CreateOrUpdatePrometheusRule

func CreateOrUpdatePrometheusRule(client *kube.ClusterClient, groupName string, po db.ConfigPrometheusOperator, rules []monitoringv1.Rule) error

CreateOrUpdatePrometheusRule 存在出现脏数据可能

func DeleteConfigmap

func DeleteConfigmap(clusterId int, namespace, name string, keys ...string) error

func DeletePrometheusRuleByGroupName

func DeletePrometheusRuleByGroupName(clusterId int, namespace, name string, groupName string) error

func GetConfigmap

func GetConfigmap(clusterId int, namespace, name string, key string) (data string, err error)

func NotFound

func NotFound(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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