nri

package
v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled                   bool          `toml:"enable_nri"`
	SocketPath                string        `toml:"nri_listen"`
	PluginPath                string        `toml:"nri_plugin_dir"`
	PluginConfigPath          string        `toml:"nri_plugin_config_dir"`
	PluginRegistrationTimeout time.Duration `toml:"nri_plugin_registration_timeout"`
	PluginRequestTimeout      time.Duration `toml:"nri_plugin_request_timeout"`
	DisableConnections        bool          `toml:"nri_disable_connections"`
	// contains filtered or unexported fields
}

Config represents the CRI-O NRI configuration.

func New

func New() *Config

New returns the default CRI-O NRI configuration.

func (*Config) ConfigureTimeouts added in v1.26.2

func (c *Config) ConfigureTimeouts()

func (*Config) ToOptions

func (c *Config) ToOptions() []nri.Option

ToOptions returns NRI options for this configuration.

func (*Config) Validate

func (c *Config) Validate(onExecution bool) error

Validate loads and validates the effective runtime NRI configuration.

func (*Config) WithTracing added in v1.29.2

func (c *Config) WithTracing(enable bool) *Config

Jump to

Keyboard shortcuts

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