collector

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 14 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 HelmV2Release

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

func NewHelmV2Release

func NewHelmV2Release(config HelmV2ReleaseConfig) (*HelmV2Release, error)

func (*HelmV2Release) Collect

func (h *HelmV2Release) Collect(ch chan<- prometheus.Metric) error

func (*HelmV2Release) Describe

func (h *HelmV2Release) Describe(ch chan<- *prometheus.Desc) error

Describe emits the description for the metrics collected here.

type HelmV2ReleaseConfig

type HelmV2ReleaseConfig struct {
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger

	TillerNamespace string
}

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 {
	G8sClient versioned.Interface
	K8sClient kubernetes.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 {
	G8sClient versioned.Interface
	K8sClient kubernetes.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
	HelmClient *helmclient.Client
	Logger     micrologger.Logger

	TillerNamespace string
}

Jump to

Keyboard shortcuts

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