collector

package
v2.35.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "chart_operator"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type OrphanConfigMap

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

func NewOrphanConfigMap

func NewOrphanConfigMap(config OrphanConfigMapConfig) (*OrphanConfigMap, error)

func (*OrphanConfigMap) Collect

func (oc *OrphanConfigMap) Collect(ch chan<- prometheus.Metric) error

func (*OrphanConfigMap) Describe

func (oc *OrphanConfigMap) Describe(ch chan<- *prometheus.Desc) error

Describe emits the description for the metrics collected here.

type OrphanConfigMapConfig

type OrphanConfigMapConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
}

type OrphanSecret

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

func NewOrphanSecret

func NewOrphanSecret(config OrphanSecretConfig) (*OrphanSecret, error)

func (*OrphanSecret) Collect

func (oc *OrphanSecret) Collect(ch chan<- prometheus.Metric) error

func (*OrphanSecret) Describe

func (oc *OrphanSecret) Describe(ch chan<- *prometheus.Desc) error

Describe emits the description for the metrics collected here.

type OrphanSecretConfig

type OrphanSecretConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
}

type Set

type Set struct {
	*collector.Set
}

Set is basically only a wrapper for the operator's collector implementations. It eases the iniitialization and prevents some weird import mess so we do not have to alias packages.

func NewSet

func NewSet(config SetConfig) (*Set, error)

type SetConfig

type SetConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	TillerNamespace string
}

Jump to

Keyboard shortcuts

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