reporter

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericReporterOptions

type GenericReporterOptions struct {
	CollectInterval        time.Duration
	InnerPlugins           []string
	RefreshLatestCNRPeriod time.Duration
	DefaultCNRLabels       map[string]string
}

GenericReporterOptions holds the configurations for reporter

func NewGenericReporterOptions

func NewGenericReporterOptions() *GenericReporterOptions

NewGenericReporterOptions creates a new Options with a default config.

func (*GenericReporterOptions) AddFlags

func (o *GenericReporterOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*GenericReporterOptions) ApplyTo

ApplyTo fills up config with options

func (*GenericReporterOptions) Config

Config returns a new generic reporter plugin configuration instance.

type KubeletPluginOptions

type KubeletPluginOptions struct {
	PodResourcesServerEndpoints    []string
	KubeletResourcePluginPaths     []string
	KubeletResourcePluginStateFile string
	EnableReportTopologyPolicy     bool
	ResourceNameToZoneTypeMap      map[string]string
	NeedValidationResources        []string
	EnablePodResourcesFilter       bool
}

func NewKubeletPluginOptions

func NewKubeletPluginOptions() *KubeletPluginOptions

func (*KubeletPluginOptions) AddFlags

func (o *KubeletPluginOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*KubeletPluginOptions) ApplyTo

type ReporterPluginsOptions

type ReporterPluginsOptions struct {
	*KubeletPluginOptions
}

ReporterPluginsOptions holds the configurations for reporter plugin

func NewReporterPluginsOptions

func NewReporterPluginsOptions() *ReporterPluginsOptions

NewReporterPluginsOptions creates a new reporter plugin Options with a default config.

func (*ReporterPluginsOptions) AddFlags

func (o *ReporterPluginsOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*ReporterPluginsOptions) ApplyTo

ApplyTo fills up config with options

func (*ReporterPluginsOptions) Config

Config returns a new reporter plugin configuration instance.

Jump to

Keyboard shortcuts

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