options

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Overview

Package options provides configuration options for the metrics API server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomMetricsAdapterServerOptions

type CustomMetricsAdapterServerOptions struct {
	SecureServing  *genericoptions.SecureServingOptionsWithLoopback
	Authentication *genericoptions.DelegatingAuthenticationOptions
	Authorization  *genericoptions.DelegatingAuthorizationOptions
	Audit          *genericoptions.AuditOptions
	Features       *genericoptions.FeatureOptions

	OpenAPIConfig   *openapicommon.Config
	OpenAPIV3Config *openapicommon.OpenAPIV3Config
	EnableMetrics   bool
}

CustomMetricsAdapterServerOptions contains the of options used to configure the metrics API server.

It is based on a subset of genericoptions.RecommendedOptions.

func NewCustomMetricsAdapterServerOptions

func NewCustomMetricsAdapterServerOptions() *CustomMetricsAdapterServerOptions

NewCustomMetricsAdapterServerOptions creates a new instance of CustomMetricsAdapterServerOptions with its default values.

func (*CustomMetricsAdapterServerOptions) AddFlags

AddFlags adds the flags defined for the options, to the given flagset.

func (*CustomMetricsAdapterServerOptions) ApplyTo

ApplyTo applies CustomMetricsAdapterServerOptions to the server configuration.

func (CustomMetricsAdapterServerOptions) Validate

Validate validates CustomMetricsAdapterServerOptions

Jump to

Keyboard shortcuts

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