Documentation ¶
Index ¶
Constants ¶
View Source
const (
GaugeValue float64 = 1
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶
func NewCluster(config ClusterConfig) (*Cluster, error)
type ClusterConfig ¶
type ClusterConfig struct { K8sClient k8sclient.Interface Logger micrologger.Logger NewCommonClusterObjectFunc func() infrastructurev1alpha2.CommonClusterObject }
type ClusterTransition ¶
type ClusterTransition struct {
// contains filtered or unexported fields
}
ClusterTransition implements the ClusterTransition interface, exposing cluster transition information.
func NewClusterTransition ¶
func NewClusterTransition(config ClusterTransitionConfig) (*ClusterTransition, error)
NewClusterTransition initiates cluster transition metrics
func (*ClusterTransition) Collect ¶
func (ct *ClusterTransition) Collect(ch chan<- prometheus.Metric) error
func (*ClusterTransition) Describe ¶
func (ct *ClusterTransition) Describe(ch chan<- *prometheus.Desc) error
type ClusterTransitionConfig ¶
type ClusterTransitionConfig struct { K8sClient k8sclient.Interface Logger micrologger.Logger NewCommonClusterObjectFunc func() infrastructurev1alpha2.CommonClusterObject }
type NodePool ¶
type NodePool struct {
// contains filtered or unexported fields
}
func NewNodePool ¶
func NewNodePool(config NodePoolConfig) (*NodePool, error)
type NodePoolConfig ¶
type NodePoolConfig struct { K8sClient k8sclient.Interface Logger micrologger.Logger }
type Set ¶
Set is basically only a wrapper for the operator's collector implementations. It eases the initialization and prevents some weird import mess so we do not have to alias packages.
type SetConfig ¶
type SetConfig struct { CertSearcher certs.Interface K8sClient k8sclient.Interface Logger micrologger.Logger NewCommonClusterObjectFunc func() infrastructurev1alpha2.CommonClusterObject }
Click to show internal directories.
Click to hide internal directories.