loaders

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatadogYAMLCommandLoader

func NewDatadogYAMLCommandLoader() loaders.CommandLoader

NewDatadogYAMLCommandLoader creates a new DatadogYAMLCommandLoader

Types

type DatadogYAMLCommandLoader

type DatadogYAMLCommandLoader struct{}

DatadogYAMLCommandLoader loads YAML files and converts them to DatadogQueryCommands

func (*DatadogYAMLCommandLoader) IsFileSupported

func (d *DatadogYAMLCommandLoader) IsFileSupported(f fs.FS, fileName string) bool

IsFileSupported checks if the file is a supported YAML file

func (*DatadogYAMLCommandLoader) LoadCommands

func (d *DatadogYAMLCommandLoader) LoadCommands(
	f fs.FS,
	entryName string,
	options []cmds.CommandDescriptionOption,
	aliasOptions []alias.Option,
) ([]cmds.Command, error)

LoadCommands loads Datadog query commands from YAML files

Jump to

Keyboard shortcuts

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