sysprobeconfig

package
v0.0.0-...-7f64411 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sysprobeconfig implements a component to handle system-probe configuration. This component temporarily wraps pkg/config.

This component initializes pkg/config based on the bundle params, and will return the same results as that package. This is to support migration to a component architecture. When no code still uses pkg/config, that package will be removed.

The mock component does nothing at startup, beginning with an empty config. It also overwrites the pkg/config.SystemProbe for the duration of the test.

Package sysprobeconfig implements a component to handle system-probe configuration. This component temporarily wraps pkg/config.

This component initializes pkg/config based on the bundle params, and will return the same results as that package. This is to support migration to a component architecture. When no code still uses pkg/config, that package will be removed.

The mock component does nothing at startup, beginning with an empty config. It also overwrites the pkg/config.SystemProbe for the duration of the test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoneModule

func NoneModule() fxutil.Module

NoneModule return a None optional type for sysprobeconfig.Component.

This helper allows code that needs a disabled Optional type for sysprobeconfig to get it. The helper is split from the implementation to avoid linking with the dependencies from sysprobeconfig.

Types

type Component

type Component interface {
	model.ReaderWriter

	// Warnings returns config warnings collected during setup.
	Warnings() *model.Warnings

	// SysProbeObject returns the wrapper sysconfig
	SysProbeObject() *sysconfigtypes.Config
}

Component is the component type.

type Mock

type Mock interface {
	Component
}

Mock implements mock-specific methods.

Directories

Path Synopsis
Package sysprobeconfigimpl implements a component to handle system-probe configuration.
Package sysprobeconfigimpl implements a component to handle system-probe configuration.

Jump to

Keyboard shortcuts

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