check

package
v0.0.0-...-8ccce41 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(globalParams *command.GlobalParams) []*cobra.Command

Commands returns a slice of subcommands for the `check` command in the Process Agent

func MakeCommand

func MakeCommand(globalParamsGetter func() *command.GlobalParams, name string, allowlist []string) *cobra.Command

func RunCheckCmd

func RunCheckCmd(deps Dependencies) error

Types

type CliParams

type CliParams struct {
	*command.GlobalParams
	// contains filtered or unexported fields
}

type Dependencies

type Dependencies struct {
	fx.In

	CliParams *CliParams

	Config   config.Component
	Syscfg   sysprobeconfig.Component
	Log      log.Component
	Hostinfo hostinfo.Component
	// TODO: the tagger is used by the ContainerProvider, which is currently not a component so there is no direct
	// dependency on it. The ContainerProvider needs to be componentized so it can be injected and have fx manage its
	// lifecycle.
	Tagger       tagger.Component
	WorkloadMeta workloadmeta.Component
	NpCollector  npcollector.Component
	Checks       []types.CheckComponent `group:"check"`
}

Jump to

Keyboard shortcuts

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