layers

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

View Source
const DatadogSlug = "datadog"

Variables

This section is empty.

Functions

func BuildCobraCommandWithDatadogMiddlewares

func BuildCobraCommandWithDatadogMiddlewares(
	cmd cmds.Command,
	options ...cli.CobraParserOption,
) (*cobra.Command, error)

func GetCobraCommandDatadogMiddlewares

func GetCobraCommandDatadogMiddlewares(
	parsedCommandLayers *layers.ParsedLayers,
	cmd *cobra.Command,
	args []string,
) ([]middlewares.Middleware, error)

func GetDatadogMiddlewares

func GetDatadogMiddlewares(
	parsedCommandLayers *layers.ParsedLayers,
) ([]middlewares.Middleware, error)

GetDatadogMiddlewares returns the common middleware chain used by datadog commands

func NewDatadogParameterLayer

func NewDatadogParameterLayer() (layers.ParameterLayer, error)

NewDatadogParameterLayer creates a parameter layer for Datadog authentication

Types

type DatadogSettings

type DatadogSettings struct {
	APIKey  string `glazed.parameter:"api-key"`
	AppKey  string `glazed.parameter:"app-key"`
	Site    string `glazed.parameter:"site"`
	RawHTTP bool   `glazed.parameter:"raw-http-debug"`
}

DatadogSettings represents Datadog configuration parameters

func (*DatadogSettings) Validate

func (d *DatadogSettings) Validate() error

Validate checks if the Datadog settings are valid

Jump to

Keyboard shortcuts

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