nri

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 2 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"`
	ConfigPath string `toml:"nri_config_file"`
	SocketPath string `toml:"nri_listen"`
	PluginPath string `toml:"nri_plugin_dir"`
}

Config represents the CRI-O NRI configuration.

func New

func New() *Config

New returns the default CRI-O NRI configuration.

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.

Jump to

Keyboard shortcuts

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