Documentation ¶
Index ¶
- func IsAlreadyRegisteredError(err error) bool
- func IsInvalidConfig(err error) bool
- func IsWrongTypeError(err error) bool
- type Deployment
- type DeploymentConfig
- type RateLimit
- type RateLimitConfig
- type ResourceGroup
- type ResourceGroupConfig
- type Set
- type SetConfig
- type Usage
- type UsageConfig
- type VMSSRateLimit
- type VMSSRateLimitConfig
- type VPNConnection
- type VPNConnectionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyRegisteredError ¶
IsAlreadyRegisteredError asserts alreadyRegisteredError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
Types ¶
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
func NewDeployment ¶
func NewDeployment(config DeploymentConfig) (*Deployment, error)
func (*Deployment) Collect ¶
func (d *Deployment) Collect(ch chan<- prometheus.Metric) error
func (*Deployment) Describe ¶
func (d *Deployment) Describe(ch chan<- *prometheus.Desc) error
type DeploymentConfig ¶
type DeploymentConfig struct { G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger // EnvironmentName is the name of the Azure environment used to compute the // azure.Environment type. See also // https://godoc.org/github.com/Azure/go-autorest/autorest/azure#Environment. EnvironmentName string }
type RateLimit ¶
type RateLimit struct {
// contains filtered or unexported fields
}
func NewRateLimit ¶
func NewRateLimit(config RateLimitConfig) (*RateLimit, error)
type RateLimitConfig ¶
type RateLimitConfig struct { G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger // EnvironmentName is the name of the Azure environment used to compute the // azure.Environment type. See also // https://godoc.org/github.com/Azure/go-autorest/autorest/azure#Environment. EnvironmentName string Location string CPAzureClientSetConfig client.AzureClientSetConfig }
type ResourceGroup ¶
type ResourceGroup struct {
// contains filtered or unexported fields
}
func NewResourceGroup ¶
func NewResourceGroup(config ResourceGroupConfig) (*ResourceGroup, error)
func (*ResourceGroup) Collect ¶
func (r *ResourceGroup) Collect(ch chan<- prometheus.Metric) error
func (*ResourceGroup) Describe ¶
func (r *ResourceGroup) Describe(ch chan<- *prometheus.Desc) error
type ResourceGroupConfig ¶
type ResourceGroupConfig struct { K8sClient kubernetes.Interface Logger micrologger.Logger EnvironmentName string }
type 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.
type SetConfig ¶
type SetConfig struct { K8sClient k8sclient.Interface Logger micrologger.Logger AzureSetting setting.Azure HostAzureClientSetConfig client.AzureClientSetConfig }
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
func NewUsage ¶
func NewUsage(config UsageConfig) (*Usage, error)
type UsageConfig ¶
type UsageConfig struct { G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger // EnvironmentName is the name of the Azure environment used to compute the // azure.Environment type. See also // https://godoc.org/github.com/Azure/go-autorest/autorest/azure#Environment. EnvironmentName string Location string }
type VMSSRateLimit ¶
type VMSSRateLimit struct {
// contains filtered or unexported fields
}
func NewVMSSRateLimit ¶
func NewVMSSRateLimit(config VMSSRateLimitConfig) (*VMSSRateLimit, error)
func (*VMSSRateLimit) Collect ¶
func (u *VMSSRateLimit) Collect(ch chan<- prometheus.Metric) error
func (*VMSSRateLimit) Describe ¶
func (u *VMSSRateLimit) Describe(ch chan<- *prometheus.Desc) error
type VMSSRateLimitConfig ¶
type VMSSRateLimitConfig struct { G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger // EnvironmentName is the name of the Azure environment used to compute the // azure.Environment type. See also // https://godoc.org/github.com/Azure/go-autorest/autorest/azure#Environment. EnvironmentName string Location string CPAzureClientSetConfig client.AzureClientSetConfig }
type VPNConnection ¶
type VPNConnection struct {
// contains filtered or unexported fields
}
func NewVPNConnection ¶
func NewVPNConnection(config VPNConnectionConfig) (*VPNConnection, error)
func (*VPNConnection) Collect ¶
func (v *VPNConnection) Collect(ch chan<- prometheus.Metric) error
func (*VPNConnection) Describe ¶
func (v *VPNConnection) Describe(ch chan<- *prometheus.Desc) error
type VPNConnectionConfig ¶
type VPNConnectionConfig struct { K8sClient kubernetes.Interface Logger micrologger.Logger AzureSetting setting.Azure HostAzureClientSetConfig client.AzureClientSetConfig }
Click to show internal directories.
Click to hide internal directories.