collector

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ETCDBackup

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

func NewETCDBackup

func NewETCDBackup(config ETCDBackupConfig) (*ETCDBackup, error)

func (*ETCDBackup) Collect

func (d *ETCDBackup) Collect(ch chan<- prometheus.Metric) error

func (*ETCDBackup) Describe

func (d *ETCDBackup) Describe(ch chan<- *prometheus.Desc) error

type ETCDBackupConfig

type ETCDBackupConfig 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
	Logger    micrologger.Logger
}

Jump to

Keyboard shortcuts

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