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 ¶
func (o *GenericReporterOptions) ApplyTo(c *reporterconfig.GenericReporterConfiguration) error
ApplyTo fills up config with options
func (*GenericReporterOptions) Config ¶
func (o *GenericReporterOptions) Config() (*reporterconfig.GenericReporterConfiguration, error)
Config returns a new generic reporter plugin configuration instance.
type KubeletPluginOptions ¶
type KubeletPluginOptions struct { PodResourcesServerEndpoints []string KubeletResourcePluginPaths []string EnableReportTopologyPolicy bool }
func NewKubeletPluginOptions ¶
func NewKubeletPluginOptions() *KubeletPluginOptions
func (*KubeletPluginOptions) AddFlags ¶
func (o *KubeletPluginOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*KubeletPluginOptions) ApplyTo ¶
func (o *KubeletPluginOptions) ApplyTo(c *reporter.KubeletPluginConfiguration) error
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 ¶
func (o *ReporterPluginsOptions) ApplyTo(c *reporterconfig.ReporterPluginsConfiguration) error
ApplyTo fills up config with options
func (*ReporterPluginsOptions) Config ¶
func (o *ReporterPluginsOptions) Config() (*reporterconfig.ReporterPluginsConfiguration, error)
Config returns a new reporter plugin configuration instance.
Click to show internal directories.
Click to hide internal directories.